[python] Kompilace do exe

Ctibor.Plasek Ctibor.Plasek na seznam.cz
Neděle Leden 16 21:02:59 CET 2011


Dobrý den.
Mám takovýto problém s kompilací do exe (nikdy předtím jsem kompilaci nedělal ) :

C:\Python26\Krizovatka\dist\krizovatka.exe:175: RuntimeWarning: use font: MemoryLoadLibrary failed loading pygame\font.pyd
(ImportError: MemoryLoadLibrary failed loading pygame\font.pyd)
Traceback (most recent call last):
  File "krizovatka.py", line 175, in <module>
  File "pygame\__init__.pyc", line 70, in __getattr__
NotImplementedError: font module not available
(ImportError: MemoryLoadLibrary failed loading pygame\font.pyd)

Zkoušel jsem to i přes pygame2exe, ale to mi vyhodilo :

Warning (from warnings module):
  File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 16
    import sets
DeprecationWarning: the sets module is deprecated

Warning (from warnings module):
  File "C:\Python26\lib\distutils\dist.py", line 266
    warnings.warn(msg)
UserWarning: Unknown distribution option: 'dist_dir'
running py2exe
creating C:\Python26\Krizovatka\dist
*** searching for required modules ***
*** parsing results ***
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
writing byte-compilation script 'c:\docume~1\u40868\locals~1\temp\tmpnyydzs.py'
C:\Python26\pythonw.exe -OO c:\docume~1\u40868\locals~1\temp\tmpnyydzs.py

Traceback (most recent call last):
  File "C:/Python26/Krizovatka/setuppygame.py", line 155, in <module>
    BuildExe().run() #Run generation
  File "C:/Python26/Krizovatka/setuppygame.py", line 146, in run
    dist_dir = self.dist_dir
  File "C:\Python26\lib\distutils\core.py", line 169, in setup
    raise SystemExit, "error: " + str(msg)
SystemExit: error: command 'C:\Python26\pythonw.exe' failed with exit status 1

Nepomohl byste mi to někdo zkompilovat a event.vysvětlit chyby? Potřebuji to do školy.
Děkuji Ctibor
------------- další část ---------------
A non-text attachment was scrubbed...
Name: Krizovatka.zip
Type: application/x-zip-compressed
Size: 612668 bytes
Desc: [žádný popis není k dispozici]
URL: <http://www.py.cz/pipermail/python/attachments/20110116/f34dfcee/attachment.bin>


Další informace o konferenci Python