Comment 0 for bug 695702

Revision history for this message
Urop (urop) wrote : Error when saving as WMV

OS: Win XP, SP3

I'm trying to save a simple SVG file with a gradient (attached) as WMV. When I do so I get a zero byte file and an error message. I have tried with the 0.48 stable and the latest development release (R9984) and get the same error. The error message is as follows. (I've replaced the install directory by "{INSTALL DIR}":

------------------------------------------
UniConvertor failed:

Traceback (most recent call last):

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 1305, in Load

    xml_reader.parse(input_source)

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\Lib\xml\sax\expatreader.py", line 107, in parse

    xmlreader.IncrementalParser.parse(self, source)

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\Lib\xml\sax\xmlreader.py", line 125, in parse

    self.close()

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\Lib\xml\sax\expatreader.py", line 218, in close

    self._cont_handler.endDocument()

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 559, in endDocument

    self.parseElements(element)

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 586, in parseElements

    getattr(self, method)()

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 420, in stop_linearGradient

    self.gradients[self.current_gradient]=MultiGradient(self.stops)

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\uniconvertor\app\Graphics\gradient.py", line 43, in __init__

    raise ValueError, 'at least 2 colors required'

ValueError: at least 2 colors required

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 95, in uniconv_run

    doc = load.load_drawing(input_file)

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 377, in load_drawing

    return load_drawing_from_file(file, filename)

  File "{INSTALL DIR}\inkscape_R9983-1012261236\inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 354, in load_drawing_from_file

    raise SketchLoadError(_("Parsing error: ")+ str(value))

app.events.skexceptions.SketchLoadError: Parsing error: at least 2 colors required
------------------------------------------

This bug may well be the same as or related to bug #420979.