Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Warning shown #5

Open
kumy opened this issue Jul 29, 2020 · 1 comment
Open

Warning shown #5

kumy opened this issue Jul 29, 2020 · 1 comment

Comments

@kumy
Copy link

kumy commented Jul 29, 2020

Just installed this plugin on Inkscape 1.0 (4035a4fb49, 2020-05-01) and got those warnings.

$ inkscape --version
Inkscape 1.0 (4035a4fb49, 2020-05-01)
    Pango version: 1.44.7

$ python3 --version
Python 3.8.5

$ cat /etc/issue
Ubuntu Groovy Gorilla (development branch) \n \l
qrcode.py:26: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  from ._segno import encoder, utils
qrcode.py:44: 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('--data', action='store',
qrcode.py:46: 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('--version', action='store',
qrcode.py:48: 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('--scale', action='store',
qrcode.py:50: 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('--error', action='store',
qrcode.py:52: 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('--symbol_count', action='store',
qrcode.py:55: 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('--background', action='store',
qrcode.py:57: 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('--allow_micro', action='store',
qrcode.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('--boost_error', action='store',
qrcode.py:128: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
  e.affect()
qrcode.py:83: DeprecationWarning: Effect.view_center is now a method in the svg. Use `self.svg.namedview.center` instead.
  centre = tuple(computePointInNode(list(self.view_center), self.current_layer))
qrcode.py:83: DeprecationWarning: Effect.current_layer is now a method in the svg. Use `self.svg.get_current_layer()` instead.
  centre = tuple(computePointInNode(list(self.view_center), self.current_layer))
qrcode.py:83: DeprecationWarning: simpletransform.computePointInNode -> (-Transform(node.transform * mat)).apply_to_point(pt)
  centre = tuple(computePointInNode(list(self.view_center), self.current_layer))
qrcode.py:87: DeprecationWarning: inkex.etree was removed, use "from lxml import etree"
  grp = inkex.etree.SubElement(self.current_layer, inkex.addNS('g', 'svg'),
qrcode.py:87: DeprecationWarning: Effect.current_layer is now a method in the svg. Use `self.svg.get_current_layer()` instead.
  grp = inkex.etree.SubElement(self.current_layer, inkex.addNS('g', 'svg'),
qrcode.py:100: DeprecationWarning: inkex.etree was removed, use "from lxml import etree"
  inkex.etree.SubElement(g, inkex.addNS('path', 'svg'), d=path_data,

Screenshot from 2020-07-29 13-36-37

@heuer
Copy link
Owner

heuer commented Jul 29, 2020

Thanks for the hint.

The code is somewhat out of date and not actively maintained. I wonder if the project still makes sense, as far as I know Inkscape now has better support for QR codes than a few years ago.

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

2 participants