Good morning: This is my first visit to this forum, although I already have some experience with Inkscape in previous versions.
Today's problem is that although I do as I did before, when I clik Trayecto to GCode it does nothing to me and it gives the following message:
Warning! Found bad orientation points in 'Capa 1' layer. Resulting Gcode could be corrupt!
Orientation points have not been defined! A default set of orientation points has been automatically added.
Warning! Found bad orientation points in 'Capa 1' layer. Resulting Gcode could be corrupt!
Warning! Found bad orientation points in 'Capa 1' layer. Resulting Gcode could be corrupt!
Traceback (most recent call last): File "C:\Program Files\Inkscape\share\inkscape\extensions\gcodetools.py", line 5928, in <module> Gcodetools().run() File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 131, in run self.save_raw(self.effect()) File "C:\Program Files\Inkscape\share\inkscape\extensions\gcodetools.py", line 5879, in effect self.options.active_tab() File "C:\Program Files\Inkscape\share\inkscape\extensions\gcodetools.py", line 3961, in tab_path_to_gcode for step in range(0, int(math.ceil(abs((zs - d) / self.tools[layer][0]["depth step"])))): ZeroDivisionError: float division by zero
The super class of ZeroDivisionError is ArithmeticError. This exception raised when the second argument of a division or modulo operation is zero. In Mathematics, when a number is divided by a zero, the result is an infinite number. It is impossible to write an Infinite number physically. Python interpreter throws “ZeroDivisionError” error if the result is infinite number. While implementing any program logic and there is division operation make sure always handle ArithmeticError or ZeroDivisionError so that program will not terminate.
Good morning: This is my first visit to this forum, although I already have some experience with Inkscape in previous versions.
Today's problem is that although I do as I did before, when I clik Trayecto to GCode it does nothing to me and it gives the following message:
Warning! Found bad orientation points in 'Capa 1' layer. Resulting Gcode could be corrupt!
Orientation points have not been defined! A default set of orientation points has been automatically added.
Warning! Found bad orientation points in 'Capa 1' layer. Resulting Gcode could be corrupt!
Warning! Found bad orientation points in 'Capa 1' layer. Resulting Gcode could be corrupt!
Traceback (most recent call last):
File "C:\Program Files\Inkscape\share\inkscape\extensions\gcodetools.py", line 5928, in <module>
Gcodetools().run()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 131, in run
self.save_raw(self.effect())
File "C:\Program Files\Inkscape\share\inkscape\extensions\gcodetools.py", line 5879, in effect
self.options.active_tab()
File "C:\Program Files\Inkscape\share\inkscape\extensions\gcodetools.py", line 3961, in tab_path_to_gcode
for step in range(0, int(math.ceil(abs((zs - d) / self.tools[layer][0]["depth step"])))):
ZeroDivisionError: float division by zero
Could someone help me?
Thanks a lot
The super class of ZeroDivisionError is ArithmeticError. This exception raised when the second argument of a division or modulo operation is zero. In Mathematics, when a number is divided by a zero, the result is an infinite number. It is impossible to write an Infinite number physically. Python interpreter throws “ZeroDivisionError” error if the result is infinite number. While implementing any program logic and there is division operation make sure always handle ArithmeticError or ZeroDivisionError so that program will not terminate.
try:
z = x / y
except ZeroDivisionError:
z = 0
Or check before you do the division:
if y == 0:
z = 0
else:
z = x / y
The latter can be reduced to:
z = 0 if y == 0 else (x / y)