[PyInstaller 1.5-rc2, Python 2.7.1]
Hi,
I have a simple template (myscript.py) that imports a - also simple -
module called msgbox.py.
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.')"
winsys is defined in msgbox.py like this:
# WinSys[1]
try:
from winsys import dialogs
except ImportError:
pass
else:
def winsys(title, message):
dialogs.info_dialog(title, message)
available['WinSys'] = winsys
#
When I comment out this part, myscript.exe runs fine.
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?
Like in...
if called_via_myscript.py:
import_winsys_and_create_function
elif called_via_pyinstaller_myscript.exe:
pass
Thorsten
[1] http://timgolden.me.uk/python/winsys/index.html
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.