Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11931 (closed defect: duplicate)

Opened 19 months ago

Last modified 15 months ago

Python 2.5.1 missing _md5.so

Reported by: jarkko.laiho@… Owned by: macports-tickets@…
Priority: High Milestone: Port Bugs
Component: ports Version: 1.4
Keywords: python python25 md5 Cc: raimue@…
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

Changed 19 months 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.

Changed 19 months 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.

Changed 15 months ago by raimue@…

  • 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?

Changed 15 months ago by raimue@…

  • status changed from new to closed
  • resolution set to duplicate
Note: See TracTickets for help on using tickets.