py2exe icon resource on win98

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Haim Ashkenazi

    py2exe icon resource on win98

    Hi

    I'm trying to build a binary with py2exe. I've used the method suggested in
    the py2exe wiki about adding icon resources to apps. it build ok on win2k,
    but when I try to build the same on win98 I get this error:

    copying C:\Python23\Lib \site-packages\py2exe \run.exe -> C:\My
    Documents\NS_Ba ckup\dist\NS_Ba ckup.exe
    Traceback (most recent call last):
    File "Setup.py", line 13, in ?
    windows = [
    File "C:\PYTHON23\li b\distutils\cor e.py", line 149, in setup
    dist.run_comman ds()
    File "C:\PYTHON23\li b\distutils\dis t.py", line 907, in run_commands
    self.run_comman d(cmd)
    File "C:\PYTHON23\li b\distutils\dis t.py", line 927, in run_command
    cmd_obj.run()
    File "C:\Python23\Li b\site-packages\py2exe \build_exe.py", line 197, in run
    self.create_bin aries(py_files, extensions, dlls)
    File "C:\Python23\Li b\site-packages\py2exe \build_exe.py", line 391, in
    create_binaries
    arcname, target.script)
    File "C:\Python23\Li b\site-packages\py2exe \build_exe.py", line 577, in
    build_executabl e
    add_icon(unicod e(exe_path), unicode(ico_fil ename), ico_id)
    RuntimeError: MapExistingFile : The handle is invalid

    ----------------------------------
    I've attached my "setup.py".

    anyone has any ideas?

    thanx
    --
    Haim



Working...