Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inkscape 1.2 "TypeError: list indices must be integers or slices, not float" #28

Open
kimstik opened this issue Jul 13, 2022 · 0 comments

Comments

@kimstik
Copy link

kimstik commented Jul 13, 2022

inkscape 1.2
I got following when I try to engrave simple triangle:

Traceback (most recent call last):
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 5930, in <module>
    Gcodetools().run()
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 231, in run
    self.save_raw(self.effect())
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 5881, in effect
    self.options.active_tab()
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 4936, in tab_engraving
    jjmin, iimin, w = get_biggest((x1, y1), (nx, ny))
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 4580, in get_biggest
    if abs(ii - i) == 2 and nlLT[j][(ii + i) / 2 - 1][3] <= 0:
TypeError: list indices must be integers or slices, not float

Commenting out lines 4580 and 4581 helps to get g-code.

time to time I see that:

Traceback (most recent call last):
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 5930, in <module>
    Gcodetools().run()
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 231, in run
    self.save_raw(self.effect())
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 5881, in effect
    self.options.active_tab()
  File "C:\Program Files\Inkscape\share\inkscape\extensions\other\gcodetools\gcodetools.py", line 4771, in tab_engraving
    gcode_3Dleft = self.my3Dlayer.add(Group(gcodetools="Gcode 3D L"))
AttributeError: 'NoneType' object has no attribute 'add'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant