Inkscape.org
Beginners' Questions Error message during area fill GcodeTools
  1. #1
    Albio Albio @Albio

    Hello,

    I buy a cnc 3018 pro  on amazon. I installed inkscape and candle. 

    I would like to fill the area. I watch some video on youtube, it's okay for me but when I do :  Extensions -> GcodeTools -> Area -> Tab "area" -> Apply  -> i have a error message code 

     File "gcodetools.py", line 5923, in <module> ...

    rea_group.add(PathElement(style=MARKER_STYLE["biarc_style_i"]['area'])) ...

    TypeError: Argument must be bytes or unicode, got 'Style' ...

    There is an image attached

    Do you know why ?

    But the tab with "Area fill" seems to work.

    Thanks you very much if you have a solution.

    Albio (Fr/En)

    Capture D’Écran (84)
  2. #2
    Felipe San Martín Felipe San Martín @felipe.sanmartin
    🙌

    Hello friend,

    I had the same error using Inkscape 1.0. After reading the code, I fix it replacing the line 4167 by the following:

    elem = area_group.add(PathElement(style=str(MARKER_STYLE["biarc_style_i"]['area'])))

    Basically, I hardcoded the conversion from Style object to str.

    However, I have another issue, the generated gcode repeat several times the operations, I don't know why.

    I hope have helped you.

    Felipe San Martín.

     

  3. #3
    Kae Kae @Kae

    @felipe.sanmartin hi there

    i try to help u with the recurring gcode issue : its probably about the Z axis height u set and ur Z step in orientation and tool info 

    if ur z step is less than Z height it will go as much as needed to cover all that depth

    hope it helps u

    i have another problem myself - i also use inkscape 1.0 and ur fix on the code helped fix my area error too

    i tried before to replace the extension and all the gcode section malfunctioned but ur fix works

    yet i have kinda same error in the engraving section as well

    can u plz look at the code and see if u can fix this error too? i am kinda noob on code and cant figure it myself

    this is the error :

    Traceback (most recent call last):
      File "gcodetools.py", line 5923, in <module>
        Gcodetools().run()
      File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run
        self.save_raw(self.effect())
      File "gcodetools.py", line 5874, in effect
        self.options.active_tab()
      File "gcodetools.py", line 4774, in tab_engraving
        gcode_3Dleft = self.my3Dlayer.add(Group(gcodetools="Gcode 3D L"))
    AttributeError: 'NoneType' object has no attribute 'add'

  4. #4
    Kae Kae @Kae

    @felipe.sanmartin can you also tell me why replacing the extension with new version make it totally malfunction?

  5. #5
    Felipe San Martín Felipe San Martín @felipe.sanmartin

    @Kae, I'm not an expert on Inkscape extensions, but some libraries have been modified from Inkscape 0.9x to 1.0 (inkex.py, for example). For this reason, it's necessary to change much code on each extension, I think the code remains old code.

    I should analyze all the code and test each functionality, but unfortunately, I don't have time enough to do it fastly. I'll try to make some changes when I could.

  6. #6
    Kae Kae @Kae

    @felipe.sanmartin thanks for the reply - your right its too much time consuming to read all the code - i thought maybe its just fixing 1 line 

    sry im noob

    best regards

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Error message during area fill GcodeTools