Inkscape.org
Beginners' Questions Raster2 Laser Gcode not working with Inkscape 1.1.2
  1. #1
    sr.sr sr.sr @sr.sr

    I installed the extension Raster2 Laser Gcode

    but once opens the windows there is the following error and I'm unable to produce a gcode of the Raster image

    Is it a problem of compatibility of the extension with the version of Inkscape ?

    Does exist other extensions able to codify gcode of a raster image ?

    Thanks a lot

     

     

     

    Traceback (most recent call last):
      File "/usr/share/inkscape/extensions/raster2laser_gcode.py", line 37, in <module>
        import png
      File "/usr/share/inkscape/extensions/png.py", line 1885
        except ValueError, e:
               ^^^^^^^^^^^^^
    SyntaxError: multiple exception types must be parenthesized

  2. #2
    sr.sr sr.sr @sr.sr

    Ho provato anche a scaricare Inkscape 1.0 appimage senza dover fare una nuova installazione. Ho installato i file dell'extension nella directory user extensions. Nel menu mi compare la voce Raster2 ma cliccandoci sopra non mi apre neppure la finestra di dialogo....

  3. #3
    Jurgen Gaeremyn Jurgen Gaeremyn @JurgenG

    This extension is last modified in 2019. Later versions upgraded Python from 2.x to 3.x (and there are some other API changes). Basically, if it's not updated, it isn't compatible anymore. If you have some developer skills, you could look into it and pick it back up.

    These pages could be of use:

    https://inkscape.gitlab.io/extensions/documentation/authors/update1.0.html

    https://inkscape.gitlab.io/extensions/documentation/authors/update1.2.html

    Note that there is a very friendly rocketchat community that will gladly help you if you're having questions in the process.

  4. #4
    sr.sr sr.sr @sr.sr

    Thanks Jurgen. If this is the situation my other questions are:

    1) If I installed a version of inkscape older can I arrive to use also raster2 extension?

    2) Do exist other tool that can allow to translate a raster image into a gcode for laser engraving ?

    Thanks a lot

    Kind regards

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Raster2 Laser Gcode not working with Inkscape 1.1.2