I have a user of a frozen wxpython app that gets the appended screenshot.
The error message is \"Windows Error: provider DLL failed to initialize correctly\"
I think the minimal solution is to include the SYSTEMROOT
environment variable in the Python subprocess.
I have seen the problem when trying to load os.urandom
:
self._authkey = AuthenticationString(os.urandom(32))
WindowsError: [Error -2146893795] Provider DLL failed to initialize correctly
It turns out that the _PyOS_URandom
on Windows relies on the SYSTEMROOT
environment to be set. See: http://bugs.python.org/issue1384175#msg248951 for a detailed explaination