Openstack/devstack安装-冲突原因:oslo-vmware 3.9.1依赖suds-jurko>=0.6

Openstack/devstack Installation - The conflict is caused by: oslo-vmware 3.9.1 depends on suds-jurko>=0.6

我正在尝试使用 https://docs.openstack.org/devstack/latest/.

中的指南在 Ubuntu 18.04 上安装 devstack

安装失败并出现错误,

ERROR: Cannot install cinder because these package versions have conflicting dependencies.

The conflict is caused by:
    oslo-vmware 3.9.1 depends on suds-jurko>=0.6
    The user requested (constraint) suds-jurko===0.6

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

我机器上有2个python版本

stack@stack:~/devstack$ which python
/usr/bin/python
stack@stack:~/devstack$ which python3
/usr/bin/python3

我是不是遗漏了什么?

此致,

J

问题是 suds-jurko 与 setuptools 58.0 不兼容。您需要降级到 setuptools 57.5.0,例如pip install setuptools==57.5.0,不过devstack有可能会再次升级

真正的解决方案是一组上游补丁,这些补丁已经在工作中以解决此问题,但尚未合并(截至此 post)。 https://review.opendev.org/c/openstack/oslo.vmware/+/813377

只需安装 setuptools 57.5.0

vim /opt/stack/requirements/upper-constraints.txt

像这样:

#setuptools===58.2.0
setuptools===57.5.0

对我有用。