raniaamina / inkporter

Inkporter - is powerfull tool to help your productivity with Inkscape. This tools available as Command Line Interface and Inkscape Extension, so you choose as your preference.
https://inkporter.raniaamina.id/
GNU General Public License v3.0
39 stars 10 forks source link

fix nss error for inkscape 1.1, 1.2.x on linux #24

Closed larpon closed 1 year ago

larpon commented 1 year ago

This fixes the AttributeError: module 'inkex.utils' has no attribute 'NSS' error in Inkscape 1.1 + 1.2.x:

Traceback (most recent call last):
  File "inkporter.py", line 424, in <module>
    e.run ()
  File "/tmp/.mount_Inksca3tWo81/usr/share/inkscape/extensions/inkex/base.py", line 231, in run
    self.save_raw(self.effect())
  File "inkporter.py", line 389, in effect
    new_nss = inkex.utils.NSS
AttributeError: module 'inkex.utils' has no attribute 'NSS'

image

I can see that someone else fixed it in the windows-linux directory - this fix is for the linux version of the code.

raniaamina commented 1 year ago

Thanks!