Inkscape.org
Creating New Extensions Installing PyScript extension
  1. #1
    ivan ivan @zanoth

    Hi everybody,

    i'm trying to install PyScript extension on my Inkscape enviorment. (i've spent lots of time just to be aware about python embbeded on Inkscape, but anyway...). I have successfully installed the extension itself, placing the directory in the correct location, and confirming its presence as an option in the program. However, when I attempt to open the script editor, I got the following traceback::

    Traceback (most recent call last):
      File "pyscript_ide.py", line 24, in <module>
        from pyscript import main
      File "C:\Program Files\Inkscape\share\inkscape\extensions\pyscript\pyscript\__init__.py", line 28, in <module>
        gi.require_version('GtkSource', '3.0')
      File "C:\Program Files\Inkscape\lib\python3.8\site-packages\gi\__init__.py", line 126, in require_version
        raise ValueError('Namespace %s not available' % namespace)
    ValueError: Namespace GtkSource not available

    Any helps will be well come 😊

    Screenshoot
  2. #2
    inklinea inklinea @inklinea⛰️

    The only thing I could find was this. 

    https://github.com/textext/gtksourceview-for-inkscape-windows

    From this Inkscape member https://inkscape.org/~jcwinkler/

    However I have not tried to use or install it myself.

  3. #3
    ivan ivan @zanoth

    Thanks for the tip. 😉

    Don't you use that? 

  4. #4
    ivan ivan @zanoth

    In fact, i didn't got the way. 😐... the script creates two empty files.

    I extracted the 'zst' file separately, and then adapted the script.
    @jcwinkler">@jcwinkler may give us any insight.