Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Deprecation warnings pop-up #17

Open
dan-oak opened this issue Nov 6, 2020 · 0 comments
Open

Deprecation warnings pop-up #17

dan-oak opened this issue Nov 6, 2020 · 0 comments

Comments

@dan-oak
Copy link

dan-oak commented Nov 6, 2020

Inkscape 1.0 (4035a4fb49, 2020-05-01)

I get a warning window while adding centered guides to page. While the result is successful every time and I'm quite happy with the extension, the window pops up every time:

guidetools_add_centered_guides.py:59: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('--target',
guidetools_add_centered_guides.py:121: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
  effect.affect()
guidetools_add_centered_guides.py:77: DeprecationWarning: Effect.unittouu is now a method in the svg document. Use `self.svg.unittouu(str)` instead.
  canvas_width  = self.unittouu(svg.get('width'))
guidetools_add_centered_guides.py:78: DeprecationWarning: Effect.unittouu is now a method in the svg document. Use `self.svg.unittouu(str)` instead.
  canvas_height = self.unittouu(svg.attrib['height'])
C:\Users\Shmuser\AppData\Roaming\inkscape\extensions\guidetools.py:26: DeprecationWarning: inkex.etree was removed, use "from lxml import etree"
  inkex.etree.SubElement(parent,'{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}guide',{'position':positionString,'orientation':orientationString})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant