Your message dated Sat, 31 Dec 2022 10:51:08 +0000
with message-id <[email protected]>
and subject line Bug#1026448: fixed in python3.11 3.11.1-2
has caused the Debian Bug report #1026448,
regarding libpython3.11: NameError exception when creating a virtual environment
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.)
--
1026448: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026448
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpython3.11
Version: 3.11.1-1
Severity: normal
Tags: patch
Dear Maintainer,
If the python3.11-venv package is not installed, the following *incorrect*
error message is printed when creating a virtual environment:
$ python3.11 -m venv my-venv
Error: name 'cmd' is not defined
But I expected the following, correct, error message:
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 install python3.11-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/home/penlect/my-venv/bin/python3.11', '-m', 'ensurepip',
'--upgrade', '--default-pip']
This error happens because of a typo in which 'cmd' is used as a local
variable instead of the attribute of the CalledProcessError exception in
`/usr/lib/python3.11/venv/__init__.py`.
Please see reference here:
https://docs.python.org/3/library/subprocess.html#subprocess.CalledProcessError.cmd
I created a merge request with a fix in the salsa-repo here:
https://salsa.debian.org/cpython-team/python3/-/merge_requests/26
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-6-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libpython3.11 depends on:
ii libc6 2.36-6
ii libexpat1 2.5.0-1
ii libpython3.11-stdlib 3.11.1-1
ii zlib1g 1:1.2.13.dfsg-1
libpython3.11 recommends no packages.
libpython3.11 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: python3.11
Source-Version: 3.11.1-2
Done: Matthias Klose <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python3.11, 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.11 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: Sat, 31 Dec 2022 11:23:59 +0100
Source: python3.11
Architecture: source
Version: 3.11.1-2
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 1024297 1026448
Changes:
python3.11 (3.11.1-2) unstable; urgency=medium
.
* Fix NameError exception in venv init (Daniel Andersson). Closes: #1026448.
* Fix FTCBFS: Pass --with-build-python (Helmut Grohne). Closes: #1024297.
Checksums-Sha1:
eb03bb3cea7df7db49df882d32831aeb42fa7af0 3632 python3.11_3.11.1-2.dsc
2d8d5ff0016bde5c690722b862286101cee47412 215500
python3.11_3.11.1-2.debian.tar.xz
0e30e93326b5dc2d0cd4c00d5149d4fdca81feb1 8994
python3.11_3.11.1-2_source.buildinfo
Checksums-Sha256:
caa369c0eeba300de077b56211095a071bb30635c45bfcf72ece967542706492 3632
python3.11_3.11.1-2.dsc
669c444f2586643639ddee338fc913ee20e202a619c28fe5b71f68a3df17f78f 215500
python3.11_3.11.1-2.debian.tar.xz
2ff1a84f3dd094d614e277abeb90f39a219b63af90ae83250dfbde68df00306d 8994
python3.11_3.11.1-2_source.buildinfo
Files:
007a0c5fad4d23743eb5d07ef6c4b211 3632 python optional python3.11_3.11.1-2.dsc
704fdd2140170cf02c6588bddf1cba6b 215500 python optional
python3.11_3.11.1-2.debian.tar.xz
bb1e1be858925fbf6e6f89723ac363f6 8994 python optional
python3.11_3.11.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmOwDp0QHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9aaBD/9WyjaS7coWfDugbXkzPNnO2ta1PSTBvMQl
dRa2xp2url4h8MjrgPJLHteu9gKXnELe8IPYm//oc3+ADKGc8qDzQBJNzOrokCgE
pDtRhbjfNGmsI9q/boFYLB/LrVhQsXON3mIF37T8dbpazYTRGELmAkBjmAYWcP+Z
F3V7BrAXv3JSM4NX0rgXXSfhmjfddwry/n+1yLH60KLqyXKKU/gCT2NPo360PMAQ
p65GoQjZ4Gk9arT3DIsEoid9kkeNsNITPUkwDO3wlxjZTwz5nfdGiaotwgJpCxid
IIkfpmWcMNbBxJprFPFHo6zp2gv4H+edWiVEHRuybUL4YZYa2pYmoOrkwVBJPsJl
+PXlZKb6owLRe511sJCHzbDZfy8UcSFzL6o33sgUXBYNfFFo/6N/6lwZkFfGRzGr
/rJ9g8iOhqo7g0dscaZavmQFNtEFksxHrYUdjDfz2zXLkhceO4GGUvfafKkh4AFr
lmrco6umIVsv07/zpRrKV5x2p/bWrhpYTp20TEaePLsFKe2O/PysADBbTPZ6WgAu
aHcNx6iiDQlC9idXq8tZ+7OwAZ+JC437VVqo+tfI1Tv2RUI/9FIcJtFXaw6uNGjp
YpMGamC9vE7oIlThXZQHoW2Pbqemh0AQ24RBKVPsCTFFN3Facw7nStgKYw02TKxg
dZ0NpzcW9Q==
=vTHG
-----END PGP SIGNATURE-----
--- End Message ---