开发者

Why do i get this traceback error?

开发者 https://www.devze.com 2023-03-10 14:23 出处:网络
This is the error i get: Traceback开发者_运维知识库 (most recent call last): File \"dwload.py\", line 9, in <module>

This is the error i get:

Traceback开发者_运维知识库 (most recent call last):
  File "dwload.py", line 9, in <module>
  File "Pmw\__init__.pyc", line 28, in <module>
WindowsError: [Error 3] The system cannot find the path specified: "C:\\Users\\P
'sao\\Desktop\\dist\\library.zip\\Pmw/*.*"

I get the error after compiling the python file into the executable with py2exe.

Does anybody know why i get this error?

Found the solution: http://billyjin.kodingen.com/punbb-1.3.4/viewtopic.php?id=310


Well, the error message says that the path was not found, and if you look at the path, you appear to have mixed up backslashes and slashes as path separators. How are you constructing the path you're using?


I had the same problem when using pyinstaller and tkinter table (py 2.7). The problem was solved by removing the Pwm dependency in the tkintertable lib metadata. Its will help you, if pwm dont used in program


Finally, I found the solution:

First, you need to run the bundlepmw.py in the C:\Python27\Lib\site-packages\Pmw\build\lib\Pmw\Pmw_1_3\bin folder following this command: python bundlepmw.py C:\Python27\Lib\site-packages\Pmw\Pmw_1_3\lib to create the Pmw.py.

Read this page: folk.uio.no/hpl/scripting/doc/python/Pmw/dynamicloader.html, after fixing the bundlepmw.py based on this link sourceforge.net/p/pmw/discussion/33675/thread/f0bd7f34. You should be able to generate the Pmw.py file.

Then copy the Pmw.py plus PmwBlt.py and PmwColor.py into the main script directory and run your setup.py. Sweet

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号