You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a new environment via the command virtualenv venv I get the meassage
ImportError: cannot import name 'enquote_executable' from 'distlib.scripts' (/home/sidious/.local/lib/python3.8/site-packages/distlib/scripts.py)
At first I thought this was same or related to #1551 since the messages are similar, turns out that's not the case.
I noticed this after a recent update in the Archlinux package, on November 3rd, but after some testing, it seems I can reproduce the problem with any version from the Archlinux repo >= 20.0.25, as in the 20.0.25 (published in October 16) version works fine, but any above it will give me the same error.
This may be an Archlinux only problem, so I'm not really sure how to proceed.
Make sure to run the creation with -vvv --with-traceback:
141 setup logging to NOTSET [DEBUG report:43]236 find interpreter for spec PythonSpec(path=/usr/bin/python) [INFO builtin:51]236 proposed PythonInfo(spec=CPython3.8.6.final.0-64, exe=/usr/bin/python, platform=linux, version='3.8.6 (default, Sep 30 2020, 04:00:38) \n[GCC 10.2.0]', encoding_fs_io=utf-8-utf-8) [INFO builtin:57]236 accepted PythonInfo(spec=CPython3.8.6.final.0-64, exe=/usr/bin/python, platform=linux, version='3.8.6 (default, Sep 30 2020, 04:00:38) \n[GCC 10.2.0]', encoding_fs_io=utf-8-utf-8) [DEBUG builtin:59]239 filesystem is case-sensitive [DEBUG info:28]Traceback (most recent call last): File "/usr/bin/virtualenv", line 33, in <module> sys.exit(load_entry_point('virtualenv==20.1.0', 'console_scripts', 'virtualenv')()) File "/usr/lib/python3.8/site-packages/virtualenv/__main__.py", line 62, in run_with_catch run(args, options) File "/usr/lib/python3.8/site-packages/virtualenv/__main__.py", line 16, in run session = cli_run(args, options) File "/usr/lib/python3.8/site-packages/virtualenv/run/__init__.py", line 26, in cli_run of_session = session_via_cli(args, options, setup_logging) File "/usr/lib/python3.8/site-packages/virtualenv/run/__init__.py", line 42, in session_via_cli parser, elements = build_parser(args, options, setup_logging) File "/usr/lib/python3.8/site-packages/virtualenv/run/__init__.py", line 69, in build_parser SeederSelector(interpreter, parser), File "/usr/lib/python3.8/site-packages/virtualenv/run/plugin/seeders.py", line 8, in __init__ possible = self.options("virtualenv.seed") File "/usr/lib/python3.8/site-packages/virtualenv/run/plugin/base.py", line 39, in options cls._OPTIONS = cls.entry_points_for(key) File "/usr/lib/python3.8/site-packages/virtualenv/run/plugin/base.py", line 18, in entry_points_for return OrderedDict((e.name, e.load()) for e in cls.entry_points().get(key, {})) File "/usr/lib/python3.8/site-packages/virtualenv/run/plugin/base.py", line 18, in <genexpr> return OrderedDict((e.name, e.load()) for e in cls.entry_points().get(key, {})) File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/lib/python3.8/site-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 18, in <module> from .pip_install.copy import CopyPipInstall File "/usr/lib/python3.8/site-packages/virtualenv/seed/embed/via_app_data/pip_install/copy.py", line 8, in <module> from .base import PipInstall File "/usr/lib/python3.8/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 10, in <module> from distlib.scripts import ScriptMaker, enquote_executableImportError: cannot import name 'enquote_executable' from 'distlib.scripts' (/home/sidious/.local/lib/python3.8/site-packages/distlib/scripts.py)
The text was updated successfully, but these errors were encountered:
distlib was automatically installed when I installed python-virtualenv, but if that's the issue I'll try to debug and find the problem with that install then. Thanks for the attention.
Issue
When attempting to create a new environment via the command
virtualenv venv
I get the meassageImportError: cannot import name 'enquote_executable' from 'distlib.scripts' (/home/sidious/.local/lib/python3.8/site-packages/distlib/scripts.py)
At first I thought this was same or related to #1551 since the messages are similar, turns out that's not the case.
I noticed this after a recent update in the Archlinux package, on November 3rd, but after some testing, it seems I can reproduce the problem with any version from the Archlinux repo >= 20.0.25, as in the
20.0.25
(published in October 16) version works fine, but any above it will give me the same error.This may be an Archlinux only problem, so I'm not really sure how to proceed.
I used ALA (Archlinux Archives) to test the multiple versions, found here: https://archive.archlinux.org/packages/p/python-virtualenv/
Environment
Provide at least:
pip list
of the host python wherevirtualenv
is installed:Output of the virtual environment creation
Make sure to run the creation with
-vvv --with-traceback
:The text was updated successfully, but these errors were encountered: