hg fails

Jiang Wei jwhust at gmail.com
Mon Nov 17 05:59:32 UTC 2008


Thanks for reply :-)

My system is RHEL Server 5.2 GA. The mercurial version is v1.0.2.
When i installed it from the source by "make all; make install", the output
likes this:

[root at localhost mercurial-1.0.2]# hg
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 11, in ?
    from mercurial import demandimport; demandimport.enable()
ImportError: No module named mercurial

So I add the mercurial-1.0.2 path to PATH:
# export PATH=/root/mercurial-1.0.2:$PATH

Then the "hg" seems ok. But the "hg debuginstall" still fails:

[root at localhost mercurial-1.0.2]# hg debuginstall
Checking encoding (UTF-8)...
Checking extensions...
 No module named bdiff
 One or more extensions could not be found (check that you compiled the
extensions)
Checking templates...
Checking patch...
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.0.2)
Traceback (most recent call last):
  File "/root/mercurial-1.0.2/hg", line 20, in ?
    mercurial.dispatch.run()
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 29, in dispatch
    return _runcatch(u, args)
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 45, in _runcatch
    return _dispatch(ui, args)
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 364, in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 417, in
_runcommand
    return checkargs()
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 373, in checkargs
    return cmdfunc()
  File "/root/mercurial-1.0.2/mercurial/dispatch.py", line 358, in <lambda>
    d = lambda: func(ui, *args, **cmdoptions)
  File "/root/mercurial-1.0.2/mercurial/commands.py", line 847, in
debuginstall
    d = mdiff.unidiff(a, None, b, None, os.path.basename(fa),
  File "/root/mercurial-1.0.2/mercurial/demandimport.py", line 74, in
__getattribute__
    self._load()
  File "/root/mercurial-1.0.2/mercurial/demandimport.py", line 46, in _load
    mod = _origimport(head, globals, locals)
  File "/root/mercurial-1.0.2/mercurial/mdiff.py", line 258, in ?
    patches = mpatch.patches
  File "/root/mercurial-1.0.2/mercurial/demandimport.py", line 75, in
__getattribute__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'patches'

Did I miss something when installing the mercurial?

Thanks,
Jiang, Wei

2008/11/15 Benoit Boissinot <bboissin at gmail.com>

> On Fri, Nov 14, 2008 at 5:46 AM, Jiang Wei <jwhust at gmail.com> wrote:
> > hi,
> >      when i use mercurial, it ouputs like the following.
> >      could anyone help me out of this problem?
>
> Can you run "hg debuginstall" ?
>
> regards,
>
> Benoit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081117/2219e0fa/attachment-0002.html>


More information about the Mercurial mailing list