inkscape-guide-tools icon indicating copy to clipboard operation
inkscape-guide-tools copied to clipboard

Deprecation warnings pop-up

Open dan-oak opened this issue 4 years ago • 0 comments

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})

dan-oak avatar Nov 06 '20 06:11 dan-oak