Question: Fwd: Install Problems On Os X With Python From Macports
0
James Casbon • 370 wrote:
Oops, missed the mailing list on this reply...
Date: 2008/9/12
Subject: Re: [galaxy-user] Install problems on OS X with python from
macports
To: Nate Coraor <nate@bx.psu.edu>
2008/9/12 Nate Coraor <nate@bx.psu.edu>:
It's the egg downloader doing md5s on the files. I think there are
two ways hashlib can work, and I think the macports way is to use the
_hashlib c implementation, which goes missing from the path. This is
probably because MacPorts choose to split out hashlib from the base
install.
I can get hashlib from the interactive shell. Is there a way to get a
shell with the galaxy environment?
Here is the traceback. If you read hashlib, it tries to import
_hashlib and if that fails and so it tries to get _md5. The MacPorts
python should have _hashlib but not _md5 (as below). _hashlib cannot
be found with the path for some reason.
Traceback (most recent call last):
File "scramble.py", line 11, in <module>
use_setuptools( download_delay=8, to_dir=scramble_lib )
File "/Users/james/Src/galaxy_dist/scripts/scramble/build/py2.5-macos
x-10.3-i386-ucs2/Cheetah/ez_setup.py",
line 91, in use_setuptools
return do_download()
File "/Users/james/Src/galaxy_dist/scripts/scramble/build/py2.5-macos
x-10.3-i386-ucs2/Cheetah/ez_setup.py",
line 85, in do_download
egg = download_setuptools(version, download_base, to_dir,
download_delay)
File "/Users/james/Src/galaxy_dist/scripts/scramble/build/py2.5-macos
x-10.3-i386-ucs2/Cheetah/ez_setup.py",
line 120, in download_setuptools
import urllib2, shutil
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/urllib2.py",
line 91, in <module>
import hashlib
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/hashlib.py",
line 133, in <module>
md5 = __get_builtin_constructor('md5')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/hashlib.py",
line 60, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
OK I will try these flags out and see what happens.
Thanks for the quick reply,
James