-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
langchain-server: ModuleNotFoundError: No module named 'langchain.cli' #5833
Comments
same same issue mac os |
Same issue RHEL 7 |
same issue: |
same here |
I installed langchain.cli manually and things seems to be working. e.g.
|
@gonzoramos unfortunately that downgrades langchain to 0.0.139. And won't work with 0.0.196. I suspect langchain.cli (https://pypi.org/project/langchain-cli/) is not the same thing as the orphaned module in What worked for me locally is to replace
|
…gchain-ai#5833 (langchain-ai#6077) This PR fixes the error `ModuleNotFoundError: No module named 'langchain.cli'` Fixes langchain-ai#5833 (issue)
System Info
WSL Ubuntu 20.04
langchain 0.0.192
langchainplus-sdk 0.0.4
Who can help?
@agola11
Information
Related Components
Reproduction
I did as instructed in the link
https://python.langchain.com/en/latest/tracing/local_installation.html
Expected behavior
❯ langchain-server
Traceback (most recent call last):
File "/home/usr/miniconda3/envs/dev/bin/langchain-server", line 5, in
from langchain.server import main
File "/home/usr/miniconda3/envs/dev/lib/python3.11/site-packages/langchain/server.py", line 5, in
from langchain.cli.main import get_docker_compose_command
ModuleNotFoundError: No module named 'langchain.cli'
The text was updated successfully, but these errors were encountered: