Inkscape.org
Beginners' Questions Error when using extensions
  1. #1
    Nathan Corsi Nathan Corsi @natcorsi

    Hello, I'm trying to use the Inkscape text extension, but it gives this error:

    Traceback (most recent call last):
      File "text_uppercase.py", line 12, in <module>
        Uppercase().run()
      File "/snap/inkscape/8049/share/inkscape/extensions/inkex/base.py", line 140, in run
        self.save_raw(self.effect())
      File "/snap/inkscape/8049/share/inkscape/extensions/inkex/extensions.py", line 315, in effect
        for elem in nodes.values():
    AttributeError: 'odict_values' object has no attribute 'values'

    I also can't add gradient to images, and tried to add the print marks (which I use a lot) and returned this:

    Traceback (most recent call last):
      File "printing_marks.py", line 401, in <module>
        PrintingMarks().run()
      File "/snap/inkscape/8049/share/inkscape/extensions/inkex/base.py", line 140, in run
        self.save_raw(self.effect())
      File "printing_marks.py", line 290, in effect
        g_center = layer.add(inkex.Group(**g_attribs))
      File "src/lxml/classlookup.pxi", line 77, in lxml.etree.ElementBase.__init__
      File "src/lxml/apihelpers.pxi", line 158, in lxml.etree._initNewElement
      File "src/lxml/apihelpers.pxi", line 317, in lxml.etree._initNodeAttributes
      File "src/lxml/apihelpers.pxi", line 333, in lxml.etree._addAttributeToNode
      File "src/lxml/apihelpers.pxi", line 1744, in lxml.etree._attributeValidOrRaise
    ValueError: Invalid attribute name 'inkscape:label'

    what can it be?

    Thank you for your help!!

  2. #2
    Nathan Corsi Nathan Corsi @natcorsi

    Note, i'm using the 1.0.1 inkscape version

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    Describe your OS & version, the installer you used, plus any special hardware like tablet/stylus or multiple monitors.

  4. #4
    Nathan Corsi Nathan Corsi @natcorsi

    My system is Ubuntu 20.4, I added inkscape 1.0.1 ppa, then I installed it directly in the ubuntu store, I use a dell notebook with an additional monitor, but the problem appears in both the monitor and the notebook

     

    Thanks for attention!

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    I'm not well versed in Linux, but it looks like the install was via a "snap" package. 

    I would uninstall Inkscape and re-install following the directions here: https://inkscape.org/release/inkscape-1.0.2/gnulinux/ubuntu/ppa/dl/

    Chime back and let us know how that goes.

     

  6. #6
    Nathan Corsi Nathan Corsi @natcorsi

    I installed inkscape according to the link tutorial, but I still see this error and code when I try to use the uppercase and lowercase extension

    /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
      import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
    Traceback (most recent call last):
      File "text_uppercase.py", line 12, in <module>
        Uppercase().run()
      File "/usr/share/inkscape/extensions/inkex/base.py", line 140, in run
        self.save_raw(self.effect())
      File "/usr/share/inkscape/extensions/inkex/extensions.py", line 315, in effect
        for elem in nodes.values():
    AttributeError: 'odict_values' object has no attribute 'values'

     

  7. #7
    Nathan Corsi Nathan Corsi @natcorsi

    It shows this message as well: inkscape received additional data from the executed script. the script did not return any errors, but this may indicate that the result will not be as expected

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    Thank you, that seems to be an improvement. 

    Version 1.0.2 had some fixes added a few hours ago... I'd try an uninstall/reinstall again, maybe the fix will be included.

    If not, there is a way to install just the extensions.