🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #796

Bug#1150859: python3-virtualenvwrapper: missing virtualenvwrapper/version.py, virtualenvwrapper.sh cannot be sourced

#796
From: Marcelo Jorge Vieira
Date: Wed, 14 Oct 2026 00:30
96 lines
5559 bytes
--=-FImydtlgDbMQP4563uHG
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Package: python3-virtualenvwrapper
Version: 6.1.1-1
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

After upgrading to 6.1.1-1, sourcing virtualenvwrapper.sh fails:

  $ source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
  ERROR: Python with virtualenvwrapper module not found!
  Either, install virtualenvwrapper module for the default python3 interpre=
ter
  or set VIRTUALENVWRAPPER_PYTHON to the interpreter to use.

The script probes the interpreter with `python3 -m
virtualenvwrapper.hook_loader --help`, and that import fails:

  $ python3 -m virtualenvwrapper.hook_loader --help
  ...
  ModuleNotFoundError: No module named 'virtualenvwrapper.version'

hook_loader.py now imports virtualenvwrapper.version (4.8.4 did not),
but python3-virtualenvwrapper 6.1.1-1 ships no
virtualenvwrapper/version.py, and its metadata is installed as
virtualenvwrapper-0.0.0.egg-info. Setting VIRTUALENVWRAPPER_PYTHON does
not help, because every hook runs through hook_loader. Downgrading to
4.8.4-4 restores a working setup.

The upstream PyPI sdist ships virtualenvwrapper/version.py, written by
setuptools_scm (`write_to` in pyproject.toml). debian/clean, added in
6.1.1-1, deletes that file, and since python3-setuptools-scm is not in
Build-Depends nothing regenerates it during the build, so setuptools
also falls back to version 0.0.0.

This is already fixed in the packaging repository on Salsa: commits
0b997ab ("add build-dep python3-setuptools-scm to avoid version 0.0.0")
and dbb105c ("switch to pybuild-plugin-pyproject") landed on master
after the debian/6.1.1-1 tag (1e9524b), so the uploaded package does
not include them.
The patch below is that debian/control change, rebased on 6.1.1-1.

I built both debian/6.1.1-1 and current master in a clean
debian:unstable container. The tag reproduces the error above. Master
ships virtualenvwrapper/version.py and virtualenvwrapper-6.1.1.dist-
info, `python3 -m virtualenvwrapper.hook_loader --version` prints
6.1.1, and sourcing virtualenvwrapper.sh followed by mkvirtualenv and
workon works.

The autopkgtest-pkg-python import test cannot catch this regression,
because `import virtualenvwrapper` still succeeds (it is a namespace
package). A debian/tests smoke test running `python3 -m
virtualenvwrapper.hook_loader --version` would.

Workaround until a fixed upload, for anyone hitting this:

  echo "version =3D '6.1.1'" | \
    sudo tee /usr/lib/python3/dist-packages/virtualenvwrapper/version.py

Could you please upload a 6.1.1-2 from current master?

Cheers,

--=20
Marcelo Jorge Vieira
xmpp:metal@jabber-br.org
https://metaldot.alucinados.com

--=-FImydtlgDbMQP4563uHG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

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

iQIzBAABCgAdFiEEX659A8zSLhyNqcUJW5JO4xAFXNMFAmrOyvwACgkQW5JO4xAF
XNMvARAAjaRnn8DJ+UcCqQAjh+rVjlm58L+ZmectxS+U9aM34oqaPD00QjxsaWdb
1MAYi4jHtr3fvfrgqKIjBUKOsgG4nSCy/e8bHMKOZ6rbvE4iKh4TOS8NPqTEbLaM
xWHBiSPLGeIoPtv3a8eeByi8kc0JLYKalzejBOybCSlsedWJNkWF4a+yY2r1WwKn
i5NYjsGB7+7EPFCQnWhfnMX2ZpmY9griI4ZShm+XHDR5g+UZ1YvuzOIs09tHy18c
V3YOPl8B1wwO2uo6ONChLtHyBka4K5x/PkLuafNC3cRl7V/Vipt7TpbfUvxU4L1N
0lpB6mYo32GcKnNt0ncyEf4g2k5/2fVXkyhyuZoXmxiYxULJ5MR9rFHHCzwqetPV
wPORNZvYnYtYVYiU9UEx77M8F3ujrjboOnGs9yH0FEOIRNo23lVZWlQOrPpmzEeh
I0c+NaZxUR2VcTOWg1WIVt9cgRcHs1htxv/R2ovF9ARetCeAs+ncn6z9GvTLXsT/
9NKJQsBA9IM+YlgvYHo0EC0tcr+t4/bL8OjtND2GCf8eqZ95MHzEDG3vDDuem2L0
3z2mJffXrWjZFUeLXasTaYE7OYfaMpK26gt9RHa9i8470Nme+G98iZoMj1095x9d
MA5QnyiauuPS8CaSKVcODPVJFZ7mUd0bAUMJkKk0B2qBxhcnDLE=
=SQ6z
-----END PGP SIGNATURE-----

--=-FImydtlgDbMQP4563uHG--
Technical Details
Message-ID: <NNV2x-5mon-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Marcelo Jorge Vieira <metal@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150859: python3-virtualenvwrapper: missing virtualenvwrapper/version.py, virtualenvwrapper.sh cannot be sourced
Date: Wed, 14 Oct 2026 02:30:01 +0200
Message-ID: <NNV2x-5mon-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 14 00:23:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Marcelo Jorge Vieira <metal@debian.org>, 1150859@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: packages@qa.debian.org
X-Debian-Pr-Message: report 1150859
X-Debian-Pr-Package: python3-virtualenvwrapper
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: virtualenvwrapper
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-FImydtlgDbMQP4563uHG"
User-Agent: Evolution 3.56.2-10+b1 
MIME-Version: 1.0
X-Debian-User: metal
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996697
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 96
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 13 Oct 2026 21:21:16 -0300
X-Original-Message-ID: <e48181abf0119498ad47aa46288d53d130376f1a.camel@debian.org>