Sto provando a creare il mio eseguibile standalone usando Py2exe. Ho importato la classe Pmw. Quando eseguo l'excutable stanalone, ottengo questo errore:Py2exe - Pmw WindowsError: [Errore 3]
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/*.*'
Ho cercato questo errore, ma non ero in grado di trovare una soluzione ad esso Why do i get this traceback error?. cartella \ Python27 \ lib \ site-packages \ Pmw \ costruire \ lib \ Pmw \ Pmw_1_3 \ bin:
Sembra che ho bisogno di eseguire il bundlepmw.py nella cartella C: \ Python27 \ Lib \ site-packages \ Pmw \ build \ lib \ Pmw \ Pmw_1_3 \ bin seguendo questo comando: python bundlepmw.py C: \ Python27 \ Lib \ site-packages \ Pmw \ Pmw_1_3 \ lib per creare il file Pmw.py e copiare PmwBlt.py e PmwColor.py nella cartella dist. –
Leggi questa pagina: http://folk.uio.no/hpl/scripting/doc/python/Pmw/dynamicloader.html, dopo aver risolto il bundlepmw.py in base a questo link http://sourceforge.net/p/pmw/discussione/33675/thread/f0bd7f34 /, sono stato in grado di generare il file Pmw.py, ma ho ancora questo errore WindowsError: [Errore 3] Il sistema non riesce a trovare il percorso specificato: 'C: \\ Users \\ Administrator \ \ PycharmProjects \\ ... \\ dist \\ ..._ pmw.exe \\ Pmw /*.* ' –
Controlla anche questa pagina: http://stackoverflow.com/questions/6772916/python-pmw-and- cx-freeze. Ho ottenuto il file Pmw.py, ma ho ancora l'errore WindowsError. –