[issue172] ValueError: unsupported format character '-' (0x2d) at index 9

Ed Avis at Labix Tracker tracker at labix.org
Sat Jun 17 15:04:34 PDT 2006


Ed Avis <ed at membled.com> added the comment:

Here's another example of the same crash, with a somewhat different call stack:

Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 46, in run
    Interpreter(self._ctrl).cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 195, in onecmd
    return Cmd.onecmd(self, line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 516, in do_commit
    if self._ctrl.commitTransaction(transaction):
  File "/usr/lib/python2.4/site-packages/smart/control.py", line 464, in
commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
  File "/usr/lib/python2.4/site-packages/smart/control.py", line 518, in
commitChangeSet
    pmclass().commit(pmcs, pkgpaths)
  File "/usr/lib/python2.4/site-packages/smart/backends/rpm/pm.py", line 206, in
commit
    probs = ts.run(cb, None)
  File "/usr/lib/python2.4/site-packages/smart/backends/rpm/pm.py", line 295, in
__call__
    self.prog.show()
  File "/usr/lib/python2.4/site-packages/smart/progress.py", line 110, in show
    self.expose(topic, percent, *info)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/progress.py",
line 102, in expose
    out.write(self._topicmaskn % (n, topic))
ValueError: unsupported format character '-' (0x2d) at index 9

This crash now seems to happen every time I try to do 'upgrade' with smart.

----------
status: unread -> chatting

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue172>
_______________________________________



More information about the Smart mailing list