-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
python embedded 3.5 amd64 crash when using venv #70253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Install python-3.5.1-embed-amd64 to c:\dev\python-3.5.1-embed-amd64 -> crash Using debugger (VS2015) shows error:
Exception non gérée à 0x00007FFDA1D05A4E (ucrtbase.dll) dans python.exe
And stopping debugger leave this log:
C:\dev\python-3.5.1-embed-amd64>python -m venv C:\dev\python35_x64_rtquickreport
Traceback (most recent call last):
File "runpy.py", line 170, in _run_module_as_main
File "runpy.py", line 85, in _run_code
File "venv\__main__.py", line 6, in <module>
File "venv\__init__.py", line 442, in main
File "venv\__init__.py", line 85, in create
File "venv\__init__.py", line 257, in _setup_pip
File "subprocess.py", line 629, in check_output
File "subprocess.py", line 698, in run
File "subprocess.py", line 1055, in communicate
KeyboardInterrupt |
I can't read those error messages, but I suspect this is because some of the bundled files are omitted from the embeddable package. Using it to run venv isn't really part of the intended use cases - it's expected you'll manually install packages alongside it with your own installer. If that doesn't sound suitable for what you're trying to do, you should use the installers to install Python. |
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:
venv didn't copy over python35.zip 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 python35.zip 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 get-pip.py 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. |
New changeset 84101e587f47 by Steve Dower in branch '3.5': New changeset d3422b0e0cee by Steve Dower in branch 'default': |
I'm declaring using venv from the embeddable distro as unsupported, and it will be removed completely from the next release. To create virtual environments, use a regular install of Python. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: