Inkscape.org
  1. #1
    plam plam @plam

    Hello everyone,

    I need your help. When I try to generate gcode for the NEJE laser printer using the extension I get this error:

      File "laserengraver.py", line 54
        def bezierslopeatt(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),t):
                           ^
    SyntaxError: invalid syntax

    Allegedly, it has something to do with the version of Python.

    I have installed the latest version of Inkscape which uses Python 3.8 and it generated the error on the screen. I have an older version of Inkcape which uses Python 2.7 and it does not generate the error on the screen but when I run the .nc file through laser it does not follow the lines properly.

    Has anyone else experienced the same problem?

    Thanks in advance.

     

  2. #2
    dietervdwes dietervdwes @dietervdwes

    I have the same error on InkScape version 1.1.1.  Only way I previously fixed it was to uninstall and install a previous version 0.94 or so, but now my TraceBitmap function in that previous version wasn't working, hence I tried again with the new version (1.1.1.)
      File "C:\Users\diete\AppData\Roaming\inkscape\extensions\laser.py", line 51
        def bezierslopeatt(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),t):
                           ^
    SyntaxError: invalid syntax

    Does someone know if this issue has perhaps been resolved yet?

    In the mean time I'll uninstall and reinstall a prior version again.