[MacPorts] #23765: Incomplete Python 2.6 installation (Snow leopard)

MacPorts noreply at macports.org
Thu Feb 18 08:14:28 PST 2010


#23765: Incomplete Python 2.6 installation (Snow leopard)
--------------------------------------+-------------------------------------
 Reporter:  gilles.lenfant@…          |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  Normal                    |   Milestone:                                       
Component:  ports                     |     Version:  1.8.2                                
 Keywords:                            |        Port:                                       
--------------------------------------+-------------------------------------
 Hi,

 Python 2.6 comes with an incomplete standard library. "hashlib" is not
 usable. As a consequence, I cannot install "mercurial". As I'm a MacPorts
 newbie, perhaps I missed something, but MacPorts is supposed to manage
 such dependencies.

 {{{
 glenfant at bidule:~
 $ sudo port install python26
 --->  Computing dependencies for python26
 --->  Cleaning python26

 glenfant at bidule:~
 $ python2.6
 Python 2.6.4 (r264:75706, Feb 16 2010, 02:42:21)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import hashlib
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   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
 >>>

 }}}

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


More information about the macports-tickets mailing list