Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import name 'six' from 'pip._vendor' inside virtual environment on Debian #1860

Closed
freezed opened this issue Jun 15, 2020 · 5 comments
Labels

Comments

@freezed
Copy link

freezed commented Jun 15, 2020

On Debian/Bullseye (testing) the provided python3 moved from 3.7 to 3.8, I install a fresh python3.7.7 for projects still using it, but pip fails inside virtual environments created with this installation.

$ virtualenv --clear -p ~/pylocal/bin/python3.7 .venvpylocal37
created virtual environment CPython3.7.7.final.0-64 in 98ms
  creator CPython3Posix(dest=/home/user/git/repo/.venvpylocal37, clear=True, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
$ source .venvpylocal37/bin/activate;pip -V
Traceback (most recent call last):
  File "/home/user/git/repo/.venvpylocal37/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
    File "/home/user/git/repo/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/home/user/git/repo/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/home/user/git/repo/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/home/user/git/repo/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
    from pip._internal.cli.progress_bars import BAR_TYPES
  File "/home/user/git/repo/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/progress_bars.py", line 7, in <module>
    from pip._vendor import six
ImportError: cannot import name 'six' from 'pip._vendor' (/home/user/git/repo/.venvpylocal37/lib/python3.7/site-packages/pip/_vendor/__init__.py)
zsh: exit 1     pip -V

Environment

  • OS : Debian/Bullseye (testing)
  • Debian's/Bullseye virtualenv version : sudo apt install python3-virtualenv
~$ virtualenv --version
virtualenv 20.0.21+ds from /usr/lib/python3/dist-packages/virtualenv/__init__.py
  • pip list of the host python where virtualenv is installed:
~$ pip list
Package            Version
------------------ ----------
appdirs            1.4.4
certifi            2020.4.5.1
chardet            3.0.4
distlib            0.3.0
filelock           3.0.12
httplib2           0.18.1
idna               2.9
importlib-metadata 1.6.0
more-itertools     4.2.0
pip                20.1.1
pycurl             7.43.0.2
Pygments           2.3.1
PySimpleSOAP       1.16.2
python-apt         2.1.3
python-debian      0.1.37
python-debianbts   3.0.2
PyYAML             5.3.1
reportbug          7.6.0
requests           2.23.0
setuptools         46.1.3
six                1.15.0
urllib3            1.25.9
virtualenv         20.0.21+ds
wheel              0.34.2
zipp               1.0.0

Python3 installation provided by OS : 3.8 is default, 3.7 is still there (almost partly) :

~$ python3 -m pip -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)
~$ python3.7 -V
Python 3.7.3
~$ python3.7 -m pip -V
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3/dist-packages/pip/__main__.py", line 23, in <module>
    from pip._internal.cli.main import main as _main  # isort:skip # noqa
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 19, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'

My python3.7.7 installation in userland follows this way. I try a sudo make install, it do not change situation.

~$ ./pylocal/bin/python3.7 -m pip -V
pip 19.2.3 from /home/user/pylocal/lib/python3.7/site-packages/pip (python 3.7)
~$ ./pylocal/bin/python3.7 -c 'from pip._vendor import six'
~$ source .venvpylocal37/bin/activate
(.venvpylocal37) ~$ pip -V
Traceback (most recent call last):
  File "/home/user/.venvpylocal37/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
  File "/home/user/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/home/user/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/home/user/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/home/user/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
    from pip._internal.cli.progress_bars import BAR_TYPES
  File "/home/user/.venvpylocal37/lib/python3.7/site-packages/pip/_internal/cli/progress_bars.py", line 7, in <module>
    from pip._vendor import six
ImportError: cannot import name 'six' from 'pip._vendor' (/home/user/.venvpylocal37/lib/python3.7/site-packages/pip/_vendor/__init__.py)

Output of the virtual environment creation

~$ virtualenv -vvv --with-traceback --clear -p ~/pythonroot/bin/python3.7 .venvpylocal37
101 setup logging to NOTSET [DEBUG report:42]
114 find interpreter for spec PythonSpec(path=/home/user/pythonroot/bin/python3.7) [INFO builtin:44]
Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 11, in <module>
    load_entry_point('virtualenv==20.0.21+ds', 'console_scripts', 'virtualenv')()
  File "/usr/lib/python3/dist-packages/virtualenv/__main__.py", line 51, in run_with_catch
    run(args, options)
  File "/usr/lib/python3/dist-packages/virtualenv/__main__.py", line 20, in run
    session = cli_run(args, options)
  File "/usr/lib/python3/dist-packages/virtualenv/run/__init__.py", line 24, in cli_run
    session = session_via_cli(args, options)
  File "/usr/lib/python3/dist-packages/virtualenv/run/__init__.py", line 32, in session_via_cli
    parser = build_parser(args, options)
  File "/usr/lib/python3/dist-packages/virtualenv/run/__init__.py", line 68, in build_parser
    parser._interpreter = interpreter = discover.interpreter
  File "/usr/lib/python3/dist-packages/virtualenv/discovery/discover.py", line 44, in interpreter
    self._interpreter = self.run()
  File "/usr/lib/python3/dist-packages/virtualenv/discovery/builtin.py", line 33, in run
    return get_interpreter(self.python_spec, self.app_data.folder)
  File "/usr/lib/python3/dist-packages/virtualenv/discovery/builtin.py", line 46, in get_interpreter
    for interpreter, impl_must_match in propose_interpreters(spec, app_data):
  File "/usr/lib/python3/dist-packages/virtualenv/discovery/builtin.py", line 61, in propose_interpreters
    os.lstat(spec.path)  # Windows Store Python does not work with os.path.exists, but does for os.lstat
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/pythonroot/bin/python3.7'
fred@vdeb:~$ virtualenv -vvv --with-traceback --clear -p ~/pylocal/bin/python3.7 .venvpylocal37
31 setup logging to NOTSET [DEBUG report:42]
38 find interpreter for spec PythonSpec(path=/home/user/pylocal/bin/python3.7) [INFO builtin:44]
46 Attempting to acquire lock 140515931423792 on /home/user/.local/share/virtualenv/py_info/20.0.21+ds/2747778772f3f1c9b7149efaf80ed9d676b13f4b7dbff87c54dadb7c5bf69a39.lock [DEBUG filelock:270]
47 Lock 140515931423792 acquired on /home/user/.local/share/virtualenv/py_info/20.0.21+ds/2747778772f3f1c9b7149efaf80ed9d676b13f4b7dbff87c54dadb7c5bf69a39.lock [INFO filelock:274]
48 get PythonInfo from /home/user/.local/share/virtualenv/py_info/20.0.21+ds/2747778772f3f1c9b7149efaf80ed9d676b13f4b7dbff87c54dadb7c5bf69a39.json for /home/user/pylocal/bin/python3.7 [DEBUG cached_py_info:79]
48 Attempting to release lock 140515931423792 on /home/user/.local/share/virtualenv/py_info/20.0.21+ds/2747778772f3f1c9b7149efaf80ed9d676b13f4b7dbff87c54dadb7c5bf69a39.lock [DEBUG filelock:315]
49 Lock 140515931423792 released on /home/user/.local/share/virtualenv/py_info/20.0.21+ds/2747778772f3f1c9b7149efaf80ed9d676b13f4b7dbff87c54dadb7c5bf69a39.lock [INFO filelock:318]
49 proposed PythonInfo(spec=CPython3.7.7.final.0-64, exe=/home/user/pylocal/bin/python3.7, platform=linux, version='3.7.7 (default, Jun 13 2020, 00:13:49) \n[GCC 9.3.0]', encoding_fs_io=utf-8-UTF-8) [INFO builtin:50]
49 accepted PythonInfo(spec=CPython3.7.7.final.0-64, exe=/home/user/pylocal/bin/python3.7, platform=linux, version='3.7.7 (default, Jun 13 2020, 00:13:49) \n[GCC 9.3.0]', encoding_fs_io=utf-8-UTF-8) [DEBUG builtin:52]
66 filesystem is case-sensitive [DEBUG info:28]
199 create virtual environment via CPython3Posix(dest=/home/user/.venvpylocal37, clear=True, global=False) [INFO session:52]
199 create folder /home/user/.venvpylocal37/bin [DEBUG _sync:25]
200 create folder /home/user/.venvpylocal37/lib/python3.7/site-packages [DEBUG _sync:25]
200 write /home/user/.venvpylocal37/pyvenv.cfg [DEBUG pyenv_cfg:34]
200 	home = /home/user/pylocal [DEBUG pyenv_cfg:38]
200 	implementation = CPython [DEBUG pyenv_cfg:38]
200 	version_info = 3.7.7.final.0 [DEBUG pyenv_cfg:38]
200 	virtualenv = 20.0.21+ds [DEBUG pyenv_cfg:38]
200 	include-system-site-packages = false [DEBUG pyenv_cfg:38]
200 	base-prefix = /home/user/pylocal [DEBUG pyenv_cfg:38]
200 	base-exec-prefix = /home/user/pylocal [DEBUG pyenv_cfg:38]
200 	base-executable = /home/user/pylocal/bin/python3.7 [DEBUG pyenv_cfg:38]
200 symlink /home/user/pylocal/bin/python3.7 to /home/user/.venvpylocal37/bin/python [DEBUG _sync:44]
201 create virtualenv import hook file /home/user/.venvpylocal37/lib/python3.7/site-packages/_virtualenv.pth [DEBUG api:95]
202 create /home/user/.venvpylocal37/lib/python3.7/site-packages/_virtualenv.py [DEBUG api:98]
202 ============================== target debug ============================== [DEBUG session:54]
202 debug via /home/user/.venvpylocal37/bin/python /usr/lib/python3/dist-packages/virtualenv/create/debug.py [DEBUG creator:206]
202 {
  "sys": {
    "executable": "/home/user/.venvpylocal37/bin/python",
    "_base_executable": null,
    "prefix": "/home/user/.venvpylocal37",
    "base_prefix": "/home/user/pylocal",
    "real_prefix": null,
    "exec_prefix": "/home/user/.venvpylocal37",
    "base_exec_prefix": "/home/user/pylocal",
    "path": [
      "/home/user/pylocal/lib/python37.zip",
      "/home/user/pylocal/lib/python3.7",
      "/home/user/pylocal/lib/python3.7/lib-dynload",
      "/home/user/.venvpylocal37/lib/python3.7/site-packages"
    ],
    "meta_path": [
      "<class '_virtualenv._Finder'>",
      "<class '_frozen_importlib.BuiltinImporter'>",
      "<class '_frozen_importlib.FrozenImporter'>",
      "<class '_frozen_importlib_external.PathFinder'>"
    ],
    "fs_encoding": "utf-8",
    "io_encoding": "UTF-8"
  },
  "version": "3.7.7 (default, Jun 13 2020, 00:13:49) \n[GCC 9.3.0]",
  "makefile_filename": "/home/user/pylocal/lib/python3.7/config-3.7m-x86_64-linux-gnu/Makefile",
  "os": "<module 'os' from '/home/user/pylocal/lib/python3.7/os.py'>",
  "site": "<module 'site' from '/home/user/pylocal/lib/python3.7/site.py'>",
  "datetime": "<module 'datetime' from '/home/user/pylocal/lib/python3.7/datetime.py'>",
  "math": "<module 'math' from '/home/user/pylocal/lib/python3.7/lib-dynload/math.cpython-37m-x86_64-linux-gnu.so'>",
  "json": "<module 'json' from '/home/user/pylocal/lib/python3.7/json/__init__.py'>"
} [DEBUG session:55]
312 add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian) [INFO session:59]
314 Attempting to acquire lock 140515926865664 on /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels.lock [DEBUG filelock:270]
314 Lock 140515926865664 acquired on /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels.lock [INFO filelock:274]
317 get bundled wheel /usr/share/python-wheels/pip-20.1.1-py2.py3-none-any.whl [DEBUG acquire:61]
317 get bundled wheel /usr/share/python-wheels/setuptools-44.0.0-py2.py3-none-any.whl [DEBUG acquire:61]
318 get bundled wheel /usr/share/python-wheels/wheel-0.34.2-py2.py3-none-any.whl [DEBUG acquire:61]
319 get bundled wheel /usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl [DEBUG acquire:61]
324 install pip from wheel /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels/pip-20.1.1-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
325 install setuptools from wheel /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels/setuptools-44.0.0-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
325 install wheel from wheel /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels/wheel-0.34.2-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
326 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/pip-20.1.1-py2.py3-none-any/pip to /home/user/.venvpylocal37/lib/python3.7/site-packages/pip [DEBUG _sync:52]
327 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/setuptools-44.0.0-py2.py3-none-any/setuptools to /home/user/.venvpylocal37/lib/python3.7/site-packages/setuptools [DEBUG _sync:52]
327 install pkg_resources from wheel /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels/pkg_resources-0.0.0-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
329 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/wheel-0.34.2-py2.py3-none-any/wheel to /home/user/.venvpylocal37/lib/python3.7/site-packages/wheel [DEBUG _sync:52]
333 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/pkg_resources-0.0.0-py2.py3-none-any/pkg_resources-0.0.0.dist-info to /home/user/.venvpylocal37/lib/python3.7/site-packages/pkg_resources-0.0.0.dist-info [DEBUG _sync:52]
342 copy /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/wheel-0.34.2-py2.py3-none-any/wheel-0.34.2.virtualenv to /home/user/.venvpylocal37/lib/python3.7/site-packages/wheel-0.34.2.virtualenv [DEBUG _sync:52]
344 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/wheel-0.34.2-py2.py3-none-any/wheel-0.34.2.dist-info to /home/user/.venvpylocal37/lib/python3.7/site-packages/wheel-0.34.2.dist-info [DEBUG _sync:52]
345 copy /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/pkg_resources-0.0.0-py2.py3-none-any/pkg_resources-0.0.0.virtualenv to /home/user/.venvpylocal37/lib/python3.7/site-packages/pkg_resources-0.0.0.virtualenv [DEBUG _sync:52]
347 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/pkg_resources-0.0.0-py2.py3-none-any/pkg_resources to /home/user/.venvpylocal37/lib/python3.7/site-packages/pkg_resources [DEBUG _sync:52]
353 changing mode of /home/user/.venvpylocal37/bin/wheel to 755 [INFO util:566]
353 changing mode of /home/user/.venvpylocal37/bin/wheel-3.7 to 755 [INFO util:566]
354 changing mode of /home/user/.venvpylocal37/bin/wheel3 to 755 [INFO util:566]
354 generated console scripts wheel-3.7 wheel3 wheel [DEBUG base:53]
372 generated console scripts  [DEBUG base:53]
400 copy /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/setuptools-44.0.0-py2.py3-none-any/easy_install.py to /home/user/.venvpylocal37/lib/python3.7/site-packages/easy_install.py [DEBUG _sync:52]
401 copy /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/setuptools-44.0.0-py2.py3-none-any/setuptools-44.0.0.virtualenv to /home/user/.venvpylocal37/lib/python3.7/site-packages/setuptools-44.0.0.virtualenv [DEBUG _sync:52]
401 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/setuptools-44.0.0-py2.py3-none-any/setuptools-44.0.0.dist-info to /home/user/.venvpylocal37/lib/python3.7/site-packages/setuptools-44.0.0.dist-info [DEBUG _sync:52]
410 changing mode of /home/user/.venvpylocal37/bin/easy_install to 755 [INFO util:566]
410 changing mode of /home/user/.venvpylocal37/bin/easy_install3 to 755 [INFO util:566]
410 changing mode of /home/user/.venvpylocal37/bin/easy_install-3.7 to 755 [INFO util:566]
411 generated console scripts easy_install easy_install-3.7 easy_install3 [DEBUG base:53]
439 copy /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/pip-20.1.1-py2.py3-none-any/pip-20.1.1.virtualenv to /home/user/.venvpylocal37/lib/python3.7/site-packages/pip-20.1.1.virtualenv [DEBUG _sync:52]
440 copy directory /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/image/CopyPipInstall/pip-20.1.1-py2.py3-none-any/pip-20.1.1.dist-info to /home/user/.venvpylocal37/lib/python3.7/site-packages/pip-20.1.1.dist-info [DEBUG _sync:52]
447 changing mode of /home/user/.venvpylocal37/bin/pip3.7 to 755 [INFO util:566]
447 changing mode of /home/user/.venvpylocal37/bin/pip-3.7 to 755 [INFO util:566]
447 changing mode of /home/user/.venvpylocal37/bin/pip to 755 [INFO util:566]
447 changing mode of /home/user/.venvpylocal37/bin/pip3 to 755 [INFO util:566]
447 generated console scripts pip3 pip3.7 pip-3.7 pip [DEBUG base:53]
448 Attempting to release lock 140515926865664 on /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels.lock [DEBUG filelock:315]
448 Lock 140515926865664 released on /home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.7/wheels.lock [INFO filelock:318]
448 add activators for Bash, CShell, Fish, PowerShell, Python, Xonsh [INFO session:64]
453 write /home/user/.venvpylocal37/pyvenv.cfg [DEBUG pyenv_cfg:34]
453 	home = /home/user/pylocal [DEBUG pyenv_cfg:38]
453 	implementation = CPython [DEBUG pyenv_cfg:38]
454 	version_info = 3.7.7.final.0 [DEBUG pyenv_cfg:38]
454 	virtualenv = 20.0.21+ds [DEBUG pyenv_cfg:38]
454 	include-system-site-packages = false [DEBUG pyenv_cfg:38]
454 	base-prefix = /home/user/pylocal [DEBUG pyenv_cfg:38]
454 	base-exec-prefix = /home/user/pylocal [DEBUG pyenv_cfg:38]
454 	base-executable = /home/user/pylocal/bin/python3.7 [DEBUG pyenv_cfg:38]
454 created virtual environment CPython3.7.7.final.0-64 in 424ms
  creator CPython3Posix(dest=/home/user/.venvpylocal37, clear=True, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/user/.local/share/virtualenv/seed-app-data/v1.0.1.debian)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator [WARNING __main__:21]

On the other side, python's venv package provides me a working virtual environnement :

$ pylocal/bin/python3.7 -m venv .venv37
$ source venv37/bin/activate
(.venv37) $ python -m pip -V
pip 19.2.3 from /home/user/.venv37/lib/python3.7/site-packages/pip (python 3.7)

For memory, I asked a Stack Overflow question about this.

Thanks to all mainteners for the work on this package.

@freezed freezed added the bug label Jun 15, 2020
@gaborbernat
Copy link
Contributor

Hello, how did you install virtualenv?

@freezed
Copy link
Author

freezed commented Jun 15, 2020

Apologies for forgetting this detail, Debian's/Bullseye repo :
sudo apt install python3-virtualenv

~$ virtualenv --version
virtualenv 20.0.21+ds from /usr/lib/python3/dist-packages/virtualenv/__init__.py

@gaborbernat
Copy link
Contributor

gaborbernat commented Jun 15, 2020

This is due to Debian repackaging virtualenv we distribute and applies patches that are broken. Please open an issue on Debian issue tracker. https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=virtualenv

@gaborbernat
Copy link
Contributor

If you install it via pip or use the zipapp should be good 😎

@freezed
Copy link
Author

freezed commented Jun 15, 2020

Thanks for answer's speed, the right URL to search Debian BTS is :
http://bugs.debian.org/cgi-bin/pkgreport.cgi?package=python3-virtualenv

And a candidate was found : #961629, I complement it to had confirmation. Current verdict of the bug :

This isn't a virtualenv bug. This is a result of python3.7 being not yet completely removed from the archive for Testing/Unstable. […]
Currently python3.8 is the only supported python3 version in Unstable and Testing.

@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants