[Tutor] icons and py2exe

Jeff Peery jeffpeery at yahoo.com
Thu Aug 26 17:27:16 CEST 2004

hello, I am using py2exe and it seems to be working great. I just tried to add an icon but I get an error message, could someone please offer some advice. My setup code is below. thanks.

setup(windows = [{ 'script': "wxAppEXKalc.py", 'icon_resources': [(0x0004,'horse.bmp')]}], version="1.0",)

here is the error:

  File "C:\Python23\Lib\site-packages\py2exe\build_exe.py", line 395, in create_
    arcname, target.script)
  File "C:\Python23\Lib\site-packages\py2exe\build_exe.py", line 577, in build_e
    add_icon(unicode(exe_path), unicode(ico_filename), ico_id)
RuntimeError: UpdateResource: The parameter is incorrect.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040826/798f1403/attachment.html

More information about the Tutor mailing list