Error reported while doing a commit
Manjunath Basappa
Manjunath.Basappa at Sun.COM
Tue Mar 25 00:34:18 CDT 2008
Hi,
I am trying to evaluate mercurial for a new project that we are
starting. I have installed it on a Solaris 10 SPARC box. When I do
a commit I get following error.
## Status is ok
bash-3.00$ hg status
A Taj/README_Taj.txt
bash-3.00$
bash-3.00$ hg commit -m 'First commit'
Traceback (most recent call last):
File "/usr/local/bin/hg", line 14, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 20, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 29, in dispatch
return _runcatch(u, args)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 79, in _runcatch
except revlog.RevlogError, inst:
File
"/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line
74, in __getattribute__
self._load()
File
"/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line
46, in _load
mod = _origimport(head, globals, locals)
File "/usr/local/lib/python2.5/site-packages/mercurial/revlog.py",
line 22, in <module>
_sha = sha.new
File
"/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line
74, in __getattribute__
self._load()
File
"/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line
46, in _load
mod = _origimport(head, globals, locals)
File "/usr/local/lib/python2.5/sha.py", line 6, in <module>
from hashlib import sha1 as sha
File
"/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line
99, in _demandimport
mod = _origimport(name, globals, locals)
File "/usr/local/lib/python2.5/hashlib.py", line 133, in <module>
md5 = __get_builtin_constructor('md5')
File "/usr/local/lib/python2.5/hashlib.py", line 60, in
__get_builtin_constructor
import _md5
File
"/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line
83, in _demandimport
return _origimport(name, globals, locals, fromlist)
ImportError: No module named _md5
As you can see commit is trying to load a module _md5 which it does
not locate and hence fails.
What is this due to? I am guessing I may be missing some env setup.
But, it is not very clear from the documentation.
Any help is highly appreciated.
-manjunath
------------------------------------------------
Manjunath H Basappa
Sr Engineering Manager
HPC distro & Solstice Enterprise Manager
Sun Microsystems, Bangalore, India
Ph: +91-80-56927739
Fax: +91-80-22231794
Mobile: +91-9844075189
Email: manjunath.basappa at sun.com
-------------------------------------------------
More information about the Mercurial
mailing list