[MacPorts] #19461: py26-xml: ImportError: No module named _md5

MacPorts noreply at macports.org
Wed Apr 29 04:18:46 PDT 2009


#19461: py26-xml: ImportError: No module named _md5
-------------------------------------+--------------------------------------
 Reporter:  akim.demaille@…          |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  1.7.1                                
 Keywords:                           |        Port:  py26-xml                             
-------------------------------------+--------------------------------------

Comment(by akim.demaille@…):

 Replying to [comment:1 blb@…]:
 >Note that there is no py26-hashlib as its functionality should be built
 into python26.  Does the following file exist on your install?
 > {{{
 >
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/_hashlib.so
 > }}}

 Yes, it does:

 {{{
 $ ls -l
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/_hashlib.so
 -rwxr-xr-x  2 root  admin  21748 Apr  2 14:20
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/_hashlib.so
 }}}

 But there is no _md5.so, shouldn't there be one?

 I have the same ports as you:

 {{{
 $ port echo active | grep py
 py26-docutils                  @0.5_1
 py26-libxml2                   @2.6.21_0
 py26-xml                       @0.8.4_0
 python26                       @2.6.1_2
 python_select                  @0.2.1_0+darwin_9
 swig                           @1.3.38_0+perl+php5+python+ruby
 xorg-libxcb                    @1.2_0+python26
 xorg-xcb-proto                 @1.4_0+python26
 }}}

 and still the error.

 {{{
 $ python2.6
 Python 2.6.1 (r261:67515, Apr  2 2009, 14:20:17)
 [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from xml.sax import saxexts, saxlib, saxutils
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/_xmlplus/sax/saxutils.py", line 8, in <module>
     import os, urlparse, urllib2, types
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 91, in <module>
     import hashlib
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/hashlib.py",
 line 136, in <module>
     md5 = __get_builtin_constructor('md5')
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/hashlib.py",
 line 63, in __get_builtin_constructor
     import _md5
 ImportError: No module named _md5
 }}}

 I don't know what to look for.  I am no Python programmer, I don't know
 how to ask it its path.

-- 
Ticket URL: <http://trac.macports.org/ticket/19461#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list