當前版本的 google-cloud-logging 和 google-cloud-storage 似乎不兼容。谷歌到底如何認為擁有一個不能同時使用最新版本的“平臺”是可以的?
如果我的 requirements.txt 有:
google-cloud-storage
google-cloud-logging
我得到:
WARNING: Found incompatible dependencies: "google-cloud-datastore 1.15.5 has requirement protobuf<4.0.0dev, but you have protobuf 4.21.7
如果我嘗試通過添加來解決這個問題:
protobuf==3.20.1
然后我得到:
WARNING: Found incompatible dependencies: "google-cloud-logging 3.2.5 has requirement protobuf!=3.20.0,!=3.20.1,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5, but you have protobuf 3.20.1.\ngoogle-cloud-appengine-logging 1.1.6 has requirement protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5, but you have protobuf 3.20.1.\ngoogle-api-core 2.10.2 has requirement protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5, but you have protobuf 3.20.1.
這里有人知道實際上允許同時使用 google-cloud-storage 和 google-cloud-logging 的咒語嗎?
另外,如果 GAE 團隊的任何人正在閱讀本文,請您在這方面采取行動,并讓您的 SDK 的“最新”版本協同作業?這個 protobuf 問題已經存在了很長時間。
uj5u.com熱心網友回復:
因為您正在集成 Cloud Datastore,它具有protobuf包版本低于 4.0 的依賴項要求,請使用:
protobuf<4
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/516626.html
標籤:Google Cloud Collective python-3.x谷歌应用引擎谷歌云数据存储谷歌云日志要求.txt
上一篇:將應用程式部署到GoogleAppEngine時出現HTTP500錯誤
下一篇:Flask藍圖子域不作業GAE
