Skip to content

Commit

Permalink
Fix: restrict google-cloud-pubsub version (#2160)
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.

Co-authored-by: Haim Daniel <[email protected]>
  • Loading branch information
haimjether and haim0n authored Oct 17, 2024
1 parent 6a1e43c commit 6a77355
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 6a77355

Please sign in to comment.