[Python-bugs-list] [ python-Bugs-681934 ] bundlebuilder/zipimport errors

SourceForge.net noreply@sourceforge.net
Fri, 07 Feb 2003 00:48:27 -0800


Bugs item #681934, was opened at 2003-02-06 22:22
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=681934&group_id=5470

Category: Macintosh
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Robin Dunn (robind)
Assigned to: Just van Rossum (jvr)
Summary: bundlebuilder/zipimport errors

Initial Comment:
While testing the bundlebuilder patch that adds shared
library support I decided to try it with the CVS
version of bundlebuilder.py and was excited to see it
using the new zipimport feature.  However there is a
problem.

In the wxPython package there is a module named
__version__.py that is imported from __init__.py.  Both
correctly have .pyc files placed in Modules.zip under a
wxPython directory, but I get this error when trying to
run the app bundle:

Traceback (most recent call last):
  File
"/usr/local/projects/wx/wxPython/samples/doodle/SuperDoodle.app/Contents/Resources/superdoodle.py",
line 13, in ?
    from wxPython.wx import *
  File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/wxPython/__init__.py",
line 14, in ?
    import __version__
ImportError: No module named __version__

(I assume that the pathnames are as they are (not
reflecting the Modules.zip path) because that is where
the .pyc's are compiled from ???)

If I force USE_ZIPIMPORT=0 in bundlebuilder.py then the
bundle works just fine.

----------------------------------------------------------------------

>Comment By: Just van Rossum (jvr)
Date: 2003-02-07 09:48

Message:
Logged In: YES 
user_id=92689

Yeah, sorry, I found that problem days after 2.3a1 was released when adding zipimport support to bundlebuilder :-/ So I simply fixed it, but there was never a bug report. I wondered back then if I should make one just for documentation purposes, and in hindsight I should've done just that ;-) Let this remark in this one serve that purpose for now. Closing.

----------------------------------------------------------------------

Comment By: Robin Dunn (robind)
Date: 2003-02-07 00:28

Message:
Logged In: YES 
user_id=53955

Yes, I do.  I wondered if it might be a problem with
zipimport rather than bundlebuilder, but didn't seen any
bugs listed that seemed the same. 

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-02-06 23:13

Message:
Logged In: YES 
user_id=92689

You don't happen to run 2.3a1 are you? It's zipimport support is unfortunately severly broken :-( If not, I'll investigate...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=681934&group_id=5470