export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig load python, openssl, sqlite3, tc_tkl extensions setuptools-0.6c11-py2.6.egg --------------------------- sudo sh setuptools-0.6c11-py2.6.egg [--allow-hosts=None] Traceback (most recent call last): File "", line 1, in File "/usr/src/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 21, in File "/usr/src/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 2, in File "/usr/local/lib/python2.6/urllib2.py", line 91, in import hashlib File "/usr/local/lib/python2.6/hashlib.py", line 136, in md5 = __get_builtin_constructor('md5') File "/usr/local/lib/python2.6/hashlib.py", line 63, in __get_builtin_constructor import _md5 ImportError: No module named _md5 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 "", line 1, in 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 }}}