crashes with ValueError on gnome-cpu-frequency-applet.svg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scour |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I run scour on that SVG, I get a crash:
scour 0.25
Copyright Jeff Schiller, Louis Simard, 2010
Traceback (most recent call last):
File "/usr/bin/scour", line 2933, in <module>
out_string = scourString(
File "/usr/bin/scour", line 2588, in scourString
doc = xml.dom.
File "/usr/lib/
return expatbuilder.
File "/usr/lib/
return builder.
File "/usr/lib/
parser.
File "/usr/lib/
self.
File "/usr/lib/
uri, localname, prefix, qname = _parse_
File "/usr/lib/
uri, localname = parts
ValueError: too many values to unpack
The SVG is shipped in the gnome-applets-data package, but I attach it here for reference.
Thanks!
This is an exception that's being thrown by the xml.dom Python package, and it has to do with the input file having a space in an URL-typed attribute:
3: <svg inkscape. sourceforge. net/DTD/ s odipodi-0.dtd"
4: xmlns:s="http://
URLs can't have spaces, per RFC 3986 <http:// www.rfc- editor. org/rfc/ rfc3986. txt>
As a workaround for your problem with the file, you may run this command and retry Scour:
sed -i 's/s odipodi- 0/sodipodi- 0/g' /path/to/ gnome-cpu- frequency- applet. svg