wxpython und PythonCard erstellte Dateien mit Pyinstaller

Plattformunabhängige GUIs mit wxWidgets.
Antworten
Cyberx ix
User
Beiträge: 8
Registriert: Donnerstag 5. März 2009, 15:26

Kann gut sein, dass ich mich ein wenig dusselig anstelle, aber ich frage jetzt einfach mal hier (nach stundenlangem suchen).

Ich bin gerade erst dabei mit pyton anzufangen. Ich habe ein paar kleine Testprogramme geschrieben und würde diese gerne mit PyInstaller verpacken. Ich kann auch schon einzelne .py Dateien verpacken. Aber mein kleines Programm besteht aus einer .py und einer.rsrc.py. Wie bekomme ich es so hin, das PyInstaller diese Datei auch mit nimmt?
sea-live
User
Beiträge: 440
Registriert: Montag 18. Februar 2008, 12:24
Wohnort: RP

wenn du py2exe nimmst kannst du im script die zusätzlichen dateien angeben die ins archiv mitwandern
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Hallo Cyberx ix, willkommen im Forum,

Eine weitere Frage ist wozu du deine Skripte so packen willst?
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
Cyberx ix
User
Beiträge: 8
Registriert: Donnerstag 5. März 2009, 15:26

Eigentlich nur des Versuchs willen. (Austesten was ich hinkrieg) Und weil ich es einem Freund geben will, der dafür Verwendung hat. Ich habe jetzt raus bekommen, dass man die .rsrc dateinen auch in den eigentlichen script mit einbinden kann. Also habe ich dieses Problem gelöst. Nur jetzt habe ich ein neues. Die .exe funktioniert nicht, weil (so steht es in der warning.txt)module fehen.
W: no module named org (delayed import by xml.sax)
W: no module named gdbm (top-level import by anydbm)
W: no module named _pybsddb (conditional import by bsddb.db)
W: no module named pwd (delayed, conditional import by posixpath)
W: no module named org (top-level import by pickle)
W: no module named dbm (top-level import by anydbm)
W: no module named fcntl (conditional import by subprocess)
W: no module named optik.__version__ (top-level import by optparse)
W: no module named pwd (delayed import by webbrowser)
W: no module named java (conditional import by xml.sax._exceptions)
W: no module named Image (top-level import by PythonCard.graphic)
W: no module named readline (delayed import by pdb)
W: no module named pwd (delayed import by getpass)
W: no module named posix (delayed, conditional import by iu)
W: no module named EasyDialogs (conditional import by getpass)
W: no module named termios (top-level import by getpass)
W: no module named org (top-level import by copy)
W: no module named fcntl (top-level import by tempfile)
W: no module named dbm (top-level import by whichdb)
W: no module named readline (delayed, conditional import by cmd)
W: no module named _pybsddb (conditional import by bsddb)
W: no module named win32api (delayed import by iu)
W: no module named xmlparse (top-level import by pyexpat)
W: no module named xmltok (top-level import by pyexpat)
W: no module named ic (delayed import by urllib)
W: no module named bsddb3 (conditional import by bsddb)
W: no module named ic (top-level import by webbrowser)
W: no module named _emx_link (conditional import by os)
W: no module named posix (conditional import by os)
W: no module named optik.__all__ (top-level import by optparse)
W: no module named readline (delayed, conditional import by code)
W: no module named rourl2path (conditional import by urllib)
W: no module named wxPython.wx (conditional import by PythonCard.model)
W: no module named SOCKS (top-level import by ftplib)
W: no module named _xmlplus (top-level import by xml)
W: no module named Carbon (conditional import by tempfile)
W: delayed exec statement detected at line 0 - code (C:\Programme\Python25\lib\code.pyc)
W: delayed conditional eval hack detected at line 0 - PythonCard.STCStyleEditor (C:\Programme\Python25\lib\site-packages\PythonCard\STCStyleEditor.pyc)
W: delayed eval hack detected at line 0 - PythonCard.STCStyleEditor (C:\Programme\Python25\lib\site-packages\PythonCard\STCStyleEditor.pyc)
W: delayed __import__ hack detected at line 0 - PythonCard.resource (C:\Programme\Python25\lib\site-packages\PythonCard\resource.pyc)
W: delayed conditional __import__ hack detected at line 0 - PythonCard.resource (C:\Programme\Python25\lib\site-packages\PythonCard\resource.pyc)
W: delayed exec statement detected at line 0 - bdb (C:\Programme\Python25\lib\bdb.pyc)
W: delayed eval hack detected at line 0 - bdb (C:\Programme\Python25\lib\bdb.pyc)
W: delayed eval hack detected at line 0 - bdb (C:\Programme\Python25\lib\bdb.pyc)
W: __all__ is built strangely at line 0 - optparse (C:\Programme\Python25\pyinstaller-1.3\optparse.pyc)
W: __all__ is built strangely at line 0 - tokenize (C:\Programme\Python25\lib\tokenize.pyc)
W: delayed conditional __import__ hack detected at line 0 - anydbm (C:\Programme\Python25\lib\anydbm.pyc)
W: delayed __import__ hack detected at line 0 - pickle (C:\Programme\Python25\lib\pickle.pyc)
W: delayed __import__ hack detected at line 0 - pickle (C:\Programme\Python25\lib\pickle.pyc)
W: delayed conditional eval hack detected at line 0 - dumbdbm (C:\Programme\Python25\lib\dumbdbm.pyc)
W: delayed conditional eval hack detected at line 0 - PythonCard.model (C:\Programme\Python25\lib\site-packages\PythonCard\model.pyc)
W: delayed eval hack detected at line 0 - PythonCard.model (C:\Programme\Python25\lib\site-packages\PythonCard\model.pyc)
W: delayed eval hack detected at line 0 - PythonCard.model (C:\Programme\Python25\lib\site-packages\PythonCard\model.pyc)
W: delayed conditional eval hack detected at line 0 - gopherlib (C:\Programme\Python25\lib\gopherlib.pyc)
W: delayed conditional __import__ hack detected at line 0 - doctest (C:\Programme\Python25\lib\doctest.pyc)
W: delayed exec statement detected at line 0 - doctest (C:\Programme\Python25\lib\doctest.pyc)
W: delayed eval hack detected at line 0 - PythonCard.util (C:\Programme\Python25\lib\site-packages\PythonCard\util.pyc)
W: delayed __import__ hack detected at line 0 - encodings (C:\Programme\Python25\lib\encodings\__init__.pyc)
W: __all__ is built strangely at line 0 - dis (C:\Programme\Python25\lib\dis.pyc)
W: delayed conditional eval hack detected at line 0 - PythonCard.debug (C:\Programme\Python25\lib\site-packages\PythonCard\debug.pyc)
W: delayed conditional eval hack detected at line 0 - PythonCard.debug (C:\Programme\Python25\lib\site-packages\PythonCard\debug.pyc)
W: delayed conditional eval hack detected at line 0 - warnings (C:\Programme\Python25\lib\warnings.pyc)
W: delayed conditional __import__ hack detected at line 0 - warnings (C:\Programme\Python25\lib\warnings.pyc)
W: delayed conditional eval hack detected at line 0 - wx.py.introspect (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\py\introspect.pyc)
W: delayed conditional eval hack detected at line 0 - wx.py.introspect (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\py\introspect.pyc)
W: delayed conditional eval hack detected at line 0 - wx.py.introspect (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\py\introspect.pyc)
W: delayed conditional eval hack detected at line 0 - wx.py.introspect (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\py\introspect.pyc)
W: delayed eval hack detected at line 0 - wx.lib.layoutf (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\layoutf.pyc)
W: delayed __import__ hack detected at line 0 - email (C:\Programme\Python25\lib\email\__init__.pyc)
W: __all__ is built strangely at line 0 - wx (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.pyc)
W: __all__ is built strangely at line 0 - wx (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.pyc)
W: delayed exec statement detected at line 0 - pdb (C:\Programme\Python25\lib\pdb.pyc)
W: delayed conditional eval hack detected at line 0 - pdb (C:\Programme\Python25\lib\pdb.pyc)
W: delayed eval hack detected at line 0 - pdb (C:\Programme\Python25\lib\pdb.pyc)
W: delayed conditional eval hack detected at line 0 - pdb (C:\Programme\Python25\lib\pdb.pyc)
W: delayed eval hack detected at line 0 - pdb (C:\Programme\Python25\lib\pdb.pyc)
W: delayed conditional __import__ hack detected at line 0 - unittest (C:\Programme\Python25\lib\unittest.pyc)
W: delayed conditional __import__ hack detected at line 0 - unittest (C:\Programme\Python25\lib\unittest.pyc)
W: delayed exec statement detected at line 0 - wx.py.buffer (C:\Programme\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\py\buffer.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Programme\Python25\pyinstaller-1.3\iu.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Programme\Python25\pyinstaller-1.3\iu.pyc)
W: delayed __import__ hack detected at line 0 - optik.option_parser (C:\Programme\Python25\pyinstaller-1.3\optik\option_parser.pyc)
W: __all__ is built strangely at line 0 - optik (C:\Programme\Python25\pyinstaller-1.3\optik\__init__.pyc)
W: delayed exec statement detected at line 0 - socket (C:\Programme\Python25\lib\socket.pyc)
W: delayed eval hack detected at line 0 - os (C:\Programme\Python25\lib\os.pyc)
W: __all__ is built strangely at line 0 - __future__ (C:\Programme\Python25\lib\__future__.pyc)
W: delayed __import__ hack detected at line 0 - xml.sax (C:\Programme\Python25\lib\xml\sax\__init__.pyc)
W: delayed eval hack detected at line 0 - gettext (C:\Programme\Python25\lib\gettext.pyc)
W: top-level conditional exec statement detected at line 0 - bsddb (C:\Programme\Python25\lib\bsddb\__init__.pyc)
W: delayed __import__ hack detected at line 0 - PythonCard.registry (C:\Programme\Python25\lib\site-packages\PythonCard\registry.pyc)
W: delayed conditional exec statement detected at line 0 - PythonCard.log (C:\Programme\Python25\lib\site-packages\PythonCard\log.pyc)
W: delayed conditional exec statement detected at line 0 - PythonCard.log (C:\Programme\Python25\lib\site-packages\PythonCard\log.pyc)
Cyberx ix
User
Beiträge: 8
Registriert: Donnerstag 5. März 2009, 15:26

Am Ende wars doch am einfachsten auf dem anderen Rechner auch wxPython und PythonCard zu installieren.
Antworten