Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 chat.py Error #4

Open
MichiScotsguard opened this issue Apr 18, 2024 · 2 comments
Open

python3 chat.py Error #4

MichiScotsguard opened this issue Apr 18, 2024 · 2 comments

Comments

@MichiScotsguard
Copy link

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
Copy link
Member

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

@MichiScotsguard
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants