简体   繁体   English

为什么我会收到此回溯错误?

[英]Why do i get this traceback error?

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.使用 py2exe 将 python 文件编译为可执行文件后出现错误。

Does anybody know why i get this error?有人知道我为什么会收到这个错误吗?

Found the solution: http://billyjin.kodingen.com/punbb-1.3.4/viewtopic.php?id=310找到解决方案: http://billyjin.kodingen.com/punbb-1.3.4/viewtopic.php?id=310

I had the same problem when using pyinstaller and tkinter table (py 2.7).我在使用 pyinstaller 和 tkinter 表(py 2.7)时遇到了同样的问题。 The problem was solved by removing the Pwm dependency in the tkintertable lib metadata.通过删除 tkintertable lib 元数据中的 Pwm 依赖项解决了该问题。 Its will help you, if pwm dont used in program如果程序中不使用 pwm,它会帮助你

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?你是如何构建你正在使用的路径的?

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. 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 创建 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.阅读此页面:folk.uio.no/hpl/scripting/doc/python/Pmw/dynamicloader.html,在基于此链接 sourceforge.net/p/pmw/discussion/33675/thread/f0bd7f34 修复 bundlepmw.py 之后。 You should be able to generate the Pmw.py file.您应该能够生成 Pmw.py 文件。

Then copy the Pmw.py plus PmwBlt.py and PmwColor.py into the main script directory and run your setup.py.然后将 Pmw.py 加上 PmwBlt.py 和 PmwColor.py 复制到主脚本目录并运行 setup.py。 Sweet甜的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM