Comments (4)
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.
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.
I assume you are using the container
mode? check this doc here https://microsoft.github.io/TaskWeaver/docs/code_execution.
from taskweaver.
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)
- Permission Errors and Plugin Execution Failures in Dockerized Environment
- I can't import packages which needs to be installed HOT 1
- Failed loading plugin, 'gbk' codec can't decode? HOT 2
- Not able run Taskweaver with LLM Qwen1.5-72B-Chat HOT 2
- Does Taskweaver works with llama3? HOT 2
- Gets stuck in repeating Board messages HOT 1
- Running Ollama with LLama3 and Phi3 HOT 3
- Having trouble getting packages installed for plugins to use HOT 2
- No memory using only code_interperter (without planner) HOT 1
- Couldn't able to change the port number. HOT 1
- After executing the sql_pull_data plugin, the final error displayed is “No such file or directory”. HOT 4
- Front-End Attachment Feature Missing and OpenAI API Key Connection Error in Application HOT 8
- Is it possible to use ollama embedding model while using OpenAI model for agents? HOT 2
- Can Telemetry tracking be used when using TaskWeaver as a library? HOT 6
- Multiple RAG as plugins HOT 1
- FAISS.from_documents # list index out of range HOT 3
- openrouter {'message': 'Missing Authentication header or invalid API key', 'code': 401}} HOT 6
- responses from roles in the TaskWeaver HOT 1
- he generated code `!pip install openpyxl` keeps failing when executed HOT 1
- case of image-text recognition,plugin register fail HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskweaver.