Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

GCP and protobuf requirement updates #270

Closed
LeData opened this issue Dec 5, 2022 · 3 comments
Closed

GCP and protobuf requirement updates #270

LeData opened this issue Dec 5, 2022 · 3 comments

Comments

@LeData
Copy link

LeData commented Dec 5, 2022

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

flyingsilverfin pushed a commit that referenced this issue Dec 5, 2022
## What is the goal of this PR?

We've bumped our protobuf dependency in response to the following issue:
- #270

## What are the changes implemented in this PR?

We've changed our pinned protobuf version from 3.15.5 to 3.20.1.
@flyingsilverfin
Copy link
Member

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

@LeData
Copy link
Author

LeData commented Dec 8, 2022

That does the trick, thank you!

@jamesreprise
Copy link
Contributor

Excellent! Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants