Public bug reported: 1. % lsb_release -rd Description: Ubuntu Focal Fossa (development branch) Release: 20.04
2. % apt-cache policy python-pip-whl python-pip-whl: Installed: 20.0.2-2 Candidate: 20.0.2-2 Version table: *** 20.0.2-2 500 500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu focal/universe i386 Packages 100 /var/lib/dpkg/status 3. tox -e py27 successfully runs inside a py27 environment 4. running pip inside a tox created virtualenv reports missing 'ipaddr' module $ tox -e py27 GLOB sdist-make: /home/ubuntu/testme/setup.py py27 create: /home/ubuntu/testme/.tox/py27 py27 installdeps: pytest ERROR: invocation failed (exit code 1), logfile: /home/ubuntu/testme/.tox/py27/log/py27-1.log ================================================================================= log start ================================================================================= /home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2 ************************************************************ You are running Setuptools on Python 2, which is no longer supported and >>> SETUPTOOLS WILL STOP WORKING <<< in a subsequent release (no sooner than 2020-04-20). Please ensure you are installing Setuptools using pip 9.x or later or pin to `setuptools<45` in your environment. If you have done those things and are still encountering this message, please comment in https://github.com/pypa/setuptools/issues/1458 about the steps that led to this unsupported combination. ************************************************************ sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60) Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/__main__.py", line 16, in <module> from pip._internal.cli.main import main as _main # isort:skip # noqa File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module> from pip._internal.locations import USER_CACHE_DIR, get_src_prefix File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/locations.py", line 20, in <module> from pip._internal.utils.compat import WINDOWS File "/home/ubuntu/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/utils/compat.py", line 29, in <module> import ipaddr as ipaddress # type: ignore ImportError: No module named ipaddr ================================================================================== log end ================================================================================== ERROR: could not install deps [pytest]; v = InvocationError('/home/ubuntu/testme/.tox/py27/bin/python -m pip install pytest', 1) __________________________________________________________________________________ summary __________________________________________________________________________________ ERROR: py27: could not install deps [pytest]; v = InvocationError('/home/ubuntu/testme/.tox/py27/bin/python -m pip install pytest', 1) This error is caused by the missing ipaddress wheel. Compare Eoan's python-pip-whl package list: root@e1:/usr/share/python-wheels# apt-cache policy python-pip-whl python-pip-whl: Installed: 18.1-5 Candidate: 18.1-5 Version table: *** 18.1-5 500 500 http://archive.ubuntu.com/ubuntu eoan/universe amd64 Packages 100 /var/lib/dpkg/status root@e1:/usr/share/python-wheels# dpkg -L python-pip-whl | grep ipaddress /usr/share/python-wheels/ipaddress-0.0.0-py2.py3-none-any.whl And on focal, now on 20.0.2 ubuntu@f4:~$ apt-cache policy python-pip-whl python-pip-whl: Installed: 20.0.2-2 Candidate: 20.0.2-2 Version table: *** 20.0.2-2 500 500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages 100 /var/lib/dpkg/status ubuntu@f4:~$ dpkg -L python-pip-whl | grep ipaddress ubuntu@f4:~$ echo $? 1 If I copy the wheel from Eoan's 18.5, tox will now run. Here's a recreation environment: lxc launch ubuntu-daily:focal f4 lxc exec f4 bash apt update apt -y install python3-virtualenv python-virtualenv tox mkdir testme && cd testme cat <<EOF >tox.ini [tox] envlist = py27 [testenv] deps = pytest commands = /usr/bin/true EOF cat <<EOF >setup.py from setuptools import setup, find_packages setup( name="HelloWorld", version="0.1", packages=find_packages(), ) EOF tox --recreate -e py27 root@f4:~/testme# tox -e py27 GLOB sdist-make: /root/testme/setup.py py27 create: /root/testme/.tox/py27 py27 installdeps: pytest ERROR: invocation failed (exit code 1), logfile: /root/testme/.tox/py27/log/py27-1.log ================================================================================= log start ================================================================================= /root/testme/.tox/py27/lib/python2.7/site-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2 ************************************************************ You are running Setuptools on Python 2, which is no longer supported and >>> SETUPTOOLS WILL STOP WORKING <<< in a subsequent release (no sooner than 2020-04-20). Please ensure you are installing Setuptools using pip 9.x or later or pin to `setuptools<45` in your environment. If you have done those things and are still encountering this message, please comment in https://github.com/pypa/setuptools/issues/1458 about the steps that led to this unsupported combination. ************************************************************ sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60) Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/__main__.py", line 16, in <module> from pip._internal.cli.main import main as _main # isort:skip # noqa File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module> from pip._internal.locations import USER_CACHE_DIR, get_src_prefix File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/locations.py", line 20, in <module> from pip._internal.utils.compat import WINDOWS File "/root/testme/.tox/py27/lib/python2.7/site-packages/pip/_internal/utils/compat.py", line 29, in <module> import ipaddr as ipaddress # type: ignore ImportError: No module named ipaddr ================================================================================== log end ================================================================================== ERROR: could not install deps [pytest]; v = InvocationError('/root/testme/.tox/py27/bin/python -m pip install pytest', 1) __________________________________________________________________________________ summary __________________________________________________________________________________ ERROR: py27: could not install deps [pytest]; v = InvocationError('/root/testme/.tox/py27/bin/python -m pip install pytest', 1) ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: python-pip-whl 20.0.2-2 ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24 Uname: Linux 5.4.0-18-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.11-0ubuntu21 Architecture: amd64 CurrentDesktop: GNOME-Flashback:GNOME Date: Thu Mar 26 12:14:00 2020 InstallationDate: Installed on 2020-03-15 (11 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200309) PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: python-pip UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: python-pip (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1869247 Title: virtualenv for py27 fails due to missing ipaddress wheel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1869247/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs