Am 03.05.2011 14:09, schrieb Thorsten Kampe:
When I run the PyInstaller created single file executable (myscript.exe), I get the following error: "winsys.dialogs.x_dialogs: (1813, 'LoadIcon', 'The specified resource type cannot be found in the image file.')"
This seams to be a problem of the winsys parts.
How can I start troubleshooting? Is there a way to skip the WinSys import and winsys function in msgbox.py if called from the PyInstaller executable myscript.exe?
Change your snippet into:
import sys
if not sys.frozen:
try:
from winsys import dialogs
def winsys(title, message):
dialogs.info_dialog(title, message)
available['WinSys'] = winsys
except ImportError:
pass
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult mit Mitglied bei http://www.7-it.de
smime.p7s
Description: S/MIME Cryptographic Signature
