Your message dated Sun, 21 Feb 2021 18:26:22 +0200
with message-id <[email protected]>
and subject line Re: Bug#982293: tox: Upgrading python3-distutils makes tox
useless
has caused the Debian Bug report #982293,
regarding tox: Upgrading python3-distutils makes tox useless
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
982293: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982293
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tox
Version: 3.21.0-1
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
the separation of distutils package into python3-distutils makes tox
rather useless. Once the python3-distutils is upgraded to version which
drops distutils from python3.8, it makes all python3.8 environment unable to
be created with a following error:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File
"/home/vzima/git/fred/messenger/.tox/py38/lib/python3.8/site-packages/pip/__main__.py",
line 23, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
File
"/home/vzima/git/fred/messenger/.tox/py38/lib/python3.8/site-packages/pip/_internal/cli/main.py",
line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File
"/home/vzima/git/fred/messenger/.tox/py38/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py",
line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File
"/home/vzima/git/fred/messenger/.tox/py38/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py",
line 7, in <module>
from pip._internal.cli import cmdoptions
File
"/home/vzima/git/fred/messenger/.tox/py38/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py",
line 19, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
Using a newer python3.9 is not an option, since several requirements,
such as protobuf, do not yet support python3.9, see
https://pypi.org/project/protobuf/.
I'd like the tox to work with the python versions I already have installed.
Ideally it should keep around packages with `distutils` module for all
available python versions, since without them tox can't install any
dependencies.
Alternatively it could at least link available version of distutils into
tox environments upon the creation, so they can still work, similarly
to https://askubuntu.com/a/1260519/251379, without need for
user to perform this change manually.
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing'), (90, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.8.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages tox depends on:
ii libjs-sphinxdoc 3.3.1-1
ii python3 3.9.1-1
ii python3-filelock 3.0.12-2
ii python3-packaging 20.4-1
ii python3-pluggy 0.13.0-5
ii python3-py 1.9.0-2
ii python3-setuptools 49.3.1-2
ii python3-six 1.15.0-1
ii python3-toml 0.10.1-1
ii python3-virtualenv 20.2.1+ds-1
tox recommends no packages.
tox suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Vlastimil,
On Mon, Feb 08, 2021 at 12:56:14PM +0100, Vlastimil Zíma wrote:
> Using a newer python3.9 is not an option, since several requirements,
> such as protobuf, do not yet support python3.9, see
> https://pypi.org/project/protobuf/.
>
> [..]
>
> I'd like the tox to work with the python versions I already have installed.
I think the problem you're facing is that you're using a Python version
that has been removed from Debian (3.8), with a python3-distutils
package that is more recent, and has been built after that version was
removed (as you can see with "dpkg -L python3-distutils", the package
only ships a version with /usr/lib/python3.9/...).
Your use case is interesting, and I'd love to help you, but there is
also nothing for the tox package to do here -- your system is missing
distutils for Python 3.8 due to it being in an inconsistent state, and
that's not a tox bug. I also cannot exactly ship distutils from tox :)
As a concrete suggestion, I think you could make your case to the Python
package maintainer, for distutils to either be shipped into the
libpython3.N-stdlib package (like it used to be IIRC), or for the
distutils package name to become versioned (python3.8-distutils) or
something.
Regards,
Faidon
--- End Message ---