Error when building & installing hg from sources

Olavi Ourson ourson77 at googlemail.com
Thu Apr 2 13:45:03 CDT 2009


Hi,

I'm trying to install hg from a copy I've pulled from 
http://selenic.com/repo/hg. It gives the following when error message:

[ourson77 at localhost hg]$ python setup.py  install --prefix=$HOME/Programs
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version b2c18c795622)
** Extensions loaded:
Traceback (most recent call last):
  File "hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/opt/wrk/hg/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/opt/wrk/hg/mercurial/dispatch.py", line 25, in dispatch
    return _runcatch(u, args)
  File "/opt/wrk/hg/mercurial/dispatch.py", line 41, in _runcatch
    return _dispatch(ui, args)
  File "/opt/wrk/hg/mercurial/dispatch.py", line 372, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/opt/wrk/hg/mercurial/dispatch.py", line 247, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/opt/wrk/hg/mercurial/dispatch.py", line 417, in _runcommand
    return checkargs()
  File "/opt/wrk/hg/mercurial/dispatch.py", line 377, in checkargs
    return cmdfunc()
  File "/opt/wrk/hg/mercurial/dispatch.py", line 371, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/opt/wrk/hg/mercurial/util.py", line 702, in check
    return func(*args, **kwargs)
  File "/opt/wrk/hg/mercurial/commands.py", line 1560, in identify
    parents = ctx.parents()
  File "/opt/wrk/hg/mercurial/context.py", line 108, in parents
    return self._parents
  File "/opt/wrk/hg/mercurial/context.py", line 17, in __get__
    result = self.func(obj)
  File "/opt/wrk/hg/mercurial/context.py", line 557, in _parents
    self._parents = [changectx(self._repo, x) for x in p]
  File "/opt/wrk/hg/mercurial/context.py", line 33, in __init__
    self._node = self._repo.lookup(changeid)
  File "/opt/wrk/hg/mercurial/localrepo.py", line 480, in lookup
    n = self.changelog._match(key)
  File "/opt/wrk/hg/mercurial/localrepo.py", line 90, in __getattr__
    self.changelog = changelog.changelog(self.sopener)
  File "/opt/wrk/hg/mercurial/changelog.py", line 79, in __init__
    revlog.revlog.__init__(self, opener, "00changelog.i")
  File "/opt/wrk/hg/mercurial/revlog.py", line 463, in __init__
    d = self._io.parseindex(f, self._inline)
  File "/opt/wrk/hg/mercurial/revlog.py", line 379, in parseindex
    index, nodemap, cache = parsers.parse_index(data, inline)
  File "/opt/wrk/hg/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/opt/wrk/hg/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/opt/wrk/hg/mercurial/pure/parsers.py", line 15, in <module>
    _sha = util.sha1
  File "/opt/wrk/hg/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/opt/wrk/hg/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/opt/wrk/hg/mercurial/util.py", line 1069, in <module>
    class atomictempfile(posixfile):
NameError: name 'posixfile' is not defined
running install
running build
running build_py
running build_ext
running build_scripts
running build_mo
running install_lib
running install_scripts
changing mode of /home/ourson77/Programs/bin/hg to 775
running install_data
running install_egg_info
Removing 
/home/ourson77/Programs/lib/python2.5/site-packages/mercurial-unknown-py2.5.egg-info
Writing 
/home/ourson77/Programs/lib/python2.5/site-packages/mercurial-unknown-py2.5.egg-info

-O


More information about the Mercurial mailing list