[issue2335] installer error: hg 1.6.2 not finding hgext

Alecs King alecsk at gmail.com
Tue Aug 17 23:08:34 CDT 2010


On Tue, Aug 17, 2010 at 10:28:06PM +0000, Tod Olson wrote:
> 
> 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?

Do you by any chance have some legacy hgrc around?

-- 
Alecs King


More information about the Mercurial-devel mailing list