Skip to content

Commit

Permalink
Fix: restrict google-cloud-pubsub version
Browse files Browse the repository at this point in the history
- google-cloud-pubsub version in versions larger than 2.20.3 raises the following error:

site-packages/google/protobuf/internal/well_known_types.py", line 443, in FromTimedelta
    raise AttributeError(
AttributeError: Fail to convert to Duration.
Expected a timedelta like object got str: 'str' object has no attribute 'seconds'

  Fix this by restriction of the allowed package versions.
  • Loading branch information
haim0n authored and Nusnus committed Oct 17, 2024
1 parent 6a1e43c commit f26b2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/extras/gcpubsub.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
google-cloud-pubsub>=2.18.4
google-cloud-pubsub>=2.18.4,<=2.20.3
google-cloud-monitoring>=2.16.0
grpcio==1.67.0

0 comments on commit f26b2fb

Please sign in to comment.