[wxPython] py2exe: W2K --> W98??

I used python2.0 and the appropriate version of py2exe to create an exe on a
W2K machine and distributed the files that end up in the dist directory to
another W2K machine, where it executed with no problems. The W2K machine did
not have any version of Python installed.

When I sent it to a W98 machine, the program started to run, but after a few
successful print statements it bombed with the message below.

    File "<string>", line 301, in ?
  WindowsError: [Errno 2] The system cannot find the file specified

My script is contained in a single file that has a call to os.popen on line
301, with no explicit call to string on that line. The string module is
imported and used elsewhere in the program.

It is possible that the W98 machine has Python 1.51 installed in the
standard fashion.

I noticed some messages about "DLL Hell" being fixed in NT in the archive of
this list server. I am wondering if py2exe has difficulties in making the
hyperspace jump from W2K to W98. How about W95, W3.1, and W/Me?

Thanks in advance.

Wes Rishel
Research Director
Gartner Research, Healthcare
Alameda, CA
510 522 8135
wes.rishel@gartner.com
For client Inquiries: 203 316 1288
indapps@gartner.com
Don't miss Gartner Symposium/ITxpo 2001 * October 8-12 * Orlando, Florida,
USA
Details at http://www.gartner.com/symposium

When I sent it to a W98 machine, the program started to run, but after a

few

successful print statements it bombed with the message below.

  File "<string>", line 301, in ?
WindowsError: [Errno 2] The system cannot find the file specified

My script is contained in a single file that has a call to os.popen on

line

301, with no explicit call to string on that line. The string module is
imported and used elsewhere in the program.

The "<string>" above doesn't refer to the string module, but is the name of
the "file" that line 301 is in. Since py2exe is compiling your main module
from a string and not loading or importing from a file then "<string>" is
written to the bytecode as the filename.

The error is probably because the program you are trying to popen does not
exist.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!