AutoGDB icon indicating copy to clipboard operation
AutoGDB copied to clipboard

python3 chat.py Error

Open MichiScotsguard opened this issue 1 year ago • 3 comments

I got these errors when executing chat.py with python3. What do I do?

Traceback (most recent call last): File "/home/kali/Downloads/tools/AutoGDB/chat.py", line 1, in from src.utils import cli File "/home/kali/Downloads/tools/AutoGDB/src/utils.py", line 1, in from autogdb import * File "/home/kali/Downloads/tools/AutoGDB/autogdb/init.py", line 1, in from .models import * File "/home/kali/Downloads/tools/AutoGDB/autogdb/models.py", line 7, in from langchain.agents import Tool ModuleNotFoundError: No module named 'langchain'

MichiScotsguard avatar Apr 18 '24 08:04 MichiScotsguard

Hi, please try python3 -m pip install -r requirements.txt or python3 -m pip install -r langchain

retr0reg avatar Apr 18 '24 14:04 retr0reg

Traceback (most recent call last): File "/home/kali/Downloads/tools/AutoGDB/chat.py", line 1, in from src.utils import cli File "/home/kali/Downloads/tools/AutoGDB/src/utils.py", line 1, in from autogdb import * File "/home/kali/Downloads/tools/AutoGDB/autogdb/init.py", line 1, in from .models import * File "/home/kali/Downloads/tools/AutoGDB/autogdb/models.py", line 7, in from langchain.agents import Tool File "/home/kali/.local/lib/python3.11/site-packages/langchain/agents/init.py", line 36, in from langchain.agents.agent import ( File "/home/kali/.local/lib/python3.11/site-packages/langchain/agents/agent.py", line 49, in from langchain.chains.base import Chain File "/home/kali/.local/lib/python3.11/site-packages/langchain/chains/init.py", line 82, in from langchain.chains.sql_database.query import create_sql_query_chain File "/home/kali/.local/lib/python3.11/site-packages/langchain/chains/sql_database/query.py", line 9, in from langchain.utilities.sql_database import SQLDatabase File "/home/kali/.local/lib/python3.11/site-packages/langchain/utilities/sql_database.py", line 1, in from langchain_community.utilities.sql_database import ( File "/home/kali/.local/lib/python3.11/site-packages/langchain_community/utilities/sql_database.py", line 9, in from sqlalchemy import ( ImportError: cannot import name 'Executable' from 'sqlalchemy' (/usr/lib/python3/dist-packages/sqlalchemy/init.py)

There is another error after executing python3 -m pip install -r requirements.txt.

MichiScotsguard avatar Apr 23 '24 03:04 MichiScotsguard

when i run the tool it asks to input open AI API URL, unfortunately first time i input a paid API which i don't actually have. now i can't reset that, i also can't find the .JSON file by removing which i can again reset the tool and it will again ask me to input the base API URL, so please help me in that case

milondas0002 avatar Mar 15 '25 23:03 milondas0002