Git Product home page Git Product logo

Comments (4)

liqul avatar liqul commented on June 12, 2024

You can see this log Plugin sql_pull_data failed to load: Plugin sql_pull_data failed to register: failed to load plugin sql_pull_data No module named 'langchain' saying you don't have langchain installed.

from taskweaver.

uebhh avatar uebhh commented on June 12, 2024

You can see this log Plugin sql_pull_data failed to load: Plugin sql_pull_data failed to register: failed to load plugin sql_pull_data No module named 'langchain' saying you don't have langchain installed.

I have already installed the langchain module, but I keep encountering this exception. I will add a complete set of operational steps, please take a moment to confirm.

Additional context:
(taskweaver) d:\TaskWeaver\playground\UI>pip show langchain
Name: langchain
Version: 0.1.14
Summary: Building applications with LLMs through composability
Home-page: https://github.com/langchain-ai/langchain
Author:
Author-email:
License: MIT
Location: D:\software\anaconda\envs\taskweaver\Lib\site-packages
Requires: aiohttp, dataclasses-json, jsonpatch, langchain-community, langchain-core, langchain-text-splitters, langsmith, numpy, pydantic, PyYAML, requests, SQLAlchemy, tenacity
Required-by:

(taskweaver) d:\TaskWeaver\playground\UI>chainlit run app.py
If UI is not started, please go to the folder playground/UI and run chainlit run app.py to start the UI
2024-04-08 15:21:48 - Your app is available at http://localhost:8000
2024-04-08 15:21:50 - Session 20240408-072150-f94e1c63 is initialized
2024-04-08 15:21:50 - CodeGenerator initialized successfully
2024-04-08 15:21:50 - Environment local is created.
2024-04-08 15:21:50 - CodeInterpreter initialized successfully.
2024-04-08 15:21:50 - Planner initialized successfully
Starting new session
2024-04-08 15:21:50 - Translation file for zh-CN not found. Using default translation en-US.
2024-04-08 15:21:50 - Session 20240408-072150-a1640566 is initialized
2024-04-08 15:21:50 - CodeGenerator initialized successfully
2024-04-08 15:21:50 - CodeInterpreter initialized successfully.
2024-04-08 15:21:50 - Planner initialized successfully
Starting new session
2024-04-08 15:21:50 - Translated markdown file for zh-CN not found. Defaulting to chainlit.md.
2024-04-08 15:21:51 - Session 20240408-072151-9fc0b78c is initialized
2024-04-08 15:21:51 - CodeGenerator initialized successfully
2024-04-08 15:21:51 - CodeInterpreter initialized successfully.
2024-04-08 15:21:51 - Planner initialized successfully
Starting new session
2024-04-08 15:21:51 - Session 20240408-072151-76409a4d is initialized
2024-04-08 15:21:51 - CodeGenerator initialized successfully
2024-04-08 15:21:51 - CodeInterpreter initialized successfully.
2024-04-08 15:21:51 - Planner initialized successfully
Starting new session
2024-04-08 15:21:52 - Session 20240408-072152-2184cf16 is initialized
2024-04-08 15:21:52 - CodeGenerator initialized successfully
2024-04-08 15:21:52 - CodeInterpreter initialized successfully.
2024-04-08 15:21:52 - Planner initialized successfully
Starting new session
2024-04-08 15:21:52 - Session 20240408-072152-35b2ed35 is initialized
2024-04-08 15:21:52 - CodeGenerator initialized successfully
2024-04-08 15:21:52 - CodeInterpreter initialized successfully.
2024-04-08 15:21:52 - Planner initialized successfully
Starting new session
2024-04-08 15:21:53 - Session 20240408-072153-d0a99b8c is initialized
2024-04-08 15:21:53 - CodeGenerator initialized successfully
2024-04-08 15:21:53 - CodeInterpreter initialized successfully.
2024-04-08 15:21:53 - Planner initialized successfully
Starting new session
2024-04-08 15:22:01 - HTTP Request: POST https://open.bigmodel.cn/api/paas/v4/chat/completions "HTTP/1.1 200 "
2024-04-08 15:22:13 - LLM output: {"response": [{"type": "init_plan", "content": "1. confirm the database and table name\n2. pull data from the database <sequentially depends on 1>\n3. show the schema of the pulled data <interactively depends on 2>"}, {"type": "plan", "content": "1. confirm the database and table name, then pull data from the database\n2. show the schema of the pulled data"}, {"type": "current_plan_step", "content": "1. confirm the database and table name, then pull data from the database"}, {"type": "send_to", "content": "CodeInterpreter"}, {"type": "message", "content": "Please confirm if the table 'time_series' is in the intended database and then pull the data from it"}]}
2024-04-08 15:22:13 - Planner talk to CodeInterpreter: Please confirm if the table 'time_series' is in the intended database and then pull the data from it
2024-04-08 15:22:15 - HTTP Request: POST https://open.bigmodel.cn/api/paas/v4/chat/completions "HTTP/1.1 200 "
2024-04-08 15:22:21 - LLM output: {"response": [{"type": "thought", "content": "ProgramApe will use the sql_pull_data plugin to confirm the existence of the 'time_series' table and pull the data from it."}, {"type": "python", "content": "df, description = sql_pull_data("confirm 'time_series' table and pull data")\ndf"}]}
2024-04-08 15:22:21 - Code to be verified: df, description = sql_pull_data("confirm 'time_series' table and pull data")
df
2024-04-08 15:22:21 - Code to be executed: df, description = sql_pull_data("confirm 'time_series' table and pull data")
df
2024-04-08 15:22:23 - Container is running and connection file is ready.
Plugin sql_pull_data failed to load: Plugin sql_pull_data failed to register: failed to load plugin sql_pull_data No module named 'langchain'
2024-04-08 15:22:29 - CodeInterpreter talk to CodeInterpreter: The following python code has been executed:

df, description = sql_pull_data("confirm 'time_series' table and pull data")
df

The execution of the generated python code above has failed

During execution, the following messages were logged:
Traceback (most recent call last):

Cell In[1], line 1
df, description = sql_pull_data("confirm 'time_series' table and pull data")

NameError: name 'sql_pull_data' is not defined

from taskweaver.

liqul avatar liqul commented on June 12, 2024

I assume you are using the container mode? check this doc here https://microsoft.github.io/TaskWeaver/docs/code_execution.

from taskweaver.

uebhh avatar uebhh commented on June 12, 2024

I assume you are using the container mode? check this doc here https://microsoft.github.io/TaskWeaver/docs/code_execution.

After setting it to local model, I can continue the execution. Thank you very much!

from taskweaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.