Hi Alex, The issue looks due to an outdated mirror(i.e https://pypi.tuna.tsinghua.edu.cn), it should work fine with an up to date mirror. See below 14.3.0 is not available in the pypi index you using:- $ curl https://pypi.tuna.tsinghua.edu.cn/simple/oslo-messaging/ 2>/dev/null|grep oslo.messaging-14 <a href="../../packages/a2/2c/5e7bac88a7978bb4dc3d63c4f45130cec4390876f67f938e45ca541e9143/oslo.messaging-14.0.0-py3-none-any.whl#sha256=1b0fdbf4c87ebad9e188f8bca536ade08a381f579df822b0041548b260f7d14d" data-requires-python=">=3.8">oslo.messaging-14.0.0-py3-none-any.whl</a><br/> <a href="../../packages/73/5c/c188660f90533a4fd88cac355204160da3ab118e3aa62bdfadbcb3422eb2/oslo.messaging-14.0.0.tar.gz#sha256=49917adeef2f795c9d9fad8714997cabb3df2ca7fac57c8bb119617bff2874c3" data-requires-python=">=3.8">oslo.messaging-14.0.0.tar.gz</a><br/> <a href="../../packages/12/d7/db0c6dc8149fa4e601b8115af6878183b7f280793ccdf3a70f4c9d0c92fa/oslo.messaging-14.1.0-py3-none-any.whl#sha256=9ae3d22df97190a35124a8f28cc0ceb64de99570b730a41d14d103b7ebf78c37" data-requires-python=">=3.8">oslo.messaging-14.1.0-py3-none-any.whl</a><br/> <a href="../../packages/6a/52/f1fb2a8b00a61f8dd816efe319756243145a7f0583c9c1a4c1819c14d6d5/oslo.messaging-14.1.0.tar.gz#sha256=f2947ed073976458dc2d0774943ccf6d0c4d219c8d36f96ee2eae97aaa872565" data-requires-python=">=3.8">oslo.messaging-14.1.0.tar.gz</a><br/> <a href="../../packages/74/54/2cfb08e99e0e7bf30dd9ef182c690380478e9310d067f50d2255554f097c/oslo.messaging-14.2.0-py3-none-any.whl#sha256=25d6c65bb3ff78e7b3d135f8440df35838ee780b475153920c774e0c0b68398e" data-requires-python=">=3.8">oslo.messaging-14.2.0-py3-none-any.whl</a><br/> <a href="../../packages/9b/6c/e61332678e4c665f18144dc5192c0a6f4f37b1ce0a7c5e5d5a38f628342f/oslo.messaging-14.2.0.tar.gz#sha256=27088ee572d9a0f08e611fce77b476f3aa1e35395fd3a9a38d5c310c9699db0e" data-requires-python=">=3.8">oslo.messaging-14.2.0.tar.gz</a><br/> V/s $ curl https://pypi.org/simple/oslo-messaging/ 2>/dev/null|grep oslo.messaging-14 <a href=" https://files.pythonhosted.org/packages/a2/2c/5e7bac88a7978bb4dc3d63c4f45130..." data-requires-python=">=3.8"
oslo.messaging-14.0.0-py3-none-any.whl</a><br /> <a href=" https://files.pythonhosted.org/packages/73/5c/c188660f90533a4fd88cac35520416..." data-requires-python=">=3.8" >oslo.messaging-14.0.0.tar.gz</a><br /> <a href=" https://files.pythonhosted.org/packages/12/d7/db0c6dc8149fa4e601b8115af68781..." data-requires-python=">=3.8" oslo.messaging-14.1.0-py3-none-any.whl</a><br /> <a href=" https://files.pythonhosted.org/packages/6a/52/f1fb2a8b00a61f8dd816efe3197562..." data-requires-python=">=3.8" >oslo.messaging-14.1.0.tar.gz</a><br /> <a href=" https://files.pythonhosted.org/packages/74/54/2cfb08e99e0e7bf30dd9ef182c6903..." data-requires-python=">=3.8" oslo.messaging-14.2.0-py3-none-any.whl</a><br /> <a href=" https://files.pythonhosted.org/packages/9b/6c/e61332678e4c665f18144dc5192c0a..." data-requires-python=">=3.8" >oslo.messaging-14.2.0.tar.gz</a><br /> <a href=" https://files.pythonhosted.org/packages/59/c3/a1369b70cfff2864fd19aeb17d6167..." data-requires-python=">=3.8" data-dist-info-metadata="sha256=ea6f422823b48d9513008a2e8c86b57ebc80a61e3fae6b8e718e8674f8ac11df">oslo.messaging-14.3.0-py3-none-any.whl</a><br /> <a href=" https://files.pythonhosted.org/packages/b9/92/afd6f5c27fc2cde5c81ada2615b6ee..." data-requires-python=">=3.8" >oslo.messaging-14.3.0.tar.gz</a><br />
Thanks and Regards Yatin Karel On Thu, May 25, 2023 at 11:46 AM Alex Song (宋文平) <songwenping@inspur.com> wrote:
Hi,
When I check pep8 with the newest devstack env by the cmd ‘tox –e pep8’, it raise many packages conflict. The log is as follows.
root@song-ctrl:/opt/stack/cyborg# tox -e pep8
pep8 create: /opt/stack/cyborg/.tox/shared
pep8 installdeps: -c https://releases.openstack.org/constraints/upper/master, -r/opt/stack/cyborg/requirements.txt, -r/opt/stack/cyborg/test-requirements.txt
ERROR: invocation failed (exit code 1), logfile: /opt/stack/cyborg/.tox/shared/log/pep8-1.log
========================================================================================================================================== log start ==========================================================================================================================================
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pbr!=2.1.0,>=0.11 (from -r /opt/stack/cyborg/requirements.txt (line 5))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/01/06/4ab11bf70db5a60689fc521b636... (112 kB)
Collecting pecan!=1.0.2,!=1.0.3,!=1.0.4,!=1.2,>=1.0.0 (from -r /opt/stack/cyborg/requirements.txt (line 6))
Using cached pecan-1.4.2-py3-none-any.whl
Collecting WSME>=0.10.1 (from -r /opt/stack/cyborg/requirements.txt (line 7))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d2/a0/54b71fd2e1ab4f838acf472726a... (59 kB)
Collecting eventlet>=0.26.0 (from -r /opt/stack/cyborg/requirements.txt (line 8))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/90/97/928b89de2e23cc67136eccccf1c... (226 kB)
Collecting oslo.i18n>=1.5.0 (from -r /opt/stack/cyborg/requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/62/5a/ced9667f5a35d712734bf3449af... (46 kB)
Collecting oslo.config!=4.3.0,!=4.4.0,>=1.1.0 (from -r /opt/stack/cyborg/requirements.txt (line 10))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ce/15/97fb14b7a1692693610a8e00e2a... (128 kB)
Collecting oslo.log>=5.0.0 (from -r /opt/stack/cyborg/requirements.txt (line 11))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9c/24/526545a76513c741c65eeb70a85... (71 kB)
Collecting oslo.context>=2.9.0 (from -r /opt/stack/cyborg/requirements.txt (line 12))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7f/69/3a16785c49890cce2f7f14ee652... (20 kB)
ERROR: Cannot install oslo.messaging>=14.1.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested oslo.messaging>=14.1.0
The user requested (constraint) oslo-messaging===14.3.0
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/topics/dependency-resolution/#dealing-with-dep...
=========================================================================================================================================== log end ===========================================================================================================================================
ERROR: could not install deps [-c https://releases.openstack.org/constraints/upper/master, -r/opt/stack/cyborg/requirements.txt, -r/opt/stack/cyborg/test-requirements.txt]; v = InvocationError('/opt/stack/cyborg/.tox/shared/bin/python -m pip install -c https://releases.openstack.org/constraints/upper/master -r/opt/stack/cyborg/requirements.txt -r/opt/stack/cyborg/test-requirements.txt', 1)
___________________________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________________________
ERROR: pep8: could not install deps [-c https://releases.openstack.org/constraints/upper/master, -r/opt/stack/cyborg/requirements.txt, -r/opt/stack/cyborg/test-requirements.txt]; v = InvocationError('/opt/stack/cyborg/.tox/shared/bin/python -m pip install -c https://releases.openstack.org/constraints/upper/master -r/opt/stack/cyborg/requirements.txt -r/opt/stack/cyborg/test-requirements.txt', 1)
I hope you can help us. Thank you very much.