py2exe icon resource on win98

Thomas Heller theller at python.net
Mon Mar 22 15:38:19 EST 2004


Haim Ashkenazi <haim at babysnakes.org> writes:

> Thomas Heller wrote:
>
>> Haim Ashkenazi <haim at babysnakes.org> writes:
>> 
>>> 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:
>>>
[...]
>>>   File "C:\Python23\Lib\site-packages\py2exe\build_exe.py", line 577, in
>>> build_executable
>>>     add_icon(unicode(exe_path), unicode(ico_filename), ico_id)
>>> RuntimeError: MapExistingFile: The handle is invalid
>>>
>>> ----------------------------------
>>> I've attached my "setup.py".
>>>
>>> anyone has any ideas?
>> 
>> I assume you have unicows.dll installed (this is required on win98), as
>> described in the py2exe webpage.
> of course :)

Well, its better to ask - some people don't read instructions ;-)

>> The build process on win98 is not tested very good, maybe I overlooked
>> something.  Can you build your exe when you comment out all the icon
>> resources?
> yes. without a problem. it's win98 first edition without any updates
> (internet explorer 4). 

It's a bug.  I hope I can fix it before the next release.

Thomas





More information about the Python-list mailing list