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.47k stars 383 forks source link

Exception has occurred: NameError #72

Closed dijikul closed 1 year ago

dijikul commented 1 year ago

I am attempting to run AUTOGPT.py on Windows 10 using the FAST INSTALL local using Dev Container in VSCode by @FlamingFury00🚀method.

After everything installs, my .env file is configured and I attempt to run AUTOGPT.py in debugging mode, this error occurs:

image

The configured .env file includes a CHATGPT_TOKEN, a CHAT_ID and a HUGGINGFACE_TOKEN.

IntelligenzaArtificiale commented 1 year ago

Try to run on cmd pip3 install -U langchain and retry.

FunkyAbigail commented 1 year ago

I'm getting a similar, if not the same, error.

image

IntelligenzaArtificiale commented 1 year ago

have you installed the lastes version of python 3.11 ?

Pls try to install python3.11

FunkyAbigail commented 1 year ago

I am already running Python 3.11, and I tried the above suggestion also.

mithras666 commented 1 year ago

Hey guys, I'm having the same issue on the Colab notebook actually!

image

rastinder commented 1 year ago

NameError: name 'v_args' is not defined. Did you mean: 'vars'? in my windows i have python 3.11 but in container with wsl i have 3.10.11 but its saying already updated to latest

IntelligenzaArtificiale commented 1 year ago

We are working to figure out what the problem might be.

In this issue https://github.com/IntelligenzaArtificiale/Free-AUTO-GPT-with-NO-API/issues/76#issue-1698663356 the problem seemed to be just python3.10 .

mtariqsajid commented 1 year ago

is not working even with python3.11 in wsl2 windows

tariq@laptop:~/work/Free-AUTO-GPT-with-NO-API$ python3.11 AUTOGPT.py
Traceback (most recent call last):
  File "/home/tariq/work/Free-AUTO-GPT-with-NO-API/AUTOGPT.py", line 8, in <module>
    from langchain.experimental.autonomous_agents.autogpt.agent import AutoGPT
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/experimental/__init__.py", line 3, in <module>
    from langchain.experimental.generative_agents.generative_agent import GenerativeAgent
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/experimental/generative_agents/__init__.py", line 2, in <module>
    from langchain.experimental.generative_agents.generative_agent import GenerativeAgent
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/experimental/generative_agents/generative_agent.py", line 9, in <module>
    from langchain.experimental.generative_agents.memory import GenerativeAgentMemory
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/experimental/generative_agents/memory.py", line 8, in <module>
    from langchain.retrievers import TimeWeightedVectorStoreRetriever
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/retrievers/__init__.py", line 9, in <module>
    from langchain.retrievers.self_query.base import SelfQueryRetriever
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/retrievers/self_query/base.py", line 8, in <module>
    from langchain.chains.query_constructor.base import load_query_constructor_chain
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/chains/query_constructor/base.py", line 14, in <module>
    from langchain.chains.query_constructor.parser import get_parser
  File "/home/tariq/.local/lib/python3.11/site-packages/langchain/chains/query_constructor/parser.py", line 43, in <module>
    @v_args(inline=True)
     ^^^^^^
NameError: name 'v_args' is not defined. Did you mean: 'vars'?

i also try this no luck

python3.11 -m pip install -r requirements.txt
python3.11 AUTOGPT.py
IntelligenzaArtificiale commented 1 year ago

try pip3.11 install lark-parser

undergroundBlock commented 1 year ago

BabyAgi stopped working for me, than i did pip install langchain==0.0.161 than it works again :)

dijikul commented 1 year ago

try pip3.11 install lark-parser

This resolved my issue. Thank you!