* Thorsten Kampe (Tue, 3 May 2011 16:23:00 +0200) > The relevant part of the traceback is: > > Traceback (most recent call last): > [...] > File "[...]\outPYZ1.pyz/winsys.dialogs", line 180, in <module> > File "[...]\outPYZ1.pyz/winsys.dialogs", line 176, in _register_wndclass > File "[...]\outPYZ1.pyz/winsys.exc", line 55, in _wrapped > winsys.dialogs.x_dialogs: (1813, 'LoadIcon', 'The specified resource > type cannot be found in the image file.') > > This seems to be the problematic function in winsys.dialogs: > > def _register_wndclass (): > ur"""Register a simple window with default cursor, icon, etc. > """ > [...] > python_exe = wrapped (win32api.GetModuleHandle, None) > wc.hIcon = wrapped (win32gui.LoadIcon, python_exe, 1) > [...]
Actually it /is/. I commented out "wc.hIcon = wrapped (win32gui.LoadIcon [...]" and I could run the PyInstaller executable. I got a dialog from WinSys without the Python icon in the title bar. Looks like WinSys is dynamically trying to find and extract the Python icon from the Python executable, but is failing if the Python executable is wrapped in the binary PyInstaller archive. Thorsten -- 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.
