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

MacPorts noreply at macports.org
Thu Apr 30 06:42:28 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:4 blb@…]:
 > Hmm, perhaps the build didn't properly link to OpenSSL; what is the
 result of running the following two commands?
 > {{{
 > $ python2.6 -c 'import _hashlib;print dir(_hashlib)'
 > $ port installed openssl
 > }}}

 {{{
 $ python2.6 -c 'import _hashlib;print dir(_hashlib)'
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/_hashlib.so, 2): Library not loaded:
 /opt/local/lib/libssl.1.0.0.dylib
   Referenced from:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/_hashlib.so
   Reason: image not found
 $ port installed openssl
 The following ports are currently installed:
   openssl @0.9.8k_0 (active)
 $ ls /opt/local/lib/libssl.*
 /opt/local/lib/libssl.0.9.8.dylib       /opt/local/lib/libssl.a
 /opt/local/lib/libssl.dylib
 }}}

 So I reinstalled python26 and now this works properly.  My problems with
 ssl.1.0.0 were reported in another ticket
 (http://trac.macports.org/ticket/19124).

 Now:

 {{{
 >>> import md5;
 __main__:1: DeprecationWarning: the md5 module is deprecated; use hashlib
 instead
 }}}

 It does work now.  So I basically had you debug my machine :(  Sorry about
 that.

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


More information about the macports-tickets mailing list