Closed roddi closed 14 years ago
forgot to mention: I have python 1.6 installed via mac ports
Did you also install Mercurial from macports? What about setuptools?
Yes, I installed Mercurial from macports.
Installing setuptools(*) doesn't change anything. Maybe hg needs the path for hg-git set explicitly in ~/.hgrc ?
Roddi
(*): $ sudo easy_install setuptools Searching for setuptools Reading http://pypi.python.org/simple/setuptools/ Best match: setuptools 0.6c11 Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086 Processing setuptools-0.6c11-py2.6.egg Moving setuptools-0.6c11-py2.6.egg to /Library/Python/2.6/site-packages Adding setuptools 0.6c11 to easy-install.pth file Installing easy_install script to /usr/local/bin Installing easy_install-2.6 script to /usr/local/bin
Installed /Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg Processing dependencies for setuptools Finished processing dependencies for setuptools
You need to install setuptools from macports as well - I'm assuming you used setuptools to install hg-git? If you used the default system setuptools instead of the one that goes with your MacPorts Python, hg won't find hg-git.
The MacPorts entry is 'py-setuptools', and then after that you should make sure to run the easy_install-2.6 that ends up in /opt/local/bin rather than the system one.
I had this problem too, but when MacPorts decided that python2.4 needed to be downloaded and installed as well instead of using the system one I decided to go the other way and uninstalled the MacPorts version of Mercurial and grabbed the package installer from Mercurial's site. After installing that the problem went away.
*\ failed to import extension hggit: No module named hggit