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 eryksun
Recipients Laurent Dufrechou, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-01-10.03:06:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
0xC0000409 (3221226505) is STATUS_STACK_BUFFER_OVERRUN due to the CRT calling __fastfail(FAST_FAIL_FATAL_APP_EXIT) in abort(). This is expected behavior in Windows 8+ [1].

Initially I couldn't reproduce this error because Python found the standard library from the system Python via the registry. After archiving (as .reg) and removing the key "HKLM\SOFTWARE\Python\PythonCore\3.5", I reproduced the problem as follows:

    C:\Temp>myenv\Scripts\python.exe -Im ensurepip --upgrade --default-pip
    Fatal Python error: Py_Initialize: unable to load the file system codec
    ImportError: No module named 'encodings'

    Current thread 0x00000b9c (most recent call first):

venv didn't copy over to the Scripts directory. I don't know whether there's ever a legitimate reason to look for and copy a zipped standard library, or whether venv is only supported for use with a standard Python installation.

I don't recommend doing this, but if you create the environment --without-pip, the command 'succeeds'. Then you'll have to manually copy to Scripts and obtain activate.bat (edit this) and deactivate.bat from another install or the web. You still won't have ensurepip. If you want pip and setuptools, use from the web. This is all probably more trouble than you want. However, the embedding distribution is not intended to be a full Python installation that's suitable for development.

Date User Action Args
2016-01-10 03:06:14eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Laurent Dufrechou
2016-01-10 03:06:13eryksunsetmessageid: <>
2016-01-10 03:06:13eryksunlinkissue26065 messages
2016-01-10 03:06:11eryksuncreate