py2exe vs. winPython
Thomas Heller
thomas.heller at ion-tof.com
Wed Oct 9 02:37:02 EDT 2002
"James J. Besemer" <jb at cascade-sys.com> writes:
> The rather trivial script, below, fails pitifully on a windows 98
> system with the following message:
>
>
> findfonts > c:/temp/fontdata
> Traceback (most recent call last):
> File "<string>", line 31, in ?
> pywintypes.api_error: (120, 'OpenThreadToken', 'This function is only valid in Win32 mode.')
>
>
>
> I don't get it. Win98 is win32 based, right? This was supposed to be
> a trivial little, knock-off script for a client to catalog fonts on
> his computers. Far as I understood things, it should just work. It
> DOES work fine on XP and NT 4.0.
>
>
> I need the py2exe functionality, as it's not practical or at all
> desirable for the client to install python on all his machines just to
> gather these statistics.
>
>
> Any and all help will be appreciated.
>
IMO for win95/win98 you have to copy the win32popenWin9x.exe
helper module, it is used to implement the popen() functionality.
Thomas
More information about the Python-list
mailing list