Opened 18 years ago

Closed 17 years ago

Last modified 16 years ago

#11931 closed defect (duplicate)

Python 2.5.1 missing _md5.so

Reported by: jarkko.laiho@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.4
Keywords: python python25 md5 Cc: raimue (Rainer Müller)
Port:

Description

Trying to import hashlib results in the following error:

>>> import hashlib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/lib/python2.5/hashlib.py", line 133, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/opt/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5

Looking into /opt/local/lib/python2.5/lib-dynload, the file _md5.so is indeed missing. _sha256.so and _sha512.so are there, the only two files I recognize to have something to do with hashlib.

Intel iMac Core Duo, Mac OS X 10.4.9, MacPorts 1.440 according to port -v. Just installed it fresh yesterday.

Change History (5)

comment:1 Changed 18 years ago by jarkko.laiho@…

Confirmed the same problem with a PPC Mac Mini, though it's odd that the _sha256.so and _sha512.so modules aren't there either.

comment:2 Changed 18 years ago by jarkko.laiho@…

OK, found out the problem... So there's a recently added separate port for py25-hashlib. Who knew?

In lang/python25/files/patch-setup.py, hashlib is one of the disabled modules, probably due to its openssl dependence.

I wish that information about newly disabled modules was somewhat less "hidden", though. Not everyone browses svn commit messages or thinks to read through the portfiles of all the ports they're about to install (I might, from now on).

This ticket can be closed.

comment:3 Changed 17 years ago by raimue (Rainer Müller)

Cc: raimue@… added

Tickets #11931, #12586, #12369 are duplicates describing the same issue. The resolution is to install py25-hashlib at the moment. As nox suggested we could also move this back into the main python25 port. How should we handle it?

comment:4 Changed 17 years ago by raimue (Rainer Müller)

Resolution: duplicate
Status: newclosed

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.