Results 1 to 4 of 4

Thread: Mercurial fails on one Ubuntu machine but OK elsewhere

  1. #1
    Join Date
    Feb 2007
    Beans
    239
    Distro
    Ubuntu

    Mercurial fails on one Ubuntu machine but OK elsewhere

    The command: hg clone https://cs371d-pj1.googlecode.com/hg/ cs371d-pj1

    I've installed, re-installed, purged and installed but whenever I run the above command I get:
    Code:
    ** unknown exception encountered, details follow
    ** report bug details to http://www.selenic.com/mercurial/bts
    ** or mercurial@selenic.com
    ** Mercurial Distributed SCM (version 1.1.2)
    ** Extensions loaded: 
    Traceback (most recent call last):
      File "/usr/bin/hg", line 20, in <module>
        mercurial.dispatch.run()
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 20, in run
        sys.exit(dispatch(sys.argv[1:]))
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 29, in dispatch
        return _runcatch(u, args)
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 45, in _runcatch
        return _dispatch(ui, args)
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 367, in _dispatch
        ret = _runcommand(ui, options, cmd, d)
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 416, in _runcommand
        return checkargs()
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 376, in checkargs
        return cmdfunc()
      File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 361, in <lambda>
        d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
      File "/var/lib/python-support/python2.6/mercurial/util.py", line 715, in check
        return func(*args, **kwargs)
      File "/var/lib/python-support/python2.6/mercurial/commands.py", line 595, in clone
        update=not opts.get('noupdate'))
      File "/var/lib/python-support/python2.6/mercurial/hg.py", line 120, in clone
        src_repo = repository(ui, source)
      File "/var/lib/python-support/python2.6/mercurial/hg.py", line 61, in repository
        repo = _lookup(path).instance(ui, path, create)
      File "/var/lib/python-support/python2.6/mercurial/httprepo.py", line 234, in instance
        inst.between([(nullid, nullid)])
      File "/var/lib/python-support/python2.6/mercurial/httprepo.py", line 155, in between
        d = self.do_read("between", pairs=n)
      File "/var/lib/python-support/python2.6/mercurial/httprepo.py", line 119, in do_read
        fp = self.do_cmd(cmd, **args)
      File "/var/lib/python-support/python2.6/mercurial/httprepo.py", line 95, in do_cmd
        proto = resp.headers['content-type']
      File "/usr/lib/python2.6/rfc822.py", line 388, in __getitem__
        return self.dict[name.lower()]
    KeyError: 'content-type'
    When I run the same command on other Ubuntu boxes it works fine.

  2. #2
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Mercurial fails on one Ubuntu machine but OK elsewhere

    Are you sure the URL is correct? AFAICT, there is no repo there, and no project with that name.

    OTOH, Mercurial shouldn't crash and burn like that, even if there is no repo. What version of Mercurial are you using?
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

  3. #3
    Join Date
    Feb 2007
    Beans
    239
    Distro
    Ubuntu

    Re: Mercurial fails on one Ubuntu machine but OK elsewhere

    It's working now. It looks like after purging Mercurial, restarting the system and then reinstalling fixed it.

    Should be unnecessary, but perhaps some files were in use preventing the reinstall to replace all files?

  4. #4
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Mercurial fails on one Ubuntu machine but OK elsewhere

    Quote Originally Posted by AncientPC View Post
    Should be unnecessary, but perhaps some files were in use preventing the reinstall to replace all files?
    Maybe. I saw that on my system the mercurial files listed in the stack trace were in /var/lib, and were all symlinks. I don't know why that is or how they are handled on install/reconfigure/remove. But I do know that for regular files on a Unix system, they can be replaced even if they're in use. Any programs that have the files open will keep the old version, and any programs that open the file after the replacement will get the new version.
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •