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):
File "<string>", line 1, in <module>
import google.cloud.logging
File "/usr/local/lib/python3.13/site-packages/google/cloud/logging/__init__.py", line 18, in <module>
from google.cloud.logging_v2 import __version__
File "/usr/local/lib/python3.13/site-packages/google/cloud/logging_v2/__init__.py", line 21, in <module>
from google.cloud.logging_v2.client import Client
File "/usr/local/lib/python3.13/site-packages/google/cloud/logging_v2/client.py", line 25, in <module>
from google.cloud.logging_v2._helpers import _add_defaults_to_filter
File "/usr/local/lib/python3.13/site-packages/google/cloud/logging_v2/_helpers.py", line 31, in <module>
from google.cloud.logging_v2.types import LogSeverity
File "/usr/local/lib/python3.13/site-packages/google/cloud/logging_v2/types/__init__.py", line 36, in <module>
from .logging_config import (
...<53 lines>...
)
File "/usr/local/lib/python3.13/site-packages/google/cloud/logging_v2/types/logging_config.py", line 2403, in <module>
class LocationMetadata(proto.Message):
...<11 lines>...
)
File "/usr/local/lib/python3.13/site-packages/proto/message.py", line 279, in __new__
file_info.generate_file_pb(new_class=cls, fallback_salt=full_name)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/proto/_file_info.py", line 104, in generate_file_pb
pool.Add(self.descriptor)
~~~~~~~~^^^^^^^^^^^^^^^^^
TypeError: Couldn't build proto file into descriptor pool: duplicate symbol 'google.logging.v2.__firstlineno__'
The text was updated successfully, but these errors were encountered:
Agreed - proto-plus>=1.25.0rc0 seems to fix the issue for me 👍
parthea
changed the title
Import error on Python 3.13 TypeError: Couldn't build proto file into descriptor pool: duplicate symbol 'google.logging.v2.__firstlineno__'"
proto-plus >= 1.25 needed for python 3.13
Oct 25, 2024
Environment details
python --version
3.13.0pip --version
24.2google-cloud-logging
version:pip show google-cloud-logging
Steps to reproduce
docker run -it python:3.13.0 bash
pip install google-cloud-logging
python -c "import google.cloud.logging"
Code example
Stack trace
The text was updated successfully, but these errors were encountered: