Synfig export error

Bug #1614111 reported by mio75 on 2016-08-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Unassigned

Bug Description

Traceback (most recent call last):
  File "synfig_output.py", line 1344, in <module>
    e.affect(output=False)
  File "/usr/share/inkscape/extensions/inkex.py", line 265, in affect
    self.getposinlayer()
  File "/usr/share/inkscape/extensions/inkex.py", line 207, in getposinlayer
    x = self.unittouu( xattr[0] + 'px' )
  File "/usr/share/inkscape/extensions/inkex.py", line 351, in unittouu
    return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
  File "/usr/share/inkscape/extensions/inkex.py", line 304, in getDocumentUnit
    p = param.match(svgwidth)
TypeError: expected string or buffer

mio75 (mio75) wrote :
mio75 (mio75) wrote :

Inkscape 0.91 r
Ubuntu 14.04.5

Workaround: copied the contents into a fresh Inkscape document, then saving as .sif works perfectly.

jazzynico (jazzynico) wrote :

Reproduced on Windows XP (32-bit) with 0.91 (same error message) and 0.92, with a different message:

---
Traceback (most recent call last):
  File "synfig_output.py", line 1344, in <module>
    e.affect(output=False)
  File "d:\dev\Inkscape\0.92.x\inkscape\share\extensions\inkex.py", line 283, in affect
    self.effect()
  File "synfig_output.py", line 1053, in effect
    SynfigPrep.effect(self)
  File "d:\dev\Inkscape\0.92.x\inkscape\share\extensions\synfig_prepare.py", line 483, in effect
    propagate_attribs(self.document.getroot())
  File "d:\dev\Inkscape\0.92.x\inkscape\share\extensions\synfig_prepare.py", line 383, in propagate_attribs
    dw = get_dimension(node.get("width", vw))
  File "d:\dev\Inkscape\0.92.x\inkscape\share\extensions\synfig_prepare.py", line 455, in get_dimension
    elif s[-1] == "%":
TypeError: 'float' object has no attribute '__getitem__'
----

Related to bug #1463623 "Error trying to save Optimized SVG (no 'width' attribute for SVGRoot)"?

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
tags: added: extensions-plugins
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers