error on export with scour

Bug #783726 reported by shaddim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scour
New
Undecided
Unassigned

Bug Description

with inscape developers build from 1.may scour 0.25

scouring fails with an utf8 error after successful import and rendering with inkscpae
http://upload.wikimedia.org/wikipedia/de/2/2c/Tool_logo_2006.svg

Revision history for this message
jazzynico (jazzynico) wrote :

Duplicate of Bug #499257 (saves svg file, that it can't read afterwards)?
Very likely an issue with Inkscape, not Scour.

Revision history for this message
shaddim (shaddim) wrote :

error:

Traceback (most recent call last):

  File "scour.inkscape.py", line 77, in <module>

    e.affect(output=False)

  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 223, in affect

    self.parse()

  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 151, in parse

    self.document = etree.parse(stream)

  File "lxml.etree.pyx", line 2692, in lxml.etree.parse (src/lxml/lxml.etree.c:49594)

  File "parser.pxi", line 1522, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71582)

  File "parser.pxi", line 1552, in lxml.etree._parseFilelikeDocument (src/lxml/lxml.etree.c:71892)

  File "parser.pxi", line 1435, in lxml.etree._parseDocFromFilelike (src/lxml/lxml.etree.c:70807)

  File "parser.pxi", line 997, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/lxml.etree.c:67948)

  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)

  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)

  File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64088)

lxml.etree.XMLSyntaxError: Input is not proper UTF-8, indicate encoding !

Bytes: 0xFF 0x27 0x20 0x69, line 71, column 17

plain inkscpae SVG export seems fine, but file is afterward not renderable anymore

Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced with Inkscape 0.48.1, Scour r171 (same lxml error messages).

If you remove the xpacket declaration (line 32 in the original file), the file is correctly exported to inkscape, plain and scoured SVG.

I don't know if it's possible to do something in Scour, but there's definitely a bug in Inkscape's SVG exports.

Revision history for this message
shaddim (shaddim) wrote :

who should forward this bug to inkscpae?

Revision history for this message
jazzynico (jazzynico) wrote :

No need to forward. I've just marked it as duplicate of bug #499257.

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.