Your message dated Tue, 11 May 2021 07:04:47 +0000
with message-id <[email protected]>
and subject line Bug#977887: fixed in python3.10 3.10.0~b1-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.10
Source-Version: 3.10.0~b1-3
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python3.10, 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.10 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:19:33 +0200
Source: python3.10
Architecture: source
Version: 3.10.0~b1-3
Distribution: experimental
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 977887
Changes:
 python3.10 (3.10.0~b1-3) experimental; urgency=medium
 .
   * Try to detect whether python3-venv is missing (Stefano Rivera).
     Closes: #977887.
Checksums-Sha1:
 d349d17db097fa60cb55bb86e5a2f8823e9ad44b 3530 python3.10_3.10.0~b1-3.dsc
 9d8c26910c713cba9afe34b53bd7a725c74749e5 213628 
python3.10_3.10.0~b1-3.debian.tar.xz
 76663e1afc6a4fadba33c31e3df471d139b3308a 10107 
python3.10_3.10.0~b1-3_source.buildinfo
Checksums-Sha256:
 c1076db031f479001fa45ecf1235d38a1f7c89cf28581bab9a9ac46ca1175927 3530 
python3.10_3.10.0~b1-3.dsc
 001f81d7e9c21867c3b5efd9a52fcf70cb3a39113de2e97cc4013e3ac1d96feb 213628 
python3.10_3.10.0~b1-3.debian.tar.xz
 fbe32f25243c2451539e52d1f18433da5df93895700c2dff220c8f7489439779 10107 
python3.10_3.10.0~b1-3_source.buildinfo
Files:
 137b4932ce0a3e8b3f7bd12cb0996e68 3530 python optional 
python3.10_3.10.0~b1-3.dsc
 d2a95a4658301b23aecc2e98519106fa 213628 python optional 
python3.10_3.10.0~b1-3.debian.tar.xz
 ebd359b939c10f44ce04a0334d9d8f60 10107 python optional 
python3.10_3.10.0~b1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmCaJ+kQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9aGQEACBoe7SDTwCY8ARqcnbNh2HaqtGi6Au6igv
hJEr4PWedY5zcJhyu2EPhc+tdSh5wepPBelLW93l0v7pdUHMNv8rmOECUn9WLLfM
85K77kMG3MDyihq9ykHKfU0d5XdVtICB1momZ9RjADtLXHYooF1JHvlY6L1kcgqz
9R3Xt4mBIVB1ljJPZgLn5Dcmc/ziRvZmeRnSHsopr5TqmzrDw2Wp1orj0bmNIImq
Ybh0uvankZaBD0Ud5BJbSqrWQeF00Fiao+bc/Tt8V7Dhwp/mMIXPcQWiJ1Ww/1by
88aiybwbK/+e8GXqD9WdbisBTvp9b7wIejlZLeAA25QiPecOKZUXmwuLfaKlNzS+
DP855L61OZO4mGpYQIXKzCz3B/lapZ319eTQwuIWvg9tdS2PIVmznKYIzjTuRHJG
ACGKKOTtpcbNO7JCz8tNfsq3oP8iKSWhw3eLRglfKvDNxk54euneb3TmA8+7ceqW
z+eOAfiOQ18wzFTiooHahl9fHwnldc3gmQdPzxLUF/tF/vQK03AIMQtOA8maXTXk
TycFKDztCODLoTYAFLI/eeE55DNAmkD/7PTqWl/qXD+WYdminGmG1ajqfOADFfTW
sWiuK9x1PsYrbR6v5unrQu2i1axFcaK+V0gp/7Ij51ZYM2LzwcTtJF+dC7Uu+Xze
BQDVL4XuXA==
=CbLR
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to