tisn05 / sk1

Automatically exported from code.google.com/p/sk1
Other
0 stars 0 forks source link

Errors converting to WMF (UniConvertor failed) #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
==============================================
What steps will reproduce the problem?
==============================================

1. I'm unable to convert to WMF, using Inkscape or Uniconvertor with the latest 
update.

==============================================
What is the expected output? What do you see instead?
==============================================

SVG to WMF

==============================================
What version of the product are you using? On what operating system?
==============================================

- Windows 7 (Enterprise 32Bits)
- Inkscape 0.48 with the latest update of uniconvertor
- Also tried with Uniconvertor 1.1.5 (after the update has been done that 
suppose fixes this issue)

==============================================
Workaround
==============================================

- Create the file in inkscape
- Save it as ODG extension
- Open it in Open Office Draw
- Export as WMF file
- Import it in the application you want. (Unfurtanelly that application I'm 
using do not support other extension)

==============================================
Additional notes
==============================================

- Attachment added with the file that I tested on

==============================================
Please provide any additional information below.
==============================================

Additional Info from Inkscape

-----------------------------------------------
Inkscape has received additional data from the script executed.  The script did 
not return an error, but this may indicate the results will not be as expected.
-----------------------------------------------

UniConvertor failed:

Traceback (most recent call last):

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 1305, in Load

    xml_reader.parse(input_source)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\xml\sax\expatreader.py", line 107, in parse

    xmlreader.IncrementalParser.parse(self, source)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\xml\sax\xmlreader.py", line 125, in parse

    self.close()

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\xml\sax\expatreader.py", line 218, in close

    self._cont_handler.endDocument()

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 559, in endDocument

    self.parseElements(element)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 579, in parseElements

    getattr(self, method)(attrs)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 1140, in begin_path

    self.parse_attrs(attrs)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 654, in parse_attrs

    self.parse_style(val)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 667, in parse_style

    self.try_add_style(key, val)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 756, in try_add_style

    self.style.font_size = self.user_length(val)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\sk1libs\filters\import\svgloader.py", line 799, in user_length

    return float(str) * factor

ValueError: invalid literal for float(): medium

Traceback (most recent call last):

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

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\uniconvertor\__init__.py", line 95, in uniconv_run

    doc = load.load_drawing(input_file)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\lib\site-packages\uniconvertor\app\io\load.py", line 377, in load_drawing

    return load_drawing_from_file(file, filename)

  File "C:\Program Files\sK1 Project\UniConvertor-1.1.5\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: invalid literal for 
float(): medium

Original issue reported on code.google.com by pablo.es...@gmail.com on 17 Jan 2011 at 9:07

Attachments:

GoogleCodeExporter commented 8 years ago
same here in 0.48.5

Original comment by jimmy.ru...@gmail.com on 22 Nov 2014 at 10:04