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 Albert.Zeyer
Recipients Albert.Zeyer, ajaksu2, georg.brandl, ghazel, loewis, ssb22
Date 2015-08-21.10:01:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440151269.8.0.700775461854.issue1384175@psf.upfronthosting.co.za>
In-reply-to
Content
Note that there are still people who get this error in some strange cases, me included.

E.g.:
http://stackoverflow.com/questions/27904936/python-exe-file-crashes-while-launching-on-windows-xp/32137554#32137554

This happened at a call to `os.urandom` for me.
This was in a subprocess.

The bug for me was that I called `_subprocess.CreateProcess` with an `env_mapper = {'foo': 'bar'}`. The fix:

    env_mapper = os.environ.copy()
    env_mapper.update({'foo': 'bar'})

There is another related question [here](http://stackoverflow.com/questions/21791005/windows-error-provider-dll-failed-to-initialize-correctly-on-import-of-cgi-mo).
And some discussion on [this GitHub issue](https://github.com/aws/aws-cli/issues/1226).
All those seem to be related to `crypt32.dll` in a frozen Python app, or via py2app.
History
Date User Action Args
2015-08-21 10:01:09Albert.Zeyersetrecipients: + Albert.Zeyer, loewis, georg.brandl, ghazel, ajaksu2, ssb22
2015-08-21 10:01:09Albert.Zeyersetmessageid: <1440151269.8.0.700775461854.issue1384175@psf.upfronthosting.co.za>
2015-08-21 10:01:09Albert.Zeyerlinkissue1384175 messages
2015-08-21 10:01:09Albert.Zeyercreate