[issue2069] AttributeError: 'ui' object has no attribute 'progress'

stm bugs at mercurial.selenic.com
Wed Mar 3 17:17:49 UTC 2010


New submission from stm <stm_ at users.sourceforge.net>:

After installing hgsubversion (changeset:   579:21a389e4d8b5) on an ubuntu
(karmic) system, cloning failed with the error message below. Removing the
calls to ui.progress in wrappers.py seems to fix the problem. I'm using svn
and the python bindings from ubuntu, that is python 2.6.4, swig 1.3.36, svn
1.6.5. Not sure if I forgot to install anything or if its a problem with the
newer versions.


$ hg clone
https://magellan-client.svn.sourceforge.net/svnroot/magellan-client/
magellan-svnclone
[r1] None: New repository initialized by cvs2svn.
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3.1)
** Extensions loaded: hgk, rebase, svn
Traceback (most recent call last):
  File "/usr/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 27, in
dispatch
    return _runcatch(u, args)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 43, in
_runcatch
    return _dispatch(ui, args)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 449, in
_dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 317, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 501, in
_runcommand
    return checkargs()
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 454, in
checkargs
    return cmdfunc()
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 448, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 402, in check
    return func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/mercurial/extensions.py", line 103, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 402, in check
    return func(*args, **kwargs)
  File "/home/steffen/hgsubversion/hgsubversion/wrappers.py", line 404, in clone
    update=not opts.get('noupdate'))
  File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 286, in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
  File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line 2177, in
clone
    return self.pull(remote, heads)
  File "/home/steffen/hgsubversion/hgsubversion/svnrepo.py", line 43, in wrapper
    return fn(self, *args, **opts)
  File "/home/steffen/hgsubversion/hgsubversion/svnrepo.py", line 57, in pull
    return wrappers.pull(self, remote, heads, force)
  File "/home/steffen/hgsubversion/hgsubversion/wrappers.py", line 288, in pull
    ui.progress('pull', cnt, total=total)
AttributeError: 'ui' object has no attribute 'progress'

----------
messages: 11914
nosy: stm
priority: bug
status: unread
title: AttributeError: 'ui' object has no attribute 'progress'

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2069>
____________________________________________________


More information about the Mercurial-devel mailing list