[Python-apps-team] Bug#954451: src:tox: Please remove python2 autopkgtests that use virtualenv

Scott Kitterman debian at kitterman.com
Sat Mar 21 20:18:47 GMT 2020


Package: src:tox
Version: 3.13.2-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Note: Using FTBFS to cover autopkgtest failure as it is a rough
equivalent (package can't migrate to testing).

The python-virtualenv package can no longer support creation of python2
virtualenvs without external downloads, which are not allowed for
packages in Main.  The ipaddr module is no longer in Testing and is
required for this.  As a result, tox python2 autopkgtests now fail:

py2 create: /tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2
ERROR: invocation failed (exit code 1), logfile: /tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/log/py2-1.log
================================== log start ===================================
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 "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/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 "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/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 "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/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 "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/lib/python2.7/site-packages/pip/_internal/locations.py", line 20, in <module>
    from pip._internal.utils.compat import WINDOWS
  File "/tmp/autopkgtest-lxc.zhf4r5q1/downtmp/autopkgtest_tmp/.tox/py2/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

I'm happy to do an NMU to simply drop the tests if you would like.
Please let me know if you plan to take care of it.  I will probably NMU
in a week (including the NMU diff in this bug once I have it ready) if I
don't.

Thanks,

Scott K



More information about the Python-apps-team mailing list