iandouglas96 / engravR

Raspberry Pi Powered Laser Engraver
80 stars 37 forks source link

Name error #2

Closed dutchpatriot closed 7 years ago

dutchpatriot commented 7 years ago

Hi when I test run the program I get this error?

File "./laserengraver", line 188, in old_x_pos=x_pos; NameError: name 'x_pos' is not defined

I googled for the answer but I couldn't find anything. Nice work on the remote by the way! Greets, Dutchpatriot

iandouglas96 commented 7 years ago

My guess is that you are using a gcode file not generated by Inkspace gcodetools, so the format isn’t quite what the software is expecting. The test file that Daniel Chai gives in his tutorial won’t work, because I rewrote some of his code to be able to handle gcodetools gcode files. If you still can’t get it to work, let me know.

Ian


Ian D. Miller Lead Developer http://www.pxlweavr.com

On Jan 19, 2017, at 1:07 AM, dutchpatriot notifications@github.com wrote:

Hi when I test run the program I get this error?

File "./laserengraver", line 188, in old_x_pos=x_pos; NameError: name 'x_pos' is not defined

I googled for the answer but I couldn't find anything. Nice work on the remote by the way! Greets, Dutchpatriot

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iandouglas96/engravR/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AGDwK_4eeOL0U0Km8QPomSrxfM6YlKxcks5rTv20gaJpZM4LnvFZ.

dutchpatriot commented 7 years ago

Indeed the file is not created by the Inkscape gcodetools but by the laserengraver-extension. http://www.slackersdelight.com/instructables/laserengraver.zip. It wouldn't work on 0.91 so I found this http://www.tylerforsythe.com/2015/02/inkscape-laser-engraver-bug/ this solved the creating of or lack of creating the Gcode file. I'll try to do it again with the Gcode tool from Inkscape.

I'll report back. By the way thanks again... Marco aka Dutchpatriot

dutchpatriot commented 7 years ago

It looks like it works now! Thanks...

iandouglas96 commented 7 years ago

Great!