[issue2250] Mercurial and Enthought Python Distribution on Mac
mike
bugs at mercurial.selenic.com
Thu Jun 24 21:39:31 UTC 2010
New submission from mike <ajabberwok at gmail.com>:
Is there a way to get Mercurial working with the Enthought Python
Distribution on Mac?
Mercurial by default installs in
/Library/Python/2.6/site-packages/
but Enthought I think sets variables so that it doesn't look there.
There appears to be a directory here,
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/
but doing a simple
$ mv /Library/Python/2.6/site-packages/mercurial
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/
$ mv
/Library/Python/2.6/site-packages/mercurial-1.5.4_20100601-py2.6.egg-info/
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/
Does not make it work:
$ hg
Traceback (most recent call last):
File "/usr/local/bin/hg", line 25, in <module>
mercurial.util.set_binary(fp)
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
75, in __getattribute__
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
47, in _load
File "/Library/Python/2.6/site-packages/mercurial/util.py", line 16, in
<module>
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
106, in _demandimport
File "/Library/Python/2.6/site-packages/mercurial/i18n.py", line 23, in
<module>
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/gettext.py", line
465, in translation
mofiles = find(domain, localedir, languages, all=1)
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/gettext.py", line
437, in find
for nelang in _expand_lang(lang):
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/gettext.py", line
131, in _expand_lang
from locale import normalize
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
85, in _demandimport
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/locale.py",
line 98, in <module>
@functools.wraps(_localeconv)
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
75, in __getattribute__
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
47, in _load
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/functools.py",
line 10, in <module>
from _functools import partial, reduce
File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
106, in _demandimport
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/lib-dynload/_functools.so,
2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/lib-dynload/_functools.so: mach-o, but wrong architecture
----------
messages: 12894
nosy: ajabberwok
priority: wish
status: unread
title: Mercurial and Enthought Python Distribution on Mac
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2250>
____________________________________________________
More information about the Mercurial-devel
mailing list