Skip to content
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

Not compatible Python 3.13.0 ? #1275

Closed
m4dm4rtig4n opened this issue Oct 10, 2024 · 2 comments · Fixed by #1302
Closed

Not compatible Python 3.13.0 ? #1275

m4dm4rtig4n opened this issue Oct 10, 2024 · 2 comments · Fixed by #1302
Assignees
Labels
api: pubsub Issues related to the googleapis/python-pubsub API.

Comments

@m4dm4rtig4n
Copy link

m4dm4rtig4n commented Oct 10, 2024

Environment details

  • OS type and version: Version WSL : 2.3.24.0
  • Python version: 3.13.0
  • pip version: 24.2
  • google-cloud-pubsub version: 2.26.0

Steps to reproduce

  1. Upgrade to Python 3.13.0
  2. Just load library from google.cloud import pubsub_v1

Code example

from google.cloud import pubsub_v1

print("Hello World")

Stack trace

Traceback (most recent call last):
  File "./src/test.py", line 1, in <module>
    from google.cloud import pubsub_v1
  File "./.venv/lib/python3.13/site-packages/google/cloud/pubsub_v1/__init__.py", line 17, in <module>
    from google.cloud.pubsub_v1 import types
  File "./.venv/lib/python3.13/site-packages/google/cloud/pubsub_v1/types.py", line 39, in <module>
    from google.pubsub_v1.types import pubsub as pubsub_gapic_types
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/__init__.py", line 21, in <module>
    from .services.publisher import PublisherClient
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/services/publisher/__init__.py", line 16, in <module>
    from .client import PublisherClient
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/services/publisher/client.py", line 57, in <module>
    from google.pubsub_v1.services.publisher import pagers
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/services/publisher/pagers.py", line 40, in <module>
    from google.pubsub_v1.types import pubsub
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/types/__init__.py", line 18, in <module>
    from .pubsub import (
    ...<48 lines>...
    )
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/types/pubsub.py", line 25, in <module>
    from google.pubsub_v1.types import schema as gp_schema
  File "./.venv/lib/python3.13/site-packages/google/pubsub_v1/types/schema.py", line 507, in <module>
    class ValidateMessageResponse(proto.Message):
        r"""Response for the ``ValidateMessage`` method. Empty for now."""
  File "./.venv/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 "./.venv/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.pubsub.v1.__firstlineno__'

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Oct 10, 2024
@m4dm4rtig4n
Copy link
Author

It seems that the problem is global to several google libs.
google-cloud-logging => googleapis/python-logging#944

@cdce8p
Copy link

cdce8p commented Oct 13, 2024

This is probably related to googleapis/proto-plus-python#490

dangarmol added a commit to dangarmol/python-pubsub that referenced this issue Oct 22, 2024
dangarmol added a commit to dangarmol/python-pubsub that referenced this issue Oct 22, 2024
dangarmol added a commit to dangarmol/python-pubsub that referenced this issue Oct 22, 2024
dangarmol added a commit to dangarmol/python-pubsub that referenced this issue Oct 22, 2024
dangarmol added a commit to dangarmol/python-pubsub that referenced this issue Oct 22, 2024
dangarmol added a commit to dangarmol/python-pubsub that referenced this issue Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/python-pubsub API.
Projects
None yet
3 participants