Convert from svg to wmf.

Bug #1121879 reported by Hauke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned
UniConvertor
New
Undecided
Unassigned

Bug Description

Inscape version 0.48 under Windows XP, 7

For example open svg file from "http://en.wikipedia.org/wiki/File:Rubik%27s_cube.svg"

and try to save as *.wmf

At Windows XP this error occurs:

UniConvertor failed:

Traceback (most recent call last):

  File "E:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 1305, in Load

    xml_reader.parse(input_source)

  File "E:\Programme\Inkscape\python\Lib\xml\sax\expatreader.py", line 107, in parse

    xmlreader.IncrementalParser.parse(self, source)

  File "E:\Programme\Inkscape\python\Lib\xml\sax\xmlreader.py", line 125, in parse

    self.close()

  File "E:\Programme\Inkscape\python\Lib\xml\sax\expatreader.py", line 218, in close

    self._cont_handler.endDocument()

  File "E:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 559, in endDocument

    self.parseElements(element)

  File "E:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 579, in parseElements

    getattr(self, method)(attrs)

  File "E:\Programme\Inkscape\python\lib\site-packages\sk1libs\filters\import\svgloader.py", line 426, in start_radialGradient

    fx=atof(attrs['fx'])

  File "E:\Programme\Inkscape\python\Lib\xml\sax\xmlreader.py", line 316, in __getitem__

    return self._attrs[name]

KeyError: 'fx'

Traceback (most recent call last):

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

  File "E:\Programme\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 95, in uniconv_run

    doc = load.load_drawing(input_file)

  File "E:\Programme\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 377, in load_drawing

    return load_drawing_from_file(file, filename)

  File "E:\Programme\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: 'fx'

At Windows 7:
Phyton crashs and error message:
UniConvertor failed:

Revision history for this message
Hauke (hd-wree) wrote :
su_v (suv-lp)
tags: added: exporting uniconvertor
removed: svg svg2wmf to win32
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape trunk revision 12119.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Upstream report with same error message:
<http://sk1project.org/forum/viewthread.php?thread_id=182>

Revision history for this message
su_v (suv-lp) wrote :

On OS X 10.7.4, with UniConvertor 1.1.5, I get a different traceback (attached)

Revision history for this message
su_v (suv-lp) wrote :

The error about the gradient I get on OS X has been mentioned earlier, e.g. in bug #695702, and is tracked for Inkscape in bug #655289.

Revision history for this message
Beluga (buovjaga) wrote :

No problem converting.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
jazzynico (jazzynico) wrote :

Fixed in Inkscape 0.91. Inkscape now uses internal filters to handle WMF and EMF files.

Changed in inkscape:
milestone: none → 0.91
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.