Skip to content
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

0.26 is broken on Windows (fails to initialize the random number generator) #52

Closed
mgedmin opened this issue Nov 2, 2015 · 1 comment
Labels

Comments

@mgedmin
Copy link
Owner

mgedmin commented Nov 2, 2015

When check-manifest 0.26 tries to run python setup.py sdist in a subprocess, it gets this error on Python 2:

WindowsError: [Error -2146893795] Provider DLL failed to initialize correctly

and the equivalent error on Python 3:

Fatal Python error: Failed to initialize Windows random API (CryptoGen)

This is caused by executing the Python subprocess with an empty(ish) environment (commit 396fda8). See http://bugs.python.org/issue20614, https://code.djangoproject.com/ticket/24160 for details.

My Jenkins caught this.

@mgedmin mgedmin added the bug label Nov 2, 2015
@mgedmin
Copy link
Owner Author

mgedmin commented Nov 2, 2015

The fix is to always copy %SYSTEMROOT%.

I see the Django project also copies %PATH%, citing http://bugs.python.org/issue8557.

I think I'd better copy the whole os.environ, overriding just PYTHONPATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant