ChrisWag91 / Inkscape-Lasertools-Plugin

A simple plugin to convert inkscape vector graphics to Gcode for DIY laser engravers
GNU General Public License v3.0
38 stars 27 forks source link

Error on lastest Arch with Python 3.10 and Inkscape 1.1 #32

Open horga83 opened 2 years ago

horga83 commented 2 years ago

Running the plugin gives this error. I added some text, selected Object to Path and then ran the plugin.

Traceback (most recent call last): File "/home/george/.config/inkscape/extensions/lasertools.py", line 1744, in laser_gcode().run() File "/usr/share/inkscape/extensions/inkex/base.py", line 131, in run self.save_raw(self.effect()) File "/home/george/.config/inkscape/extensions/lasertools.py", line 1715, in effect self.area_fill() File "/home/george/.config/inkscape/extensions/lasertools.py", line 1152, in area_fill np_finalLines = np.delete(np_finalLines, index_zeros, axis=0) File "<__array_function__ internals>", line 180, in delete File "/usr/lib/python3.10/site-packages/numpy/lib/function_base.py", line 5128, in delete keep[obj,] = False IndexError: index 1 is out of bounds for axis 0 with size 1

horga83 commented 2 years ago

Ok update to this. It seems to be due to having another layer present, even though that layer is locked and hidden.