PDA

View Full Version : Mercurial: Python 2.5 vs. 2.6 problem




T'hain Esh Kelch
Jun 1, 2011, 03:57 PM
I'm trying to get to know Mercurial, so I can start a bit of open source development. But since I'm not very experienced either with programming, Mercurial or Python, I'm quite stuck..

I've installed the newest version of Mercurial, but whenever I try to do anything in the terminal with hg, then I get the same error, as follows:
Event-Horizon:adium1.5 david$ hg diff > myPatch.diff
*** import of extension alias failed: No module named alias
*** import of extension MacOSXKeychain from /Library/Python/2.5/site-packages/hgext/hgkeychain.py failed: [Errno 2] No such file or directory

The Mercurial install is standard, and I have not installed anything else. I've checked that Python 2.6 is installed, and I've also tried installing both Xcode 3 and 4. I'm running OSX 10.6.7.

Any suggestions?



Hansr
Jun 1, 2011, 04:17 PM
Which version of Mercurial? Alias should be deprecated.

Check ~/.hgrc and make sure Alias is commented out under [extensions].

T'hain Esh Kelch
Jun 1, 2011, 04:25 PM
Which version of Mercurial? Alias should be deprecated.
1.8.3.

Check ~/.hgrc and make sure Alias is commented out under [extensions].

[extensions]
alias=
convert=
extdiff=
graphlog=
patchbomb=
record=
MacOSXKeychain=/Library/Python/2.5/site-packages/hgext/hgkeychain.py

[alias]
blame=annotate -u -n
rec=record

By "commented out", do you mean I should delete the line?

Hansr
Jun 1, 2011, 04:30 PM
Either that or just place a # in front of it.

T'hain Esh Kelch
Jun 1, 2011, 04:35 PM
That seems to have fixed it. Thanks for the help.. :)