traceback error
Quote from carlos805 on April 5, 2018, 12:38 amrunning windows 10
inkscape 92
have cncjs installed and get it to connect to com3
also have the driver installed
Traceback (most recent call last):
File "laser.py", line 3367, in <module>
e.affect()
File "C:\Users\laser\AppData\Roaming\inkscape\extensions\inkex.py", line 268, in affect
self.effect()
File "laser.py", line 3359, in effect
self.laser()
File "laser.py", line 3050, in laser
self.check_dir()
File "laser.py", line 2558, in check_dir
if self.options.directory[-1] not in ["/","\\"]:
IndexError: string index out of range
running windows 10
inkscape 92
have cncjs installed and get it to connect to com3
also have the driver installed
Traceback (most recent call last):
File "laser.py", line 3367, in <module>
e.affect()
File "C:\Users\laser\AppData\Roaming\inkscape\extensions\inkex.py", line 268, in affect
self.effect()
File "laser.py", line 3359, in effect
self.laser()
File "laser.py", line 3050, in laser
self.check_dir()
File "laser.py", line 2558, in check_dir
if self.options.directory[-1] not in ["/","\\"]:
IndexError: string index out of range
Quote from davegalesr on April 5, 2018, 6:01 amYour laser.py is not the most current. Please download the beta 7 plugins and try again since this should be fix at that level.
Your laser.py is not the most current. Please download the beta 7 plugins and try again since this should be fix at that level.
Quote from carlos805 on April 5, 2018, 11:42 aminstalled the new beta 7 plugins. I created a Gcode, now do i use a cncjs to send the gcode to the k40 ? also is there a guide on this forum to use cncjs for the k40? sorry for so many question i dont want to ruin the k40 on a mistake i made.
thank you
installed the new beta 7 plugins. I created a Gcode, now do i use a cncjs to send the gcode to the k40 ? also is there a guide on this forum to use cncjs for the k40? sorry for so many question i dont want to ruin the k40 on a mistake i made.
thank you
Quote from Paul on April 5, 2018, 8:26 pmThe Inkscape plugins can stream the gcode directly to the K40 controller so no need to use CNCjs. CNCjs is just a gcode sender that can help debugging your k40 set up and configure the gerbil controller (e.g. invert limit switches, set software debounce values for limit switches etc)
The Inkscape plugins can stream the gcode directly to the K40 controller so no need to use CNCjs. CNCjs is just a gcode sender that can help debugging your k40 set up and configure the gerbil controller (e.g. invert limit switches, set software debounce values for limit switches etc)
Quote from Mark Eldo on November 13, 2019, 5:36 pmQuote from carlos805 on April 5, 2018, 12:38 amIndexError: string index out of range
In Python, a string is a single-dimensional array of characters. The string index out of range means that the index you are trying to access does not exist. In a string, that means you're trying to get a character from the string at a given point. If that given point does not exist , then you will be trying to get a character that is not inside of the string. Indexes in Python programming start at 0. This means that the maximum index for any string will always be length-1. There are several ways to account for this. Knowing the length of your string (using len() function)could certainly help you to avoid going over the index.
Quote from carlos805 on April 5, 2018, 12:38 amIndexError: string index out of range
In Python, a string is a single-dimensional array of characters. The string index out of range means that the index you are trying to access does not exist. In a string, that means you're trying to get a character from the string at a given point. If that given point does not exist , then you will be trying to get a character that is not inside of the string. Indexes in Python programming start at 0. This means that the maximum index for any string will always be length-1. There are several ways to account for this. Knowing the length of your string (using len() function)could certainly help you to avoid going over the index.