EDIT YOUR PROFILE HERE

Please or Register to create posts and topics.

traceback error

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

 

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.

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

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)

Cheers, Paul awesome.tech
Quote from carlos805 on April 5, 2018, 12:38 am

IndexError: 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.

Paul has reacted to this post.
Paul

Forum Registration

EDIT YOUR PROFILE HERE