You need to log in to create posts and topics.

problems trying to cut

Pages:12

I have installed Gerbil as well as the inkscape plugins and when I try to cut the laser fires a couple of times then I get this message from inkscape -

Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.

Traceback (most recent call last):

File "laser.py", line 3367, in <module>

e.affect()

File "C:\Program Files\Inkscape\share\extensions/inkex.py", line 283, in affect

self.effect()

File "laser.py", line 3361, in effect

if self.options.stream == True : self.gcodetocontroller((self.serial_ports()),((self.options.directory+self.options.file)),((self.options.directory+self.options.file+"_log")))

File "laser.py", line 3113, in gcodetocontroller

s.write("\r\n\r\n")

File "C:\Program Files\Inkscape\lib\python2.7\site-packages/serial/serialwin32.py", line 323, in write

raise writeTimeoutError

serial.serialutil.SerialTimeoutException: Write timeout

any ideas on what I am doing wrong?

Thanks

Justin

Most of these are stemming from libraries which are not compatible. Make sure you install version 0.92 and not 0.92.2.

Paul,

How do the plugins determine which USB port the Gerbil is connected to? I'm using Linux Mint with inkscape. The cutting plugin generates a gcode file but I can't stream to the Gerbil, see error below. Is this similar to the issue above?

 

Traceback (most recent call last):
File "laser.py", line 3367, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "laser.py", line 3361, in effect
if self.options.stream == True : self.gcodetocontroller((self.serial_ports()),((self.options.directory+self.options.file)),((self.options.directory+self.options.file+"_log")))
File "laser.py", line 3234, in serial_ports
ports = glob.glob('/dev/tty[A-Za-z]*')
NameError: global name 'glob' is not defined

Hi Peter, Gerbil runs a loop for scanning all the usb ports and then assigns the first found port to the plugin. I have not used linux with Inkscape (just Mac and Win). Although I do have worked with linux.

Let me look into it, it seems to me that a var is not defined in linux. Hopefully someone else with linux experience can tell us a bit more otherwise have a bit patience while I hunt down that incompatibility issue. Cheers!

I have a similar error running inkscape 0.92.0 on windows 10.

Uploaded files:
  • error2.PNG

I have seen this on my WIN10 system when the port was in use - for instance if I started a print and then killed it which left pythonw running.  I kill pythonw in task manager and I can get to the port again.

I just turned on my laptop and ran Inkscape as administrator, then made a circle for the machine to cut. I turned on the laser, water cooling, etc. I made sure that the usb was plugged in. I then used the cutting extension and got this error:

raceback (most recent call last):

 

File "laser.py", line 3367, in <module>

 

e.affect()

 

File "C:\Program Files (x86)\Inkscape\share\extensions\inkex.py", line 283, in affect

 

self.effect()

 

File "laser.py", line 3361, in effect

 

if self.options.stream == True : self.gcodetocontroller((self.serial_ports()),((self.options.directory+self.options.file)),((self.options.directory+self.options.file+"_log")))

 

File "laser.py", line 3106, in gcodetocontroller

 

s = serial.Serial(port[0],BAUD_RATE)

 

IndexError: list index out of range

Any idea as to what is going on?

I just tried twice more, but with a different usb cable. Now I don't get any errors, but the machine isn't cutting properly. When trying to cut a circle, the laser fires a few short bursts and then stops. Then the laser head starts to the right for a few inches, stops, and then moves diagonally about an inch. Then it stops and inkscape crashes.

Uploaded files:
  • error3.PNG

Sorry for the triple post, but unplugging the usb caused inkscape to magically unfreeze. I don't know if that's useful information or not.

I had similar issue and that solved by using inkscape as admin.

I can add that for me on windows 10, I sometimes got the error that ends with
"s = serial.Serial(port[0],BAUD_RATE)

IndexError: list index out of range"

Usually after killing the power. Unplugging and plugging back in the usb cable solved it for me.
The other issue of write file permission (mentioned in the other thread) is solved by running inkscape as administrator.

I'm getting the same error.  I seem a similar error if the USB cable is not plugged in making me think the issue is communicating to the Gerbil.  I've tried cycling the power, unplugging/plugging the USB cable etc.

Quote from Niels S on January 3, 2018, 12:48 pm

I can add that for me on windows 10, I sometimes got the error that ends with
"s = serial.Serial(port[0],BAUD_RATE)

IndexError: list index out of range"

 

I will add some error handling to this usb comms handling so it gracefully recovers. Basically the plugin loops thru  the VCPorts to see if it can find an occupied port and assigns that.

Alternatively I could add a script that shows the ports in a dropdownlist for the user to choose from.

Quote from PeterC on December 9, 2017, 10:05 pm

Traceback (most recent call last):
File "laser.py", line 3234, in serial_ports
ports = glob.glob('/dev/tty[A-Za-z]*')
NameError: global name 'glob' is not defined

I got this issue too on my Mac. My issue for that was fixed by importing glob at the top of the laser.py.

Hi Paul

Been a while since I have be able to play with Gerbil.

So I have tried everything I have seen around the forums and I am still getting the same error that I originally posted at the top of this thread.

Is there anything else you can suggest to get it working as I am starting to get frustrated and regretting my purchasing Gerbil.

I can run either windows or linux.  I am also open to running an earlier version of windows if that will help.

Any help at this point would be much appreciated as I do really want this to work but as I said before I am starting to get to the point of regretting my purchase.

Thanks

Justin

PS. Just a little feedback - I only received one of the end brackets for the drag chain but that was no problem for me.

 

Pages:12

Forum Registration

Edit Profile