IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.49k stars 385 forks source link

NameError: name 'v_args' is not defined #83

Closed mah007 closed 1 year ago

mah007 commented 1 year ago

after today update /home/mahmoud/Projects/gpt/venv/bin/python /home/mahmoud/Projects/gpt/AUTOGPT.py Traceback (most recent call last): File "/home/mahmoud/Projects/gpt/AUTOGPT.py", line 11, in from langchain.experimental.autonomous_agents.autogpt.agent import AutoGPT File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/experimental/init.py", line 3, in from langchain.experimental.generative_agents.generative_agent import GenerativeAgent File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/experimental/generative_agents/init.py", line 2, in from langchain.experimental.generative_agents.generative_agent import GenerativeAgent File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/experimental/generative_agents/generative_agent.py", line 9, in from langchain.experimental.generative_agents.memory import GenerativeAgentMemory File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/experimental/generative_agents/memory.py", line 8, in from langchain.retrievers import TimeWeightedVectorStoreRetriever File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/retrievers/init.py", line 9, in from langchain.retrievers.self_query.base import SelfQueryRetriever File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/retrievers/self_query/base.py", line 8, in from langchain.chains.query_constructor.base import load_query_constructor_chain File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/chains/query_constructor/base.py", line 14, in from langchain.chains.query_constructor.parser import get_parser File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/langchain/chains/query_constructor/parser.py", line 43, in @v_args(inline=True) NameError: name 'v_args' is not defined

FlamingFury00 commented 1 year ago

https://github.com/IntelligenzaArtificiale/Free-Auto-GPT/issues/76#issuecomment-1537165628

IntelligenzaArtificiale commented 1 year ago

First try to follow the advice of @FlamingFury00 which has already solved the issue for many people.

if not working try to see this https://github.com/IntelligenzaArtificiale/Free-Auto-GPT/issues/72#issuecomment-1537224224

steunet commented 1 year ago

Hi, you solve simply with a:

pip3 install lark

It has to be added in requirements

IntelligenzaArtificiale commented 1 year ago

Done https://github.com/IntelligenzaArtificiale/Free-Auto-GPT/commit/40b56ff735633e19ec924be58245744c23e9d3ad