> 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.
If I remove psycopg2, everything works fine. I build my app weekly, and nothing has changed in Python, or egg versions or anything else that I am using. The only change I made was to install psycopg2. > * 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. As I said above, my app has been building perfectly so far. I will try these things for your, to narrow it down, but I am confident that they will all work. > If you Google for the error message, there are someone experimenting the > same problem, eg: > http://bugs.python.org/issue1384175 Which also turned out to be totally unrelated to the random module. -- Raoul Snyman B.Tech Information Technology (Software Engineering) E-Mail: [email protected] Web: http://www.saturnlaboratories.co.za/ Blog: http://blog.saturnlaboratories.co.za/ Mobile: 082 550 3754 Registered Linux User #333298 (http://counter.li.org) -- 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.
