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 committed Oct 17, 2024
1 parent 47457c1 commit 179af94
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.66.2

0 comments on commit 179af94

Please sign in to comment.