zipimport IOError reading in Mac standalone app

Bob Swerdlow swerdlow at
Mon Mar 7 20:13:46 CET 2005

We have some users of our application getting error messages like:
    IOError: zipimport: can not open file 
This only happens on our Mac version - the Windows version seems fine.

Our build is still using bundlebuilder, which creates  I want 
to upgrade to py2app, but have not yet done so (we are using py2exe for the 
Windows version).

Only a few (7) of our users have had these IOError problems other users are 
running fine.  The errors they were all either:
    in shelve.__init__
    in encodings/
    or in the import to one of our own modules.

When I look into the file, I see
    and our own module's pyo file

So, I don't understand why we get these zipimport IOErrors.

The application launches more than one process that uses the embedded python 
(we started using the new subprocess module in this release).  Could that be 
a problem?  Could it be that more than one process is trying to read at the same time?  If so, what do we do - I don't want to have 
to include a separate version of the code for each subprocess.

Any other suggestion?  I need this fixed ASAP.

Many thanks,

More information about the Python-list mailing list