Reputation: 21
I packaged a Windows application developped in python. For the setup, no problem. When launching it up on my PC (let's say PC1), no problem. But when trying to launch it on another PC (let's say PC2), an error message shows up indicating to read the MYAPPLICATION.exe.log file. There s 1 error (only 1), here are the lines of the log :
File "MYAPPLICATION.pyc", line 9, in
File "psycopg2__init__.pyc", line 50, in
File "psycopg2_psycopg.pyc", line 12, in
File "psycopg2_psycopg.pyc", line 10, in __load
ImportError: DLL load failed: The specified procedure could not be found.
Indications about my way of packaging :
So why does the psycog2 module import fails here ? Thanks.
Upvotes: 2
Views: 688
Reputation: 1
"There are 2 DLLs that are required by pyscopg.pyd (secur32.dll & shfolder.dll) that are OS dependent." Removing them should do the trick. I got this solution from here: http://psycopg.initd.narkive.com/FX7WIxE6/import-error-using-psycopg2-with-py2exe
Upvotes: 0