473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

zipimport IOError reading Modules.zip in Mac standalone app

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.

Many thanks,
Bob
Jul 18 '05 #1
1 2257
In article <KJ*******************@twister.nyroc.rr.com>,
"Bob Swerdlow" <sw******@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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ruben | last post by:
I am reading a large text file a chunk at a time using the readlines(buffer_size) statement. I get an IOERROR ERRNO 32 Broken Pipe command when I "pipe" the output to MYSQL database using the...
2
by: Nigel King | last post by:
I have a problem with the logging module. It reports a Broken Pipe error after outputing to the log file occasionally (5%). This does not appear to happen on Mac OSX using current finked python...
1
by: Gabriele *Darkbard* Farina | last post by:
Hi, I have a zip file structured like this: mymodule.zip\ module1.py submodule\ submodule1.py I tried to load submodule.submodule1 using this pice of code:
51
by: Reinhold Birkenfeld | last post by:
Hello, at the moment python-dev is discussing including Jason Orendorff's path module into the standard library. Do you have any other good and valued Python modules that you would think are...
7
by: Lauren Quantrell | last post by:
At running the risk of asking how big is too big... Is there a rule of thumb or a best practice that says I may have too many modules? I currently have a Access2K app with about 30 code modules,...
2
by: Gabriel Genellina | last post by:
Hi I'm using Python 2.4.2 on Windows 98 SE. In a program with several threads, sometimes (I cant determine exactly when or why) one thread dies with the following traceback: 12/13/05...
1
by: hzgt9b | last post by:
(FYI, using VB .NET 2003) Can someone help me with this... I'm trying to read in an XML file... it appears to work in that the DataSet ReadXML method dose not fail and then I am able to access the...
0
by: Astan Chee | last post by:
Hi everyone, I currently have a problem with reading one of my files. Normally I'd read files like so: overf = 'C:\\overf' my_overf = open(overf,'r') contents = my_overf.readlines()...
7
by: Marco | last post by:
Hello,every one, I meet a question: in my old script, I usually use os.popen2() to get info from standard unix(LinuX) program like ps,ifconfig... Now, I write a OO-based programme, I still use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.