langchain
langchain copied to clipboard
ModuleNotFoundError: No module named 'langchain.schemas'
When installing Langchain==0.0.155
I am getting the error that langchain.schemas
does not exists. This is because the file is named langchain.schema so there is a typo. I will create a pull request and reference this issue.
encountered same error, already fix it by your instructions, thanks!
encountered same error, already fix it by your instructions, thanks!
how do you fix it?
Click “Fix issue”, you will see the answer.
same issue here how do you fix it? I do not see any solution here yet! please publish your instructions if any.
Yea I implemented Pull Request #3961, sorry for not referencing it
so what should I write instead of this code that I have "from langchain.document_loaders import UnstructuredPDFLoader from langchain.indexes import VectorstoreIndexCreator"?
so what should I write instead of this code that I have "from langchain.document_loaders import UnstructuredPDFLoader from langchain.indexes import VectorstoreIndexCreator"?
You have to go into the source code, so where python is installed on your system, go to site_package
and edit the file langchain/indexes/vectorstore.py with the changes
thanks many
Thanks for the help, what would you do if you're deploying the code via github? Theres no source code in the repo or there is?
Thanks for the help, what would you do if you're deploying the code via github? Theres no source code in the repo or there is?
You got two options. You can wait for the maintainers to approve the pull request or you could create a fork of the project and fix it yourself, publish the package etc. (not shure how easy this part is)
Thanks for the help, what would you do if you're deploying the code via github? Theres no source code in the repo or there is?
You got two options. You can wait for the maintainers to approve the pull request or you could create a fork of the project and fix it yourself, publish the package etc. (not shure how easy this part is)
Just changed the requirements.txt to a previous version of langchain and worked :)
Seems to have been fixed by #4003
This is indeed fixed now, closing the issue