This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ImportError: cannot import name __all__
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ikruusa, nnorwitz, terry.reedy
Priority: normal Keywords:

Created on 2003-08-04 11:07 by ikruusa, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (5)
msg17605 - (view) Author: Indrek Kruusa (ikruusa) Date: 2003-08-04 11:07
in module fnmatch.py:
from sre import __all__
msg17606 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-08-04 18:02
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?
msg17607 - (view) Author: Indrek Kruusa (ikruusa) Date: 2003-08-06 07:23
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 :)
msg17608 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2003-08-29 20:41
Logged In: YES 
user_id=593130

If you consider this problem solved, please close the bug 
report.
msg17609 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-08-30 00:43
Logged In: YES 
user_id=33168

Closing this report.  Please re-open if you think there's
something we should do.
History
Date User Action Args
2022-04-10 16:10:27adminsetgithub: 39004
2003-08-04 11:07:54ikruusacreate