This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author schwaerz
Recipients paul.moore, schwaerz, steve.dower, tim.golden, zach.ware
Date 2021-07-05.15:51:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625500261.64.0.225547269039.issue44567@roundup.psfhosted.org>
In-reply-to
Content
When trying to create a venv from within a long path name in Windows 10 (long paths enabled in the registry), python crashes. Used python 3.9.6.

When reducing the path length by one character, it starts working.
When disabling the long path support in Windows, I get an error message about paths being too long.

btw.: I can see same / similar behavior when using virtualenv/pipenv/poetry (did not try any other venv-like tooling...)

For the instructions please check the following snippet:

d:\slave\workspace\1--folder-with-232-character-absolute-path-length----------------------------------------------------------------------------------------------------------------------------------------------------------------232>python -m venv .venv
Error: Command '['d:\\slave\\workspace\\1--folder-with-232-character-absolute-path-length----------------------------------------------------------------------------------------------------------------------------------------------------------------232\\.venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3221226505.

%Errorlevel% sometimes was 1 and sometimes was -1073740791 (0xc0000409). Unfortunately I cannot recalled what I had to do to get the latter one... I tried with python 3.8.0, too. Same behavior.
History
Date User Action Args
2021-07-05 15:51:01schwaerzsetrecipients: + schwaerz, paul.moore, tim.golden, zach.ware, steve.dower
2021-07-05 15:51:01schwaerzsetmessageid: <1625500261.64.0.225547269039.issue44567@roundup.psfhosted.org>
2021-07-05 15:51:01schwaerzlinkissue44567 messages
2021-07-05 15:51:01schwaerzcreate