Why do i get this traceback error?

被刻印的时光 ゝ 提交于 2019-12-31 07:02:09

问题


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


回答1:


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?




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/6235282/why-do-i-get-this-traceback-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!