Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13402 closed defect (wontfix)

iso-codes needs py25-hashlib

Reported by: tim.stoop@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.5.2
Keywords: iso-codes md5 hashlib Cc:
Port:

Description

In my setup, iso-codes failed to build with the following error:

Traceback (most recent call last):
  File "./iso3166tab.py", line 11, in <module>
    import sys, os, getopt, urllib2
  File "/opt/local/lib/python2.5/urllib2.py", line 88, in <module>
    import hashlib
  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
make[2]: *** [iso_3166.tab] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

This was solved by installing py25-hashlib. I suggest making iso-codes depend on py25-hashlib. Made the priority high, since it makes the package unbuildable.

Change History (2)

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

Milestone: MacPorts base bugsPort Bugs
Resolution: wontfix
Status: newclosed

This is only a problem with python 2.5, because hashlib is no longer in the main package. Unfortunately this can't be solved easily, since iso-codes does not depend on a specific version of python.

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.