Skip to content

Metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases #847

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

Open
vizsatiz opened this issue Apr 8, 2025 · 1 comment

Comments

@vizsatiz
Copy link

vizsatiz commented Apr 8, 2025

Traceback (most recent call last):
from langchain_google_genai import ChatGoogleGenerativeAI
File "/usr/local/lib/python3.11/site-packages/langchain_google_genai/init.py", line 59, in
from langchain_google_genai.chat_models import ChatGoogleGenerativeAI
File "/usr/local/lib/python3.11/site-packages/langchain_google_genai/chat_models.py", line 668, in
class ChatGoogleGenerativeAI(_BaseGoogleGenerativeAI, BaseChatModel):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

@langcarl langcarl bot added the investigate label Apr 8, 2025
@vizsatiz vizsatiz changed the title Getting this error, tried multiple langchain versions Metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases Apr 8, 2025
@ccurme
Copy link
Contributor

ccurme commented Apr 8, 2025

Can you please share the output of python -m langchain_core.sys_info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants