[issue172] ValueError: unsupported format character '-' (0x2d) at index 9
Ed Avis at Labix Tracker
tracker at labix.org
Sun Jun 11 08:26:35 PDT 2006
New submission from Ed Avis <ed at membled.com>:
A few times when using smart to install or upgrade packages, in cases where it
first downloads the package and then tries to install it, smart crashes with a
'ValueError: unsupported format character'. Here is an example:
# smart install libmad-devel
Loading cache...
( 0%)
[100%]
Computing transaction...
Installed packages (2):
132.7kB of package files are needed. 207.7kB will be used.
Confirm changes? (Y/n): y
Fetching packages...
-> http://dl.atrpms.net/.../libmad-devel-0.15.1b-2.rhfc5.at.i386.rpm
( 0%)
(Stalled - 45%)
[ 50%]
-> http://dl.atrpms.net/.../libmad0-0.15.1b-2.rhfc5.at.i386.rpm
[100%]
Committing transaction...
( 0%)
[ 0%]
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/interface.py", line 53, in run
result = _command.main(self._ctrl, opts)
File "/usr/lib/python2.4/site-packages/smart/commands/install.py", line 173,
in main
ctrl.commitTransaction(trans, confirm=confirm)
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
# smart --version
smart 0.41
I think others have had the same problem, see
<http://article.gmane.org/gmane.linux.redhat.rpm.atrpms.general/4195/>.
----------
messages: 526
nosy: ed
priority: bug
project: smart
status: unread
title: ValueError: unsupported format character '-' (0x2d) at index 9
_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue172>
_______________________________________
More information about the Smart
mailing list