[issue11612] xml.dom.minidom fail to parse SVG file.

Campbell Barton report at bugs.python.org
Sun Mar 20 06:47:33 CET 2011

New submission from Campbell Barton <ideasman42 at gmail.com>:

python3.2mu -c "import xml.dom.minidom ; xml.dom.minidom.parse('gnome-cpu-frequency-applet.svg')"

--- gives the following traceback
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.2/xml/dom/minidom.py", line 1939, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python3.2/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python3.2/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
  File "/usr/lib/python3.2/xml/dom/expatbuilder.py", line 354, in first_element_handler
    self.start_element_handler(name, attributes)
  File "/usr/lib/python3.2/xml/dom/expatbuilder.py", line 779, in start_element_handler
    uri, localname, prefix, qname = _parse_ns_name(self, aname)
  File "/usr/lib/python3.2/xml/dom/expatbuilder.py", line 127, in _parse_ns_name
    uri, localname = parts
ValueError: too many values to unpack (expected 2)

components: Extension Modules
files: gnome-cpu-frequency-applet.svg
messages: 131479
nosy: ideasman42
priority: normal
severity: normal
status: open
title: xml.dom.minidom fail to parse SVG file.
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file21302/gnome-cpu-frequency-applet.svg

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list