🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Marcelo Jorge Vieira Wed, 14 Oct 2026 00:30
Bug#1150859: python3-virtualenvwrapper: missing virtualenvwrapper/version.py, virtualenvwrapper.sh cannot be sourced
#796
Author: 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--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads