Py2exe - Pmw WindowsError: [Error 3]

I am trying to create my own standalone executable using Py2exe. I imported the Pmw class. When I run stanalone excutable, I get this error:

Traceback (most recent call last): File "----.py", line 9, in <module> File "zipextimporter.pyc", line 82, in load_module File "Pmw\__init__.pyc", line 28, in <module> WindowsError: [Error 3] The system cannot find the path specified:'C:\\Users\\Administrator\\PycharmProjects\\---\\dist\\-----_pmw.exe\\Pmw/*.*' 

I was looking for this error, but I could not find any solution for it. Why am I getting this trace error? .

+5
source share
1 answer

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

+1
source

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


All Articles