[Python-modules-team] Bug#917006: python-pip-whl: virtualenvs created with python3 -m venv do not contain wheel

Dimitri Merejkowsky d.merej at gmail.com
Fri Dec 21 12:23:03 GMT 2018


Package: python-pip-whl
Version: 9.0.1-2.3
Severity: normal


Steps to reproduce:

$ python3 -m venv foo
$ ./foo/bin/python -c 'import wheel'
ModuleNotFoundError: No module named 'wheel'

This then causes an error when foo/bin/pip tries to install packages for which
no remote wheel was found.

running setup.py bdist_wheel for tabulate ... error
  ...
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for tabulate
  Running setup.py clean for tabulate

Note that the package still gets installed, but nevertheless it would be nice
to not have this error.


Workaround is to install `wheel` by hand:

$ ./foo/bin/pip install wheel

Notes:
* This does not happen with virtualenvs created with `python3 -m virtualenv`
* This regression was caused by an upgrade of python-pip-whl from 9.0.1-2 to 18.1-2


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python-pip-whl depends on:
ii  ca-certificates  20170717

python-pip-whl recommends no packages.

python-pip-whl suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list