typedb / typedb-driver-python

TypeDB Driver for Python

Home Page:https://typedb.com

Repository from Github https://github.comtypedb/typedb-driver-pythonRepository from Github https://github.comtypedb/typedb-driver-python

GCP and protobuf requirement updates

LeData opened this issue · comments

Description

The client currently pins the protobuf library to version 3.15, which results in compatibility issues with google.storage clients.
Though there is no requirement problems, error messages result from importing the library:

Traceback (most recent call last):
  File "xxx", line 10, in <module>
    from google.cloud import storage
...
...
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

Environment

  1. TypeDB client-python version: 2.12.0
  2. Python version: 3.9
  3. Other environment details: google_cloud_storage = 2.6.0

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. build an environment with the typedb client and google_cloud_storage from above
  2. load google.cloud.storage.

Expected Output

I expected the libraries to load without a problem, but it seems that this is a known issue with google and protobuf < 3.20.1

Actual Output

The error message from above

Additional information

googleapis/python-iam#185

Hi @LeData can you try the latest 2.12.1 release please?

That does the trick, thank you!

Excellent! Closing.