Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Error #3

Open
Morons opened this issue Mar 18, 2021 · 0 comments
Open

Export Error #3

Morons opened this issue Mar 18, 2021 · 0 comments

Comments

@Morons
Copy link

Morons commented Mar 18, 2021

I found this when trying to Export/Save as to Android xml
Inkscape 1.0.2

image

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant