inkscape-androidvector
inkscape-androidvector copied to clipboard
Export Error
I found this when trying to Export/Save as to Android xml Inkscape 1.0.2

androidvector.py:30: DeprecationWarning: inkex.localize was moved to inkex.localization.localize
inkex.localize()
androidvector.py:309: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
vector.affect()
androidvector.py:110: DeprecationWarning: inkex.unittouu is now a method in the svg document. Use `self.svg.unittouu(str)` instead.
return inkex.unittouu(param)
androidvector.py:63: DeprecationWarning: Effect.uutounit is now a method in the svg document. Use `self.svg.uutounit(value, unit)` instead.
vector.set(_ns('width'), str(self.uutounit(self.__unittouu(width), 'px')) + 'dp')
androidvector.py:64: DeprecationWarning: Effect.uutounit is now a method in the svg document. Use `self.svg.uutounit(value, unit)` instead.
vector.set(_ns('height'), str(self.uutounit(self.__unittouu(height), 'px')) + 'dp')
androidvector.py:168: DeprecationWarning: cubicsuperpath.parsePath -> None
p = csp.parsePath(d)
androidvector.py:174: DeprecationWarning: simpletransform.parseTransform -> Transform(str).matrix
t = st.parseTransform(transform)
androidvector.py:175: DeprecationWarning: simpletransform.applyTransformToPath -> Path(path).transform(mat)
st.applyTransformToPath(t, p)
androidvector.py:187: DeprecationWarning: cubicsuperpath.formatPath -> None
el.set(_ns('pathData'), csp.formatPath(p))
D:\Applications\Inkscape\share\inkscape\extensions\inkex\deprecated-simple\cubicsuperpath.py:41: DeprecationWarning: cubicsuperpath.unCubicSuperPath -> None
return str(paths.Path(unCubicSuperPath(p)))
androidvector.py:196: DeprecationWarning: simplestyle.parseStyle -> dict(inkex.Style.parse_str(s))
style = ss.parseStyle(src.get('style'))
androidvector.py:309: DeprecationWarning: Use `save()` or `save_raw()` instead.
vector.affect()
Traceback (most recent call last):
File "androidvector.py", line 309, in <module>
vector.affect()
File "D:\Applications\Inkscape\share\inkscape\extensions\inkex\deprecated.py", line 181, in affect
return self.run(args=args)
File "D:\Applications\Inkscape\share\inkscape\extensions\inkex\base.py", line 140, in run
self.save_raw(self.effect())
File "D:\Applications\Inkscape\share\inkscape\extensions\inkex\deprecated.py", line 198, in save_raw
return getattr(self, 'output')()
File "androidvector.py", line 101, in output
self.etree.write(sys.stdout, pretty_print=True)
File "src/lxml/etree.pyx", line 2057, in lxml.etree._ElementTree.write
File "src/lxml/serializer.pxi", line 758, in lxml.etree._tofilelike
File "src/lxml/etree.pyx", line 318, in lxml.etree._ExceptionContext._raise_if_stored
File "src/lxml/serializer.pxi", line 682, in lxml.etree._FilelikeWriter.write
TypeError: write() argument must be str, not bytes