Note: by adding to the environment "PYTHONIOENCODING": "utf-8", the issue is worked around and everything is fine.
Output of the virtual environment creation
Make sure to run the creation with -vvv --with-traceback:
fail
Traceback (most recent call last):
File "C:\Development\gm-venv\bootstrap_3.12.6-1a8994a\Lib\site-packages\virtualenv\seed\embed\via_app_data\via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "C:\Development\gm-venv\bootstrap_3.12.6-1a8994a\Lib\site-packages\virtualenv\seed\wheels\acquire.py", line 36, in get_wheel
wheel = download_wheel(
^^^^^^^^^^^^^^^
File "C:\Development\gm-venv\bootstrap_3.12.6-1a8994a\Lib\site-packages\virtualenv\seed\wheels\acquire.py", line 77, in download_wheel
result = _find_downloaded_wheel(distribution, version_spec, for_py_version, to_folder, out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Development\gm-venv\bootstrap_3.12.6-1a8994a\Lib\site-packages\virtualenv\seed\wheels\acquire.py", line 83, in _find_downloaded_wheel
for line in out.splitlines():
^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'splitlines'
Issue
At this line:
The tool
virtualenv
is launchingpip
as a child process:utf-8
pip
may have a different opinion as the encoding is system dependent.When
pip
runs and there are some non-asci characters with his traces we may have failures leading toout
being set toNone
.Environment
Provide at least:
Just bare Python embed for Windows:
pip
is at version24.2
Very very important to reproduce this issue:
The command which is failing:
Note: by adding to the environment
"PYTHONIOENCODING": "utf-8"
, the issue is worked around and everything is fine.Output of the virtual environment creation
Make sure to run the creation with
-vvv --with-traceback
: