Error running Camel locally #124
Unanswered
jetsonearth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, thanks so much for putting this repo together. I am experiencing trouble running Camel locally. I set up a VM with Python 3.9 and followed the instruction under "HOW TO RUN CAMEL 🐫". Everything went smoothly and I could configure my environment and dependencies, but when I ran "streamlit run Camel.py", I experienced the error below:
`$ streamlit run Camel.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8503
Network URL: http://26.26.26.1:8503
For better performance, install the Watchdog module:
$ xcode-select --install
$ pip install watchdog
2023-05-23 22:10:15.549 Uncaught app exception
Traceback (most recent call last):
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ZhaobangJetWu/DataFun/LLM/FreeAutoGPT/Free-Auto-GPT/Camel.py", line 1, in
from langchain.prompts.chat import (
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/init.py", line 6, in
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/agents/init.py", line 2, in
from langchain.agents.agent import (
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/agents/agent.py", line 16, in
from langchain.agents.tools import InvalidTool
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/agents/tools.py", line 8, in
from langchain.tools.base import BaseTool, Tool, tool
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/tools/init.py", line 42, in
from langchain.tools.vectorstore.tool import (
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/tools/vectorstore/tool.py", line 13, in
from langchain.chains import RetrievalQA, RetrievalQAWithSourcesChain
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/chains/init.py", line 2, in
from langchain.chains.api.base import APIChain
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/chains/api/base.py", line 13, in
from langchain.chains.api.prompt import API_RESPONSE_PROMPT, API_URL_PROMPT
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/chains/api/prompt.py", line 2, in
from langchain.prompts.prompt import PromptTemplate
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/prompts/init.py", line 3, in
from langchain.prompts.chat import (
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/prompts/chat.py", line 10, in
from langchain.memory.buffer import get_buffer_string
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/memory/init.py", line 28, in
from langchain.memory.vectorstore import VectorStoreRetrieverMemory
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/memory/vectorstore.py", line 10, in
from langchain.vectorstores.base import VectorStoreRetriever
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/vectorstores/init.py", line 2, in
from langchain.vectorstores.analyticdb import AnalyticDB
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/vectorstores/analyticdb.py", line 16, in
from langchain.embeddings.base import Embeddings
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/embeddings/init.py", line 19, in
from langchain.embeddings.openai import OpenAIEmbeddings
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 67, in
class OpenAIEmbeddings(BaseModel, Embeddings):
File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.new
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 663, in pydantic.fields.ModelField._type_analysis
File "pydantic/fields.py", line 808, in pydantic.fields.ModelField._create_sub_type
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
File "/Users/ZhaobangJetWu/opt/miniconda3/envs/freeautogpt/lib/python3.9/typing.py", line 852, in subclasscheck
return issubclass(cls, self.origin)
TypeError: issubclass() arg 1 must be a class`
Could someone please take a look? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions