nachdem ich nun mein letztes Projekt soweit fürs erste Fertig gestellt habe, kommen schon die nächsten Probleme, und ich hoffe mal, dass da jemand einen passenden Rat hat.
Diverse Suchen im Netz und auch hier im forum sind natürlich vorausgegangen (gestern 6 Stunden ohne wirkliches Ergebnis).
Ich habe ein Projekt in Arbeit, welches wxPython verwendet, dieses habe ich natürlich per "import wx" eingebunden. Und genau hierdrüber stolpert "etwas". Als solches funktioniert das Projekt auch unter Win einwandfrei, sobald ich aber eine exe daraus erstelle, wird ein Fehler verursacht.
DrWatson meldet immer das gleiche:
Die Uhrzeit und das Datum variieren natürlich entsprechend. ;o)Die Anwendung "" hat einen Programmfehler verursacht. Datum und Zeit des Fehlers: 17.02.2009 um 21:53:24.733 Ausnahme: c0000005 an Adresse 01945F25 (<nosymbols>)
Um die Ursache einzuschränken habe ich eine Hallo-Welt mit dem import wx geschrieben, bei der die exe auch stolpert.
Code: Alles auswählen
#!/usr/bin/python
import wx
print 'Hallo Welt'
Verwendete Versionen sind übrigens Python 2.6.1 mit entsprechenden Tools wxPython2.8-win32-unicode-2.8.9.1-py26.exe und dem Pyinstaller 1.3.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 cmd)
W: no module named readline (delayed import by pdb)
W: no module named pwd (delayed, conditional import by posixpath)
W: no module named org (top-level import by pickle)
W: no module named sip (top-level import by wx)
W: no module named posix (delayed, conditional import by iu)
W: no module named fcntl (conditional import by subprocess)
W: no module named org (top-level import by copy)
W: no module named _emx_link (conditional import by os)
W: no module named optik.__version__ (top-level import by optparse)
W: no module named fcntl (top-level import by tempfile)
W: __all__ is built strangely at line 0 - collections (c:\Python26\lib\collections.pyc)
W: delayed exec statement detected at line 0 - collections (c:\Python26\lib\collections.pyc)
W: delayed conditional __import__ hack detected at line 0 - doctest (c:\Python26\lib\doctest.pyc)
W: delayed exec statement detected at line 0 - doctest (c:\Python26\lib\doctest.pyc)
W: delayed conditional __import__ hack detected at line 0 - doctest (c:\Python26\lib\doctest.pyc)
W: delayed __import__ hack detected at line 0 - encodings (c:\Python26\lib\encodings\__init__.pyc)
W: __all__ is built strangely at line 0 - optparse (c:\Python26\pyinstaller-1.3\optparse.pyc)
W: __all__ is built strangely at line 0 - dis (c:\Python26\lib\dis.pyc)
W: delayed eval hack detected at line 0 - os (c:\Python26\lib\os.pyc)
W: __all__ is built strangely at line 0 - __future__ (c:\Python26\lib\__future__.pyc)
W: delayed conditional __import__ hack detected at line 0 - unittest (c:\Python26\lib\unittest.pyc)
W: delayed conditional __import__ hack detected at line 0 - unittest (c:\Python26\lib\unittest.pyc)
W: __all__ is built strangely at line 0 - tokenize (c:\Python26\lib\tokenize.pyc)
W: __all__ is built strangely at line 0 - wx (c:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.pyc)
W: __all__ is built strangely at line 0 - wx (c:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.pyc)
W: delayed exec statement detected at line 0 - bdb (c:\Python26\lib\bdb.pyc)
W: delayed eval hack detected at line 0 - bdb (c:\Python26\lib\bdb.pyc)
W: delayed eval hack detected at line 0 - bdb (c:\Python26\lib\bdb.pyc)
W: delayed __import__ hack detected at line 0 - pickle (c:\Python26\lib\pickle.pyc)
W: delayed __import__ hack detected at line 0 - pickle (c:\Python26\lib\pickle.pyc)
W: delayed conditional exec statement detected at line 0 - iu (c:\Python26\pyinstaller-1.3\iu.pyc)
W: delayed conditional exec statement detected at line 0 - iu (c:\Python26\pyinstaller-1.3\iu.pyc)
W: delayed eval hack detected at line 0 - gettext (c:\Python26\lib\gettext.pyc)
W: delayed __import__ hack detected at line 0 - optik.option_parser (c:\Python26\pyinstaller-1.3\optik\option_parser.pyc)
W: delayed conditional eval hack detected at line 0 - warnings (c:\Python26\lib\warnings.pyc)
W: delayed conditional __import__ hack detected at line 0 - warnings (c:\Python26\lib\warnings.pyc)
W: __all__ is built strangely at line 0 - optik (c:\Python26\pyinstaller-1.3\optik\__init__.pyc)
W: delayed exec statement detected at line 0 - pdb (c:\Python26\lib\pdb.pyc)
W: delayed conditional eval hack detected at line 0 - pdb (c:\Python26\lib\pdb.pyc)
W: delayed eval hack detected at line 0 - pdb (c:\Python26\lib\pdb.pyc)
W: delayed conditional eval hack detected at line 0 - pdb (c:\Python26\lib\pdb.pyc)
W: delayed eval hack detected at line 0 - pdb (c:\Python26\lib\pdb.pyc)
Versionskonflikte oder ähnliche fallen mir zumindest keine auf.
In der Recherche habe ich auch was von Hooks gelesen (keine Ahnung ob das die Ursache ist), jedoch werde ich da aus der Doc nicht schlau. Nach einem Tipp habe ich dann mal ein Hook mit "sip" rein gepackt (Abkopiert von nem anderen Hook), aber auch das hat keine Änderung bewirkt.
Bin ich nun doof, blind oder liegt der Fehler nicht bei mir?