zipimport IOError reading Modules.zip in Mac standalone app
swerdlow at maine.rr.com
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 Modules.zip. I want
to upgrade to py2app, but have not yet done so (we are using py2exe for the
Only a few (7) of our users have had these IOError problems other users are
running fine. The errors they were all either:
or in the import to one of our own modules.
When I look into the Modules.zip 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
Modules.zip 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.
More information about the Python-list