-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
TypeError: issubclass() arg 1 must be a class (importing AsyncCallbackHandler) #7037
Comments
Answer generated by a 🤖 AnswerThe error you're encountering seems to be related to a circular import issue in the LangChain library. The traceback shows that the import of Unfortunately, as a user, you can't directly fix this issue because it's related to the internal structure of the LangChain library. The library's maintainers need to resolve this issue. In the meantime, you can try to import the from langchain.callbacks.async_handler import AsyncCallbackHandler If this doesn't work, you'll need to wait for a fix from the LangChain team. You should report this issue to them if you haven't already. SourcesThis response is meant to be useful, save you time, and share context. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. |
Hi, @blakebullwinkel! I'm Dosu, and I'm helping the LangChain team manage our backlog. I wanted to let you know that we are marking this issue as stale. Based on my understanding, the issue you reported is a Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your contribution to the LangChain repository! |
System Info
Using the latest version of langchain (0.0.220).
Who can help?
@hwchase17 @agola11
Information
Related Components
Reproduction
Steps to reproduce the behavior:
pip install langchain==0.0.220
from langchain.callbacks.base import AsyncCallbackHandler
in a Python scriptRunning this simple import gives the following traceback on my system:
Expected behavior
Running this line should import the
AsyncCallbackHandler
without error.The text was updated successfully, but these errors were encountered: