[Python-bugs-list] [ python-Bugs-782752 ] ImportError: cannot import name __all__

SourceForge.net noreply@sourceforge.net
Wed, 06 Aug 2003 00:23:19 -0700


Bugs item #782752, was opened at 2003-08-04 14:07
Message generated for change (Comment added) made by ikruusa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=782752&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Indrek Kruusa (ikruusa)
Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError: cannot import name __all__

Initial Comment:
in module fnmatch.py:
from sre import __all__

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

>Comment By: Indrek Kruusa (ikruusa)
Date: 2003-08-06 10:23

Message:
Logged In: YES 
user_id=835078

I found a reason for this anomaly and all others too with my
Python 2.3- before compiling I did 'export OPT=$CFLAGS' and
among other things my CFLAGS contained also '-fomit-frame
pointer -malign-double'. With these the 'make test' will
fail right at the beginning. (platform - RH 9.0, gcc 3.2.2).
Sorry if this case about CFLAGS is in FAQ or in manual
somewhere :)

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-08-04 21:02

Message:
Logged In: YES 
user_id=33168

The only "from sre import __all__" is in re.py, not
fnmatch.py.  If this is failing it is probably because
Modules/sre.c failed to compile.  You can try starting
python with -v to see more about imports.

There's not enough information to know what's going on. 
What platform is this on?  Did sre.c compile?

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

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