Reproduced in a Debian container, so it's not Fedora-specific at least. Identical output to Kashyap's:
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Downloading decorator-4.2.1-py2.py3-none-any.whl (9.3 kB)
Downloading decorator-4.1.2-py2.py3-none-any.whl (9.1 kB)
Downloading decorator-4.1.1-py2.py3-none-any.whl (9.0 kB)
Downloading decorator-4.1.0-py2.py3-none-any.whl (9.0 kB)
INFO: pip is looking at multiple versions of pycodestyle to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
UBI python-38 works!
# python3 --version; pip3 --version; pip3 show tox
Python 3.8.12
pip 21.2.3 from /opt/app-root/lib64/python3.8/site-packages/pip (python 3.8)
Name: tox
Version: 3.25.0
UBI python-39 breaks:
# python3 --version; pip3 --version; pip3 show tox
Python 3.9.7
pip 21.2.3 from /opt/app-root/lib64/python3.9/site-packages/pip (python 3.9)
Name: tox
Version: 3.25.0
So it looks like all my attempts on Python 3.9/3.10 broke but the one on 3.8 worked. There doesn't seem to be a correlation with the pip/tox version, but maybe it could be a weird interaction between specific versions of all of them?
Sean mentioned it working with 3.10 on Ubuntu and Nixos so worth trying those.
Dockerfiles for easy reproducing:
-----
FROM fedora:36
USER root
RUN dnf install -y python3-pip git
RUN git clone --depth 1 https://opendev.org/openstack/nova.git && cd nova
RUN pip3 install tox
RUN cd ./nova && tox -vvv -e pep8 --notest
-----
FROM debian
USER root
RUN apt-get update -y && apt install -y python3-pip git
RUN git clone --depth 1 https://opendev.org/openstack/nova.git && cd nova
RUN pip3 install tox
RUN cd ./nova && tox -vvv -e pep8 --notest
------
ROM registry.access.redhat.com/ubi8/python-39
USER root
RUN dnf install -y python3-pip git
RUN git clone --depth 1 https://opendev.org/openstack/nova.git && cd nova
RUN pip3 install tox
RUN cd ./nova && tox -vvv -e pep8
Reproduced in a Debian container, so it's not Fedora-specific at least. Identical output to Kashyap's:
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https:/ /pip.pypa. io/warnings/ backtracking for guidance. If you want to abort this run, press Ctrl + C. 4.2.1-py2. py3-none- any.whl (9.3 kB) 4.1.2-py2. py3-none- any.whl (9.1 kB) 4.1.1-py2. py3-none- any.whl (9.0 kB) 4.1.0-py2. py3-none- any.whl (9.0 kB) /pip.pypa. io/warnings/ backtracking for guidance. If you want to abort this run, press Ctrl + C.
Downloading decorator-
Downloading decorator-
Downloading decorator-
Downloading decorator-
INFO: pip is looking at multiple versions of pycodestyle to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https:/
# cat /etc/debian_version python3/ dist-packages/ pip (python 3.9)
11.3
# python3 --version
Python 3.9.2
# pip3 --version
pip 20.3.4 from /usr/lib/
# pip3 show tox
Name: tox
Version: 3.25.0
Exact same thing on Fedora 33 and 36 containers (pulled 33 first on accident, free data point).
33: python3. 9/site- packages/ pip (python 3.9)
[root@782408867bf9 /]# python3 --version
Python 3.9.7
[root@782408867bf9 /]# pip3 --version
pip 20.2.2 from /usr/lib/
[root@782408867bf9 /]# pip3 show tox
Name: tox
Version: 3.25.0
36: python3. 10/site- packages/ pip (python 3.10)
[root@699feac13be5 /]# python3 --version
Python 3.10.4
[root@699feac13be5 /]# pip3 --version
pip 21.3.1 from /usr/lib/
[root@699feac13be5 /]# pip3 show tox
Name: tox
Version: 3.25.0
UBI python-38 works! root/lib64/ python3. 8/site- packages/ pip (python 3.8)
# python3 --version; pip3 --version; pip3 show tox
Python 3.8.12
pip 21.2.3 from /opt/app-
Name: tox
Version: 3.25.0
UBI python-39 breaks: root/lib64/ python3. 9/site- packages/ pip (python 3.9)
# python3 --version; pip3 --version; pip3 show tox
Python 3.9.7
pip 21.2.3 from /opt/app-
Name: tox
Version: 3.25.0
So it looks like all my attempts on Python 3.9/3.10 broke but the one on 3.8 worked. There doesn't seem to be a correlation with the pip/tox version, but maybe it could be a weird interaction between specific versions of all of them?
Sean mentioned it working with 3.10 on Ubuntu and Nixos so worth trying those.
Dockerfiles for easy reproducing:
-----
FROM fedora:36
USER root /opendev. org/openstack/ nova.git && cd nova
RUN dnf install -y python3-pip git
RUN git clone --depth 1 https:/
RUN pip3 install tox
RUN cd ./nova && tox -vvv -e pep8 --notest
-----
FROM debian
USER root /opendev. org/openstack/ nova.git && cd nova access. redhat. com/ubi8/ python- 39
RUN apt-get update -y && apt install -y python3-pip git
RUN git clone --depth 1 https:/
RUN pip3 install tox
RUN cd ./nova && tox -vvv -e pep8 --notest
------
ROM registry.
USER root /opendev. org/openstack/ nova.git && cd nova
RUN dnf install -y python3-pip git
RUN git clone --depth 1 https:/
RUN pip3 install tox
RUN cd ./nova && tox -vvv -e pep8