chat-langchain
chat-langchain copied to clipboard
cannot import name 'AsyncCallbackManager' from 'langchain.callbacks.base' (/Users/friahi/Library/Python/3.9/lib/python/site-packages/langchain/callbacks/base.py)
the versions in the requirement files were not locked, so the AsyncCallbackManager no longer exists in the langchain/callbacks/base.py.
could u tell me which version I need?
I don't know either, it has to go through langchain and see which version had that AsyncCallbackManager or update the code to the newest version of langchain
'AsyncCallbackManager' can be imported from 'langchain.callbacks.manager' now instead. At least worked for me.
'AsyncCallbackManager' can be imported from 'langchain.callbacks.manager' now instead. At least worked for me.
I'm getting this error, is there any further solution? ERROR:root:maximum recursion depth exceeded
I managed to run the project (langchain==0.0.154) with the following changes:
from langchain.callbacks.manager import AsyncCallbackManagerERROR:root:maximum recursion depth exceeded: Using shallow copy instead of deep copy (copy.deepcopy ->copy.copy) in manager.py#L719. It's a problem copyingwebsocketinStreamingLLMCallbackHandlerandQuestionGenCallbackHandler. I think there are other ways that doesn't require to change langchain code, just make sure deepcopy work.- Using ConversationalRetrievalChain instead of ChatVectorDBChain like this pull request
@HKAB did you use solutions for ERROR:root:ChatVectorDBChain does not support async from the pull request as well?
@HKAB did you use solutions for
ERROR:root:ChatVectorDBChain does not support asyncfrom the pull request as well?
Yes, I edited my answer.
I managed to run the project (langchain==0.0.154) with the following changes:
from langchain.callbacks.manager import AsyncCallbackManagerERROR:root:maximum recursion depth exceeded: Using shallow copy instead of deep copy (copy.deepcopy ->copy.copy) in manager.py#L719. It's a problem copyingwebsocketinStreamingLLMCallbackHandlerandQuestionGenCallbackHandler. I think there are other ways that doesn't require to change langchain code, just make sure deepcopy work.- Using ConversationalRetrievalChain instead of ChatVectorDBChain like this pull request
hi , i follow your second step and modify the source code ,but it does not work ,i still get the error'ERROR:root:maximum recursion depth exceeded', so what i can do more?

i modify another (deepcopy->copy), it works now ,thx u.
'AsyncCallbackManager' can be imported from 'langchain.callbacks.manager' now instead. At least worked for me.
I'm getting this error, is there any further solution? ERROR:root:maximum recursion depth exceeded
Resolved after updating to langchain==0.0.156.
Still have this problem with langchain=0.0.188
I opened a PR to solve this issue #91
langchain==0.0.150 solved the problem