zipimport IOError reading Modules.zip in Mac standalone app
Just
just at xs4all.nl
Mon Mar 7 16:34:39 EST 2005
In article <KJ1Xd.61323$vK5.22269 at twister.nyroc.rr.com>,
"Bob Swerdlow" <swerdlow at maine.rr.com> wrote:
> We have some users of our application getting error messages like:
> IOError: zipimport: can not open file
> /Volumes/MyApp/MyApp.app/Contents/Resources/Modules.zip
> 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
> 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/__init__.py
> or in the import to one of our own modules.
>
> When I look into the Modules.zip file, I see
> shelve.pyo
> encodings/__init__.pyo
> 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.
I've never seen this. You should really upgrade to py2app, and see
whether that helps.
Just
More information about the Python-list
mailing list