#8489: ImportError from missing _md5 gets swallowed
---------------------------+------------------------------------------------
 Reporter:  jfedor         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 I encountered this problem on Mac OS X 10.4 using Python 2.5 from
 !MacPorts and have seen it confusing other people on mailing lists.

 If I install the Python package from !MacPorts but forget the py25-hashlib
 package, importing hashlib fails, but the error message for that is not
 printed because !ImportError is being cought in
 source:django/trunk/django/db/__init__.py. The user is stuck with a
 confusing message of "!ImportError: No module named base" or similar
 (depending on the DB backend).

 I suggest catching !ImportError in
 source:django/trunk/django/utils/hashcompat.py and reraising it as
 !ImproperlyConfigured.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8489>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to