File "Pmw\__...">

Why am I getting this trace 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 an error after compiling a python file into an executable using py2exe.

Does anyone know why I am getting this error?

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

+1
source share
2 answers

Well, the error message states that the path was not found, and if you look at the path, you seem to have mixed up the backslash and slashes as path separators. How do you build the path you use?

+1
source

Finally, I found a solution:

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

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

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

0
source

Source: https://habr.com/ru/post/1216546/


All Articles