You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: