[issue2335] installer error: hg 1.6.2 not finding hgext

Tod Olson bugs at mercurial.selenic.com
Tue Aug 17 22:28:06 UTC 2010


New submission from Tod Olson <tod at uchicago.edu>:

Every time I invoke hg 1.6.2 on my Mac (10.6.4), hg spits out the following 
message:

*** failed to import extension hgk from 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/hgext/hgk.py: [Errno 2] No such file or directory

hg 1.6.2 was installed from the Mac OS X installer downloaded from 
selenic.com, which says:

	This is an OS X 10.6 version of Mercurial that depends on the 
default Python 2.6 installation

There is no Python 2.4 on this machine.  The default Python is 2.6.1, yet hg 
1.6.2 is looking for one of its own packages under a Python 2.4 location.  
Nothing in my environment sets PYTHONPATH; in fact, env | grep -i python is 
empty.

I do notice that /Library/Frameworks/Python.framework/Versions/Current/bin 
was in my $PATH, but this entry was an ancient artifact and that framework 
dir doesn't exist.  (Nor does that PATH entry refer specifically to Python 
2.4.)  Removing this directory from PATH does not fix the problem.

Any ideas why hg is looking for hgext in the wrong place and how to fix?

----------
messages: 13375
nosy: tod
priority: bug
status: unread
title: installer error: hg 1.6.2 not finding hgext

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2335>
____________________________________________________


More information about the Mercurial-devel mailing list