retr0reg / AutoGDB

AutoGDB: Automatic Binary-exploitation Tool combining GPT and GDB
MIT License
84 stars 6 forks source link

python3 chat.py Error #4

Open MichiScotsguard opened 3 months ago

MichiScotsguard commented 3 months ago

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'

retr0reg commented 3 months ago

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

MichiScotsguard commented 3 months ago

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.