Save As Html 5 Canvas fails with [Type?] error in ink2canvas.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hi,
I am trying to save a drawing containing text on a circle as an HTML 5 Canvas with Inkscape 0.91. This fails with the following error:
Traceback (most recent call last):
File "ink2canvas.py", line 89, in <module>
ink.affect()
File "C:\Program Files\Inkscape\
self.effect()
File "ink2canvas.py", line 84, in effect
self.
File "ink2canvas.py", line 75, in walk_tree
self.
File "ink2canvas.py", line 74, in walk_tree
elem.draw()
File "C:\Program Files\Inkscape\
text = self.text_
File "C:\Program Files\Inkscape\
return ts.text + self.text_
TypeError: coercing to Unicode: need string or buffer, NoneType found
The issue can be reproduced (at least by me) by creating a text object and a circle object and then putting the text on the circle and then trying to save as an HTML Canvas. I have attached a file that exhibits the error.
Apoligies if this is a known issue.
Kind regards, Stefan
Thanks for taking the time to file a report!
The bug can be reproduced on Xubuntu 15.10, Inkscape 0.91 and trunk rev.14741. share/inkscape/ extensions/ inkex.py" , line 284, in affect walk_tree( svg_root) walk_tree( node) share/inkscape/ extensions/ ink2canvas/ svg.py" , line 369, in draw helper( tspan) share/inkscape/ extensions/ ink2canvas/ svg.py" , line 344, in text_helper helper( ts) + ts.tail
With the trunk version, the traceback lines are a bit different:
----
Traceback (most recent call last):
File "ink2canvas.py", line 91, in <module>
ink.affect()
File "/usr/local/
self.effect()
File "ink2canvas.py", line 86, in effect
self.
File "ink2canvas.py", line 77, in walk_tree
self.
File "ink2canvas.py", line 76, in walk_tree
elem.draw()
File "/usr/local/
text = self.text_
File "/usr/local/
return ts.text + self.text_
TypeError: coercing to Unicode: need string or buffer, NoneType found