[go: up one dir, main page]

a number of Python extensions fail, Inkscape 1.0alpha (12c59885, 2019-01-17)

this is a re-post of portions of the bug report at extensions#11 (closed)

  1. User installed extensions do not work. This applies to extensions in the folder C:\Users\username\AppData\Roaming\inkscape\extensions
    I have installed multiplecut.inx and multiplecut.py in this directory. When I run the extension I get the Python error message:

Traceback (most recent call last): File "multiplecut.py", line 25, in import inkex, os, csv, math ImportError: No module named inkex

  1. A number of the stock extensions appear to fail. I have tried six Python extensions and all six fail (Color->Brighter, Save As->.hpgl, Document->Doc Info, Export->Plot, Images->Extract Image, Render->Alphabet Soup, Visualize Path->Number Nodes). They all fail with different types of error message in each case. Attached is the output from the Modify Path->Envelope extension

inkex/deprecated.py:67: DeprecationWarning: Effect.affect is now Effect.run() with the same args warnings.warn(msg, DeprecationWarning) inkex/deprecated.py:67: DeprecationWarning: Effect.unittouu is now a method in the svg document. Use self.svg.unittouu(str) instead. warnings.warn(msg, DeprecationWarning) inkex/deprecated.py:67: DeprecationWarning: Effect.addDocumentUnit is now a method in the svg document. Use self.svg.add_unit(value) instead. warnings.warn(msg, DeprecationWarning) Traceback (most recent call last): File "summersnight.py", line 139, in e.affect() File "inkex/deprecated.py", line 144, in affect return self.run(args=args) File "inkex/base.py", line 73, in run ret = self.effect() File "summersnight.py", line 49, in effect scale *= self.unittouu(self.addDocumentUnit(viewBox2[3])) / h File "inkex/deprecated.py", line 186, in addDocumentUnit return self.svg.add_unit(value) File "inkex/svg.py", line 157, in add_unit return render_unit(value, self.unit) File "inkex/units.py", line 90, in render_unit return "{:.6g}{:s}".format(value, unit) ValueError: Unknown format code 'g' for object of type 'unicode'