-
Notifications
You must be signed in to change notification settings - Fork 138
ImportError: cannot import name 'StructuredTool' from 'langchain.tools' #142
Comments
What's |
somehow the problem changed: (venv_pdfGPT) ~/pdfGPT/ [main*] lc-serve deploy local api (venv_pdfGPT) ~/pdfGPT/ [main*] pip show langchain |
hmm I thought the |
trying on a MacBook M2
(venv_pdfGPT) ~/pdfGPT/ [main*] lc-serve deploy local api --platform linux/amd64
Traceback (most recent call last):
File "/opt/homebrew/bin/lc-serve", line 5, in
from lcserve.main import serve
File "/opt/homebrew/lib/python3.11/site-packages/lcserve/init.py", line 16, in
from .backend.slackbot import SlackBot
File "/opt/homebrew/lib/python3.11/site-packages/lcserve/backend/slackbot/init.py", line 1, in
from .slackbot import SlackBot
File "/opt/homebrew/lib/python3.11/site-packages/lcserve/backend/slackbot/slackbot.py", line 24, in
from langchain.tools import StructuredTool
ImportError: cannot import name 'StructuredTool' from 'langchain.tools' (/Users/andi/Library/Python/3.11/lib/python/site-packages/langchain/tools/init.py)
(venv_pdfGPT) ~/pdfGPT/ [main*] lc-serve deploy local api
Traceback (most recent call last):
File "/opt/homebrew/bin/lc-serve", line 5, in
from lcserve.main import serve
File "/opt/homebrew/lib/python3.11/site-packages/lcserve/init.py", line 16, in
from .backend.slackbot import SlackBot
File "/opt/homebrew/lib/python3.11/site-packages/lcserve/backend/slackbot/init.py", line 1, in
from .slackbot import SlackBot
File "/opt/homebrew/lib/python3.11/site-packages/lcserve/backend/slackbot/slackbot.py", line 24, in
from langchain.tools import StructuredTool
ImportError: cannot import name 'StructuredTool' from 'langchain.tools' (/Users/andi/Library/Python/3.11/lib/python/site-packages/langchain/tools/init.py)
The text was updated successfully, but these errors were encountered: