On Tue, 2010-11-23 at 20:38 +0200, Raoul Snyman wrote:
>   File "resources\windows\build\pyi.win32\OpenLP\outPYZ1.pyz/random",
> line 873, in <module>
>   File "resources\windows\build\pyi.win32\OpenLP\outPYZ1.pyz/random",
> line 96, in __init__
>   File "resources\windows\build\pyi.win32\OpenLP\outPYZ1.pyz/random",
> line 110, in seed
> WindowsError: [Error -2146893795] Provider DLL failed to initialize correctly

I don't think it has anything to do with psycopg. The exception happens
in the random module of the standard library (called by tempfile, called
by mimetools, called by httplib, called by urrllib2). At line 110, I see
a urandom() function call, which is basically a call to os.urandom().
os.urandom() is implemented in the C core, and it dynamically loads the
ADVAPI32.DLL library.

Before we going deeper into this issue:

 * Can you confirm that it's the "import random" line that fails? Add it
as the first line of your program (before any other import), repack with
PyInstaller, and see if the generated traceback matches.

 * Can you confirm that you obtain the same exception if you stick a
os.urandom() call at startup in your application? Just add a import os;
os.urandom() call as first thing you do (before any other import), and
repack with PyInstaller.

 * Does it happen to you even if you run PyInstaller against a program
that only does "import os; os.urandom()"? This would mean that it must
be something specific of your system, because usually this works with
PyInstaller of course.

If you Google for the error message, there are someone experimenting the
same problem, eg:
http://bugs.python.org/issue1384175

-- 
Giovanni Bajo   ::  [email protected]
Develer S.r.l.  ::  http://www.develer.com

My Blog: http://giovanni.bajo.it
Last post: Compile-time Function Execution in D

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to