-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
AttributeError: module 'langchain' has no attribute 'verbose' #4164
Comments
Same issue here with Anaconda in a jupyter notebook on sagemaker, langchain==0.0.158, python3.9, with this simple custom LLM example: https://python.langchain.com/en/latest/modules/models/llms/examples/custom_llm.html |
Same error here with langchain==0.0.158, python3.9. need to fix it asap. |
Hello, same error with langchain==0.0.159, python 3.9.12 |
Hello, same error with langchain==0.0.158, python 3.9.11 |
same , langchain==0.0.160 |
call with azure openai broken(RetrievalQA, resource not found). when use langchain==0.0.150, everything is ok. |
same, langchain ==0.0.160 with python 3.8.10 |
Hello, same error with langchain==0.0.160, python 3.10.11 |
Some kind of race condition bug? Seems to be fixable by explicitly
before trying to initialize llm. |
@wafflecomposite This solution worked for me. Thanks! |
This issue seems to have resurfaced in version 0.0.234 of langchain. The suggested solution in the issue works only temporarily, meaning the issue popped up after some time again. |
this did not work for me. |
Getting this error in 0.0.299 as well |
Just in case someone gets this error now, the only thing that worked for me was updating langchain's version. In my case I'm using poetry as my package manager and did:
If you're using pip just use:
I tried using the |
This issue still appears in the latest version (0.0.332). Is there a known solution? |
I also faced this issue. In my case it was my folder structure messing with the imports. I had a folder called |
great!rename can solve |
good job bro, i have solved the question due to your reply |
it works, I can't belive the reason is this stupid LOL. |
For me, I had a file named change the name it seems ok -__- |
I named my python file "langchain.py". When I ran it using "python langchain.py", I get this error. After I renamed the "langchain.py" to some other name, the error is gone. |
System Info
langchain==0.0.157
Who can help?
No response
Information
Related Components
Reproduction
When I try to run
llm = OpenAI(temperature=0)
Expected behavior
Don't get the error
The text was updated successfully, but these errors were encountered: