Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/generativeai/__init__.py", line 45, in <module>
from google.generativeai import types
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/generativeai/types/__init__.py", line 17, in <module>
from google.generativeai.types.citation_types import *
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/generativeai/types/citation_types.py", line 20, in <module>
from google.ai import generativelanguage as glm
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/ai/generativelanguage/__init__.py", line 21, in <module>
from google.ai.generativelanguage_v1beta.services.discuss_service.async_client import (
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/ai/generativelanguage_v1beta/__init__.py", line 21, in <module>
from .services.discuss_service import DiscussServiceAsyncClient, DiscussServiceClient
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/ai/generativelanguage_v1beta/services/discuss_service/__init__.py", line 16, in <module>
from .async_client import DiscussServiceAsyncClient
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/ai/generativelanguage_v1beta/services/discuss_service/async_client.py", line 48, in <module>
from google.ai.generativelanguage_v1beta.types import discuss_service, safety
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/ai/generativelanguage_v1beta/types/__init__.py", line 16, in <module>
from .citation import CitationMetadata, CitationSource
File "/home/tiger/miniconda3/envs/gemini/lib/python3.9/site-packages/google/ai/generativelanguage_v1beta/types/citation.py", line 22, in <module>
__protobuf__ = proto.module(
AttributeError: module 'proto' has no attribute 'module'
Actual vs expected behavior:
No response
Any other information you'd like to share?
I could make this work on Mac and another instance. But can not make it work on our development environment. I am not sure if this is about the package version issues?
Description of the bug:
Actual vs expected behavior:
No response
Any other information you'd like to share?
I could make this work on Mac and another instance. But can not make it work on our development environment. I am not sure if this is about the package version issues?
There are more environment info:
Originally posted by @Luodian in https://github.com/google-gemini/generative-ai-python/issues/360