Problem with extentions
Summary:
... I get an error each and every time I try to use extensions.
Steps to reproduce:
- open Inkscape
- Go to extensions tab
- Select one of them. I picked out Sozi.
- Select video in order to embed a video for presentation.
What happened?
A window pops-up says:
Inkscape has received additional data from the script executed.
the script didn't return an error, but this may indicate the results will not be as expected"
This problem persists with several extensions"Sozi and Jessyink so far"
`sozi_extras_media.py:29: 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('-E', '--element', action = 'store',
sozi_extras_media.py:32: 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('-W', '--width', action = 'store',
sozi_extras_media.py:35: 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('-H', '--height', action = 'store',
sozi_extras_media.py:38: 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('-T', '--type', action = 'store',
sozi_extras_media.py:41: 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('-S', '--src', action = 'store',
sozi_extras_media.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('-A', '--auto', action = 'store',
sozi_extras_media.py:47: 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('-F', '--start-frame', action = 'store',
sozi_extras_media.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('-G', '--stop-frame', action = 'store',
sozi_extras_media.py:53: 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('-L', '--loop', action = 'store',
sozi_extras_media.py:56: 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('-C', '--controls', action = 'store',
sozi_extras_media.py:105: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
effect.affect()
sozi_extras_media.py:67: DeprecationWarning: Effect.selected is now a dict in the svg. Use `self.svg.selected`.
if len(self.selected) != 0:
sozi_extras_media.py:75: DeprecationWarning: inkex.etree was removed, use "from lxml import etree"
rect = inkex.etree.Element("rect")
Traceback (most recent call last):
File "sozi_extras_media.py", line 105, in <module>
effect.affect()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\deprecated.py", line 180, in affect
return self.run(args=args)
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run
self.save_raw(self.effect())
File "sozi_extras_media.py", line 76, in effect
rect.set("x", unicode(self.view_center[0] - self.options.width / 2))
NameError: name 'unicode' is not defined`
What should have happened?
It should add an embed video.
Sample attachments:
Version Info:
- Inkscape Version: 1.0
- Operating System: Windows 10 X64
- Operating System version: 10 Home
Edited by Jonathan Neuhauser