Your message dated Tue, 11 May 2021 06:48:57 +0000 with message-id <[email protected]> and subject line Bug#977887: fixed in python3.9 3.9.5-3 has caused the Debian Bug report #977887, regarding python3.9-venv: misleading message of missing module ensurepip 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.) -- 977887: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977887 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python3.9-venv Version: 3.9.1-1 Severity: important Dear Maintainer, This hideous message sprung up again with python3.9 ========================= $> python3 -m venv myvenv The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get install python3-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. ======================== This has been reported before (here #816740 and here #901601), but my point is that the message is misleading because the issue is not necessarily caused by ensurepip actually missing and installing python3-venv does not fix it (it was already installed as it was python3.9-venv). After some research I found the cause of the issue: it was ensurepip failing this assert ============================================== 142. wheel_names = glob.glob( 143. '/usr/share/python-wheels/{}-*.whl'.format(project)) 144. assert len(wheel_names) == 1, wheel_names ============================================ because I had two files named /usr/share/python-wheels/ipaddr-2.2.0-py3-none-any.whl and /usr/share/python-wheels/ipaddr-2.2.0-py2.py3-none-any.whl The first one comes from the package python-pip-whl, the other one is a mistery. So I renamed the second one with some harmless name and `python3 -m venv` started working again. Now maybe /usr/share/python-wheels/ipaddr-2.2.0-py2.py3-none-any.whl was a leftover from some old package (looks like some transition from python2) but the point is sill that that message about installing python3-venv is triggered by in a catch all exception around a subprocess call, anything that fails in that call to `python -Im ensurepip` is reported as such. Thanks -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (900, 'testing'), (800, 'stable'), (700, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-13-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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 python3.9-venv depends on: ii python-pip-whl 20.1.1-2 ii python3-distutils 3.8.6-1 ii python3.9 3.9.1-1 python3.9-venv recommends no packages. python3.9-venv suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: python3.9 Source-Version: 3.9.5-3 Done: Matthias Klose <[email protected]> We believe that the bug you reported is fixed in the latest version of python3.9, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthias Klose <[email protected]> (supplier of updated python3.9 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Tue, 11 May 2021 08:26:08 +0200 Source: python3.9 Architecture: source Version: 3.9.5-3 Distribution: experimental Urgency: medium Maintainer: Matthias Klose <[email protected]> Changed-By: Matthias Klose <[email protected]> Closes: 977887 Changes: python3.9 (3.9.5-3) experimental; urgency=medium . * Tighten python3-tk autopkg test dependency. * Try to detect whether python3-venv is missing (Stefano Rivera). Closes: #977887. Checksums-Sha1: 4462616838411c2d8fd7b1914d8560b8975539b1 3493 python3.9_3.9.5-3.dsc 3f4ee99fb6453945d65e0d7e402191d7d33d14f4 211920 python3.9_3.9.5-3.debian.tar.xz 923592ab571383b5d4488c23e3c31b0f84946b75 10150 python3.9_3.9.5-3_source.buildinfo Checksums-Sha256: 0c6894512261fc4eec5d363d70869c64537e3e8ed8d544080d3ff91f0778563c 3493 python3.9_3.9.5-3.dsc d5335b1558e4bd820e06e8573224488ae19a14b48804fa953484142ee8a1246b 211920 python3.9_3.9.5-3.debian.tar.xz b03cf4cbd4edaff30e42770914f250f5272fc13ac5e79c4e57da25a06e2f93e7 10150 python3.9_3.9.5-3_source.buildinfo Files: 9acdc666c09b1392bacf8c8bfa385af3 3493 python optional python3.9_3.9.5-3.dsc 9882d80fc4e2626d7117d48e859b1ca3 211920 python optional python3.9_3.9.5-3.debian.tar.xz 34f395fdd31d108d861b117672a2cca3 10150 python optional python3.9_3.9.5-3_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmCaJkEQHGRva29AZGVi aWFuLm9yZwAKCRC9fqpgd4+m9VBKD/wLVNznmzKk1SSJVG2SS8vgQq+u3s9NduqU IM1gwiaPXGV/hrxX1n39nXqzN1H42CTPnxjaNdaVAz1ItASYHLIcBizsC5ugAA1P cOKdAaaQARPAV+YasnJ2PTZvxkkUMTfkApdWCIsPdjZE/MUZiwkwHi6FNb/4TD0Z peZjwpCEUUbES2Umi1uwl8BS0LRP9Kklxb2+jJwjT4sAbVU7u4x2HtjtBbNRHOtp REkwhK0CuO1CzMMkRWYPUrUxzgl0mdcT9cYPEYs1IEoHZEhMGIqMswoIWvhAEoeH QnKLjFoe7I5RyribifOxPqOuTX3fHq7cxJ8mvH31XfYRjB9V21zQjs9BtqoY2ckf eeca5df7pTRQ1o2SItUDv++A7/waE0ZHd0CF19WYm9NfNxFkRPhDtJ2GU+9G8p8L kTwL+JMmH5VeuDoUlQwv4uo7nR8tIJdwZaz/gfa+dCKlDALZCYkrp5GHQdjS4pOr 0xAISiO1Z/Jazb1Jq9A+la+Exrc5yfHoURu+ekuywBFBPU1af2o+4z+AHtFaSFWE EQPeb2nzNgyixjf6Fo1W75gB8abamWTqYy6obvHqK3C5sWwTKklmAZhns7lySGmn obxCpd1g51DX2oh661cLJqXkCPAX28j+rRXxpre2bFkrYiw5ejaoSudt+rSNnhto LiY8sG7zew== =MDSr -----END PGP SIGNATURE-----
--- End Message ---

