Inkscape.org
Creating New Extensions Extension not working since 1.3 Gio:Error (subprocess.Popen)
  1. #1
    Phoca Phoca @Phoca
    *

    Hi,

    I use this extension:

    https://inkscape.org/~Phoca/%E2%98%85phoca-inkscape-save-as-extension

    Since Inkscape version 1.3 it has problems with subprocess.Popen. It just cannot execute "inkscape" in subprocess and renders following error:

    terminate called after throwing an instance of 'Gio::Error'
    Aborted (core dumped)

     

    The command is simple: inkscape --export-filename output input

    I have checked paths, permissions, etc. When I run this code in shell, everything is OK, when I run the extension python code in python shell, even there is everything OK.

    Does anyone have idea what changed in Inkscape 1.3 so it can prevent from running inkscape command in subprocess.popen?

    Thank you, Jan
    Outputs:
    stdout = <_io.BufferedReader name=4>
    stderr = <_io.BufferedReader name=6>

    Inkscape 1.3 (1:1.3+202307231459+0e150ed6c4)

       GLib version:     2.76.1
       GTK version:      3.24.37
       glibmm version:   2.66.6
       gtkmm version:    3.24.7
       libxml2 version:  2.9.14
       libxslt version:  1.1.35
       Cairo version:    1.16.0
       Pango version:    1.50.12
       HarfBuzz version: 6.0.0

       OS version:       Ubuntu 23.04

    https://github.com/PhocaCz/PhocaInkscapeSaveAs/blob/main/export_as.py

  2. #2
    Phoca Phoca @Phoca

    Maybe somehow related to: https://gitlab.com/inkscape/inkscape/-/issues/4163

Inkscape Inkscape.org Inkscape Forum Creating New Extensions Extension not working since 1.3 Gio:Error (subprocess.Popen)