[英]python error ImportError: DLL load failed: The specified procedure could not be found. File “psycopg2\_psycopg.pyc”, line 10, in __load
I packaged a Windows application developped in python. 我打包了一个用python开发的Windows应用程序。 For the setup, no problem. 对于设置,没有问题。 When launching it up on my PC (let's say PC1), no problem. 在我的PC(比如PC1)上启动它时,没问题。 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. 但是,当尝试在另一台PC(例如PC2)上启动它时,将显示一条错误消息,指示已读取MYAPPLICATION.exe.log文件。 There s 1 error (only 1), here are the lines of the log : 有1个错误(只有1个),这是日志行:
File "MYAPPLICATION.pyc", line 9, in 在第9行的文件“ MYAPPLICATION.pyc”
File "psycopg2__init__.pyc", line 50, in 在第50行中输入“ psycopg2__init __。pyc”文件
File "psycopg2_psycopg.pyc", line 12, in 在第12行的文件“ psycopg2_psycopg.pyc”
File "psycopg2_psycopg.pyc", line 10, in __load __load中的文件“ psycopg2_psycopg.pyc”,第10行
ImportError: DLL load failed: The specified procedure could not be found. ImportError:DLL加载失败:找不到指定的过程。
Indications about my way of packaging : 关于我的包装方式的说明:
So why does the psycog2 module import fails here ? 那么,为什么在这里psycog2模块导入失败? Thanks. 谢谢。
"There are 2 DLLs that are required by pyscopg.pyd (secur32.dll & shfolder.dll) that are OS dependent." “ pyscopg.pyd(secur32.dll&shfolder.dll)需要2个与操作系统相关的DLL。” Removing them should do the trick. 删除它们应该可以解决问题。 I got this solution from here: http://psycopg.initd.narkive.com/FX7WIxE6/import-error-using-psycopg2-with-py2exe 我从这里得到了这个解决方案: http : //psycopg.initd.narkive.com/FX7WIxE6/import-error-using-psycopg2-with-py2exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.