From f26b2fbfbfaea15f1626ef252cfc1cf97d4c4c14 Mon Sep 17 00:00:00 2001 From: Haim Daniel Date: Thu, 17 Oct 2024 12:12:15 +0300 Subject: [PATCH] Fix: restrict google-cloud-pubsub version - 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. --- requirements/extras/gcpubsub.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/extras/gcpubsub.txt b/requirements/extras/gcpubsub.txt index ec7829f86..c4c1b3c60 100644 --- a/requirements/extras/gcpubsub.txt +++ b/requirements/extras/gcpubsub.txt @@ -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