使用 GCP Cloud Composer,尝试添加 PyPI 包google-cloud-data-fusion
使用的版本:composer-2.2.0-airflow-2.5.1
问题:尝试添加 PYPI“google-cloud-data-fusion”并且抛出错误。
此环境上的更新操作刚刚失败,并显示以下错误消息: 无法安装 PyPI 包。 mysql-connector-python 8.0.33 要求 protobuf<=3.20.3,>=3.11.0,但您有 protobuf 4.23.1。
我尝试更新一些依赖包,但发现一些包存在依赖问题,并且找不到任何解决方案。
- google-cloud-data-fusion 1.8.1 要求 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,但你有 protobuf 3.20.0。
- mysql-connector-python 8.0.33 要求 protobuf<=3.20.3,>=3.11.0,但您有 protobuf 4.23.1。
- google-ads 20.0.0+composer 要求 proto-plus==1.19.6,但您拥有 proto-plus 1.22.2。
- google-ads 21.1.0 要求 protobuf>=4.21.5,但您使用的是 protobuf 3.20.3。
- google-ads 21.0.0 要求 protobuf>=4.21.5,但您使用的是 protobuf 3.20.3。
可以在此处找到指定的 Composer 版本的依赖包。 https://cloud.google.com/composer/docs/concepts/versioning/composer-versions
最佳答案
该错误是由于包依赖性造成的。降级并升级 protfus、protoplus 等软件包后,问题仍未解决。这似乎是一个内部问题。
有一个similar issue提出了同样的要求。您可以通过点击“+1”和“STAR”标记来投票支持此问题,以接收有关该问题的更新,也可以在 Google 的 Public Issue Tracker 中创建一个新的请求线程。 .
关于google-cloud-platform - mysql-connector-python 8.0.33 要求 protobuf<=3.20.3,>=3.11.0,但你有 protobuf 4.23.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76337858/