Hi,
when I create a new virtualenv, I always get this error: RuntimeError: no dist info
After the creation process the folder with all files exists. The only thing missing is the pip dist-info folder in site-packages and the pip files in the Scripts Folder. For the creation process i use the virtualenvwrapper-win package with the command mkvirtualenv.
I had never be problems with that. I never use some extra options or settings.
Even with active virtual environment it uses the global pip installer.
I just reinstalled the OS today. Before I had no problems.
I have also worked with exactly the same versions of pip, python and virtualenv before.
Tested with pip 19.2.3 and pip 20.0.2
Environment
Provide at least:
pip list
of the host python where virtualenv
is installed:Package Version
--------------------- -------
appdirs 1.4.3
distlib 0.3.0
filelock 3.0.12
six 1.14.0
virtualenv 20.0.17
virtualenvwrapper-win 1.2.6
Output of the virtual environment creation
Make sure to run the creation with -vvv --with-traceback
:
77 setup logging to NOTSET [DEBUG report:43]
86 find interpreter for spec PythonSpec(path=C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8
_qbz5n2kfra8p0\python.exe) [INFO builtin:44]
86 proposed PythonInfo(spec=CPython3.8.2.final.0-64, exe=C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundatio
n.Python.3.8_qbz5n2kfra8p0\python.exe, platform=win32, version='3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 b
it (AMD64)]', encoding_fs_io=utf-8-utf-8) [INFO builtin:50]
86 accepted PythonInfo(spec=CPython3.8.2.final.0-64, exe=C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundatio
n.Python.3.8_qbz5n2kfra8p0\python.exe, platform=win32, version='3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 b
it (AMD64)]', encoding_fs_io=utf-8-utf-8) [DEBUG builtin:52]
92 symlink on filesystem does work [DEBUG info:47]
93 filesystem is not case-sensitive [DEBUG info:28]
196 create virtual environment via Venv(dest=C:\virtenv\api, clear=False, global=False, describe=CPython3Windows) [INFO session:52]
235 create virtualenv import hook file C:\virtenv\api\Lib\site-packages\_virtualenv.pth [DEBUG api:78]
237 create C:\virtenv\api\Lib\site-packages\_virtualenv.py [DEBUG api:81]
244 ============================== target debug ============================== [DEBUG session:54]
244 debug via 'C:\virtenv\api\Scripts\python.exe' 'C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2
kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\create\debug.py' [DEBUG creator:187]
244 {
"sys": {
"executable": "C:\\virtenv\\api\\Scripts\\python.exe",
"_base_executable": "C:\\Users\\runge\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p
0\\python.exe",
"prefix": "C:\\virtenv\\api",
"base_prefix": "C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0",
"real_prefix": null,
"exec_prefix": "C:\\virtenv\\api",
"base_exec_prefix": "C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0",
"path": [
"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\python38.zip",
"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\DLLs",
"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\lib",
"C:\\Users\\runge\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0",
"C:\\virtenv\\api",
"C:\\virtenv\\api\\lib\\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": "cp1252"
},
"version": "3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]",
"os": "<module 'os' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\
\\\lib\\\\os.py'>",
"site": "<module 'site' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra
8p0\\\\lib\\\\site.py'>",
"datetime": "<module 'datetime' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qb
z5n2kfra8p0\\\\lib\\\\datetime.py'>",
"math": "<module 'math' (built-in)>",
"json": "<module 'json' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra
8p0\\\\lib\\\\json\\\\__init__.py'>"
} [DEBUG session:55]
397 add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\
runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.
1) [INFO session:59]
398 Attempting to acquire lock 1978940453888 on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfr
a8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [DEBUG filelock:270]
399 Lock 1978940453888 acquired on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCac
he\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [INFO filelock:274]
402 get bundled wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python38\site-packages\virtualenv\seed\embed\wheels\pip-20.0.2-py2.py3-none-any.whl [DEBUG acquire:51]
402 get bundled wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python38\site-packages\virtualenv\seed\embed\wheels\setuptools-46.1.3-py3-none-any.whl [DEBUG acquire:51]
403 get bundled wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python38\site-packages\virtualenv\seed\embed\wheels\wheel-0.34.2-py2.py3-none-any.whl [DEBUG acquire:51]
415 install wheel from wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Loc
al\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels\wheel-0.34.2-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
443 install pip from wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local
\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels\pip-20.0.2-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
444 install setuptools from wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCach
e\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels\setuptools-46.1.3-py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:4
6]
444 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any\wheel to C:\virtenv\api\Lib\site-packages\whee
l [DEBUG _sync:48]
444 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\pip-20.0.2-py2.py3-none-any\pip to C:\virtenv\api\Lib\site-packages\pip [DEB
UG _sync:48]
445 copy C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\s
eed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\easy_install.py to C:\virtenv\api\Lib\site-packages\eas
y_install.py [DEBUG _sync:48]
449 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\pkg_resources to C:\virtenv\api\Lib\site-pack
ages\pkg_resources [DEBUG _sync:48]
535 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any\wheel-0.34.2.dist-info to C:\virtenv\api\Lib\s
ite-packages\wheel-0.34.2.dist-info [DEBUG _sync:48]
569 copy C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\s
eed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any\wheel-0.34.2.virtualenv to C:\virtenv\api\Lib\site-packa
ges\wheel-0.34.2.virtualenv [DEBUG _sync:48]
603 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\setuptools to C:\virtenv\api\Lib\site-package
s\setuptools [DEBUG _sync:48]
697 generated console scripts wheel.exe wheel3.exe wheel-3.8.exe [DEBUG base:53]
1074 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\v
irtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\setuptools-46.1.3.dist-info to C:\virtenv\ap
i\Lib\site-packages\setuptools-46.1.3.dist-info [DEBUG _sync:48]
1123 copy C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\
seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\setuptools-46.1.3.virtualenv to C:\virtenv\api\Lib\sit
e-packages\setuptools-46.1.3.virtualenv [DEBUG _sync:48]
1214 generated console scripts easy_install3.exe easy_install-3.8.exe easy_install.exe [DEBUG base:53]
Exception in thread Thread-7:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932,
in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870,
in run
self._target(*self._args, **self._kwargs)
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\via_app_data.py", line 51, in _install
installer.install(creator.interpreter.version_info)
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 51, in install
for name, module in self._console_scripts.items():
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 118, in _console_scripts
entry_points = self._dist_info / "entry_points.txt"
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 105, in _dist_info
raise RuntimeError("no dist info") # pragma: no cover
RuntimeError: no dist info
2328 Attempting to release lock 1978940453888 on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kf
ra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [DEBUG filelock:315]
2328 Lock 1978940453888 released on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCa
che\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [INFO filelock:318]
2329 add activators for Bash, Batch, Fish, PowerShell, Python, Xonsh [INFO session:64]
2356 write C:\virtenv\api\pyvenv.cfg [DEBUG pyenv_cfg:34]
2367 home = C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0 [DEBUG pyenv_cf
g:38]
2367 implementation = CPython [DEBUG pyenv_cfg:38]
2367 version_info = 3.8.2.final.0 [DEBUG pyenv_cfg:38]
2368 virtualenv = 20.0.17 [DEBUG pyenv_cfg:38]
2368 include-system-site-packages = false [DEBUG pyenv_cfg:38]
2368 version = 3.8.2 [DEBUG pyenv_cfg:38]
2369 prompt = (api) [DEBUG pyenv_cfg:38]
2370 created virtual environment CPython3.8.2.final.0-64 in 2296ms
creator Venv(dest=C:\virtenv\api, clear=False, global=False, describe=CPython3Windows)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\runge\AppData\Loc
al\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1)
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator [WARNING __main__:21]
Does it still happen if you pass in --clear-app-data
, per https://virtualenv.pypa.io/en/latest/cli_interface.html#clear-app-data?
Thx for the hint.
i still get a new error:
C:\Users\runge>mkvirtualenv api --clear-app-data
Exception in thread Thread-6:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932,
in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870,
in run
self._target(*self._args, **self._kwargs)
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\via_app_data.py", line 50, in _install
installer.build_image()
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 59, in build_image
zip_ref.extractall(str(self._image_dir))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\zipfile.py", line 1647, i
n extractall
self._extract_member(zipinfo, path, pwd)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\zipfile.py", line 1701, i
n _extract_member
open(targetpath, "wb") as target:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\runge\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Pytho
n.3.8_qbz5n2kfra8p0\\LocalCache\\Local\\pypa\\virtualenv\\seed-app-data\\v1.0.1\\3.8\\image\\CopyPipInstall\\pip-20.0.2-py2.py3-non
e-any\\pip\\_vendor\\urllib3\\packages\\ssl_match_hostname\\_implementation.py'
created virtual environment CPython3.8.2.final.0-64 in 2184ms
creator Venv(dest=C:\virtenv\api, clear=False, global=False, describe=CPython3Windows)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1)
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
_implementation.py is missing in the directory.
But it also didn't worked with global pip version 19.2.3
Can you detail what mkvirtualenv api
actually does? Please still post the -vvv
output.
The code of the mkvirtualen.bat can you see here
It is just a small wrapper for easier use.
Output by directly using of virtuelenv:
C:\Users\runge>virtualenv api -vvv --clear-app-data
64 setup logging to NOTSET [DEBUG report:43]
73 clean app data folder C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\p
ypa\virtualenv [DEBUG app_data:21]
168 find interpreter for spec PythonSpec(path=C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.
8_qbz5n2kfra8p0\python.exe) [INFO builtin:44]
170 proposed PythonInfo(spec=CPython3.8.2.final.0-64, exe=C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundati
on.Python.3.8_qbz5n2kfra8p0\python.exe, platform=win32, version='3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)]', encoding_fs_io=utf-8-utf-8) [INFO builtin:50]
170 accepted PythonInfo(spec=CPython3.8.2.final.0-64, exe=C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundati
on.Python.3.8_qbz5n2kfra8p0\python.exe, platform=win32, version='3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)]', encoding_fs_io=utf-8-utf-8) [DEBUG builtin:52]
175 symlink on filesystem does work [DEBUG info:47]
175 filesystem is not case-sensitive [DEBUG info:28]
260 create virtual environment via Venv(dest=C:\Users\runge\api, clear=False, global=False, describe=CPython3Windows) [INFO session
:52]
291 create virtualenv import hook file C:\Users\runge\api\Lib\site-packages\_virtualenv.pth [DEBUG api:78]
297 create C:\Users\runge\api\Lib\site-packages\_virtualenv.py [DEBUG api:81]
300 ============================== target debug ============================== [DEBUG session:54]
300 debug via 'C:\Users\runge\api\Scripts\python.exe' 'C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qb
z5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\create\debug.py' [DEBUG creator:187]
300 {
"sys": {
"executable": "C:\\Users\\runge\\api\\Scripts\\python.exe",
"_base_executable": "C:\\Users\\runge\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p
0\\python.exe",
"prefix": "C:\\Users\\runge\\api",
"base_prefix": "C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0",
"real_prefix": null,
"exec_prefix": "C:\\Users\\runge\\api",
"base_exec_prefix": "C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0",
"path": [
"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\python38.zip",
"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\DLLs",
"C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\lib",
"C:\\Users\\runge\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0",
"C:\\Users\\runge\\api",
"C:\\Users\\runge\\api\\lib\\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": "cp1252"
},
"version": "3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]",
"os": "<module 'os' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\
\\\lib\\\\os.py'>",
"site": "<module 'site' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra
8p0\\\\lib\\\\site.py'>",
"datetime": "<module 'datetime' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qb
z5n2kfra8p0\\\\lib\\\\datetime.py'>",
"math": "<module 'math' (built-in)>",
"json": "<module 'json' from 'C:\\\\Program Files\\\\WindowsApps\\\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra
8p0\\\\lib\\\\json\\\\__init__.py'>"
} [DEBUG session:55]
444 add seed packages via FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\
runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.
1) [INFO session:59]
446 Attempting to acquire lock 1977832226976 on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfr
a8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [DEBUG filelock:270]
448 Lock 1977832226976 acquired on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCac
he\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [INFO filelock:274]
449 get bundled wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python38\site-packages\virtualenv\seed\embed\wheels\pip-20.0.2-py2.py3-none-any.whl [DEBUG acquire:51]
449 get bundled wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python38\site-packages\virtualenv\seed\embed\wheels\setuptools-46.1.3-py3-none-any.whl [DEBUG acquire:51]
449 get bundled wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-pack
ages\Python38\site-packages\virtualenv\seed\embed\wheels\wheel-0.34.2-py2.py3-none-any.whl [DEBUG acquire:51]
459 install wheel from wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Loc
al\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels\wheel-0.34.2-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
459 install setuptools from wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCach
e\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels\setuptools-46.1.3-py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:4
6]
459 build install image to C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local
\pypa\virtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any of wheel-0.34.2-py2.py3-none-any.whl [
DEBUG base:57]
461 install pip from wheel C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local
\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels\pip-20.0.2-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
461 build install image to C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local
\pypa\virtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any of setuptools-46.1.3-py3-none-any.whl
[DEBUG base:57]
461 build install image to C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local
\pypa\virtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\pip-20.0.2-py2.py3-none-any of pip-20.0.2-py2.py3-none-any.whl [DEBU
G base:57]
656 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any\wheel to C:\Users\runge\api\Lib\site-packages\
wheel [DEBUG _sync:48]
721 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\vi
rtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any\wheel-0.34.2.dist-info to C:\Users\runge\api\L
ib\site-packages\wheel-0.34.2.dist-info [DEBUG _sync:48]
737 copy C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\s
eed-app-data\v1.0.1\3.8\image\CopyPipInstall\wheel-0.34.2-py2.py3-none-any\wheel-0.34.2.virtualenv to C:\Users\runge\api\Lib\site-p
ackages\wheel-0.34.2.virtualenv [DEBUG _sync:48]
829 generated console scripts wheel.exe wheel3.exe wheel-3.8.exe [DEBUG base:53]
1160 copy C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\
seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\easy_install.py to C:\Users\runge\api\Lib\site-package
s\easy_install.py [DEBUG _sync:48]
1168 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\v
irtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\pkg_resources to C:\Users\runge\api\Lib\site
-packages\pkg_resources [DEBUG _sync:48]
1250 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\v
irtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\setuptools to C:\Users\runge\api\Lib\site-pa
ckages\setuptools [DEBUG _sync:48]
1645 copy directory C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\v
irtualenv\seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\setuptools-46.1.3.dist-info to C:\Users\rung
e\api\Lib\site-packages\setuptools-46.1.3.dist-info [DEBUG _sync:48]
1669 copy C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\
seed-app-data\v1.0.1\3.8\image\CopyPipInstall\setuptools-46.1.3-py3-none-any\setuptools-46.1.3.virtualenv to C:\Users\runge\api\Lib
\site-packages\setuptools-46.1.3.virtualenv [DEBUG _sync:48]
1753 generated console scripts easy_install3.exe easy_install-3.8.exe easy_install.exe [DEBUG base:53]
Exception in thread Thread-8:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932,
in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870,
in run
self._target(*self._args, **self._kwargs)
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\via_app_data.py", line 50, in _install
installer.build_image()
File "C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\
site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 59, in build_image
zip_ref.extractall(str(self._image_dir))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\zipfile.py", line 1647, i
n extractall
self._extract_member(zipinfo, path, pwd)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\zipfile.py", line 1701, i
n _extract_member
open(targetpath, "wb") as target:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\runge\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Pytho
n.3.8_qbz5n2kfra8p0\\LocalCache\\Local\\pypa\\virtualenv\\seed-app-data\\v1.0.1\\3.8\\image\\CopyPipInstall\\pip-20.0.2-py2.py3-non
e-any\\pip\\_vendor\\urllib3\\packages\\ssl_match_hostname\\_implementation.py'
2349 Attempting to release lock 1977832226976 on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kf
ra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [DEBUG filelock:315]
2350 Lock 1977832226976 released on C:\Users\runge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCa
che\Local\pypa\virtualenv\seed-app-data\v1.0.1\3.8\wheels.lock [INFO filelock:318]
2350 add activators for Bash, Batch, Fish, PowerShell, Python, Xonsh [INFO session:64]
2375 write C:\Users\runge\api\pyvenv.cfg [DEBUG pyenv_cfg:34]
2388 home = C:\Users\runge\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0 [DEBUG pyenv_cf
g:38]
2405 implementation = CPython [DEBUG pyenv_cfg:38]
2405 version_info = 3.8.2.final.0 [DEBUG pyenv_cfg:38]
2407 virtualenv = 20.0.17 [DEBUG pyenv_cfg:38]
2407 include-system-site-packages = false [DEBUG pyenv_cfg:38]
2408 version = 3.8.2 [DEBUG pyenv_cfg:38]
2410 created virtual environment CPython3.8.2.final.0-64 in 2348ms
creator Venv(dest=C:\Users\runge\api, clear=False, global=False, describe=CPython3Windows)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\runge\AppData\Loc
al\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1)
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator [WARNING __main__:21]
I still get the same error because of the missing _implementation.py
Seems this is a case of the path becoming too large for Windows https://bugs.python.org/issue10447
The path it tries to write is:
C:\\Users\\runge\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\Local\\pypa\\virtualenv\\seed-app-data\\v1.0.1\\3.8\\image\\CopyPipInstall\\pip-20.0.2-py2.py3-none-any\\pip\\_vendor\\urllib3\\packages\\ssl_match_hostname\\_implementation.py
; that's 261 character long which goes over the 256 Windows support easily.
Is there a solution to this?
Because I have no control over the paths
Either change app data folder via the flag or use the pip seeder in the meantime 馃憤
see https://virtualenv.pypa.io/en/latest/cli_interface.html#app-data that allows changing the temp path 馃憤
Thx a lot. It works now by changing the app data folder 馃憤
By the way, you can also enable long paths per https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/
A yeahh.. you are right. That option was enabled in me previously OS setup. Thx for the hint.
No wonder it went before.
I think a warning if long paths are disabled is useful
I'm not aware of a cheap way of checking that (or even an expensive way) 馃 Do you know of any?
If a error occures, count the length of the last path and if the length is higher than 260 characters, show a warning to check the longpath setting.
Think this is the fastest and simplest solution.
This can happen in at least 3 more places. How do you differentiate between path actually not existing and path too long though, and then what about path is too long and also does not exist?
Okay thats really difficult馃
Create random cascade tmp path higher 260 , if a raise condition occures, path limit is set
By the way, you can also enable long paths per howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters
I'll close this for now as will not fix, and insteaad encourage people to use the above workaround. If more people run into this we can address it, but considering the ammount of people that reported this/ran into this I consider it not worth the effort just yet.
Most helpful comment
Either change app data folder via the flag or use the pip seeder in the meantime 馃憤