mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1

huangapple go评论65阅读模式
英文:

mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1

问题

使用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。

我已经尝试更新一些依赖包,但发现一些包存在依赖问题,找不到解决方法。

  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。
  2. mysql-connector-python 8.0.33 要求 protobuf<=3.20.3,>=3.11.0,但您有 protobuf 4.23.1。
  3. google-ads 20.0.0+composer 要求 proto-plus==1.19.6,但您有 proto-plus 1.22.2。
  4. google-ads 21.1.0 要求 protobuf>=4.21.5,但您有 protobuf 3.20.3。
  5. google-ads 21.0.0 要求 protobuf>=4.21.5,但您有 protobuf 3.20.3。

指定Composer版本的依赖包可以在此处找到。
https://cloud.google.com/composer/docs/concepts/versioning/composer-versions

英文:

Using GCP Cloud Composer,trying to add PyPI package google-cloud-data-fusion

mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1

Version used: composer-2.2.0-airflow-2.5.1

Issue: trying to add PYPI "google-cloud-data-fusion" and it's throwing the error.

UPDATE operation on this environment failed Just now with the following error message:
Failed to install PyPI packages. mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1.

I have tried to update some of the dependent packages but found some of the packages are having dependency issue and can not find any solution for this.

  1. google-cloud-data-fusion 1.8.1 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.0.
  2. mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1.
  3. google-ads 20.0.0+composer has requirement proto-plus==1.19.6, but you have proto-plus 1.22.2.
  4. google-ads 21.1.0 has requirement protobuf>=4.21.5, but you have protobuf 3.20.3.
  5. google-ads 21.0.0 has requirement protobuf>=4.21.5, but you have protobuf 3.20.3.

Dependepent packages can be found here for specified composer version.
https://cloud.google.com/composer/docs/concepts/versioning/composer-versions

答案1

得分: 2

复制了您的情况并收到了相同的错误消息:
mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1

错误是由于包依赖性引起的。降级和升级诸如protfus、protoplus等包并未解决问题。看起来是一个内部问题。

已有一个类似的问题已提交。您可以通过点击“+1”和“STAR”标记来投票支持此问题,以便接收更新,或者您还可以在Google的公共问题跟踪器中创建一个新的请求线程。

英文:

Replicated your case and got the same error message:
mysql-connector-python 8.0.33 has requirement protobuf<=3.20.3,>=3.11.0, but you have protobuf 4.23.1

The error is due to package dependency. After downgrading and upgrading packages such as protfus,protoplus..etc not solved the issue. It seems like an internal issue.

There is a similar issue filed for the same. You can vote for this issue by clicking the "+1" and "STAR" mark to receive updates on it or you can also create a new request thread in Google’s Public Issue Tracker.

huangapple
  • 本文由 发表于 2023年5月26日 13:20:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76337858.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定