Open mongolu opened 1 year ago
I had the same problem
root@71987129c9f5:/app/src# pip3 list | grep langchain
langchain 0.0.295
root@71987129c9f5:/app/src# python3
Python 3.11.4 (main, Jun 13 2023, 15:34:37) [GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import langchain
>>> import langchain.globals
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'langchain.globals'
>>>
>>>
Please upgrade langchain to 0.0.340 to solve my problem.
root@71987129c9f5:/app/src# pip3 list | grep langchain
langchain 0.0.340
root@71987129c9f5:/app/src# python3
Python 3.11.4 (main, Jun 13 2023, 15:34:37) [GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import langchain.globals
>>>
If choosing to use docker, how can I update the version of langchain in docker container? I don't know how to update it since there is no pip or conda in the docker container.
facing the same issue. is it fixed for you??
I connected to the docker container and did upgrade the langchain package, like this
docker exec -it platform bash
pip install langchain --upgrade
And restart the container. Now the error is gone.
Before this, langchain was Version: 0.0.295
, after upgrade is Version: 0.0.344
i did as guided and it updated the langchian and in return it gives and error: "reworkd-platform 0.1.0 requires langchain<0.0.296,>=0.0.295, but you have langchain 0.0.344 which is incompatible."
this is like it's expected because it's listed like this in platform/pyproject.toml
+1
working fine. ❤️
Up this thread, it works fine by updating the .toml, would it be relevant to turn this into a PR?
Fix it by updating the version of langchain = "^0.0.295"
to langchain = "^0.0.344"
pyproject.toml
After that run:
docker-compose build platform
<-- container name of APIdocker-compose up -d
This is actually fixed by PR #1424 that is waiting to be merged
I install AgentGPT in local server but docker,my langchain version: pip list| grep langc langchain 0.1.11 langchain-community 0.0.27 langchain-core 0.1.30 langchain-text-splitters 0.0.1
After deploying I had the same problem
following @mongolu advice
I connected to the docker container and did upgrade the langchain package, like this
docker exec -it platform bash pip install langchain --upgrade
and then doing the same with
pip install langchain_community --upgrade
fixed it for me
worth a pr
The primary issue pertains to lanarky version [v0.7.17]. A review of their release notes will reveal the same exception, which can be found at https://github.com/ajndkr/lanarky/releases. To resolve this, please update your lanarky version to 0.8.0 and python = ">=3.11,<3.12" in your pyproject.toml file.
For eleven month you cannot fix this bug? steps to reproduce
platform | ImportError: cannot import name '_signature' from 'langchain_community.chat_models.baichuan' (/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/baichuan.py)
Please check that this issue hasn't been reported before.
Expected Behavior
not to throw error
Current behaviour
Steps to reproduce
build the docker-compose
Possible solution
I don't know if it's just with me, and if yes, how can i correct this?
Which Operating Systems are you using?
Acknowledgements