Inkscape Community

Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: elavert on March 29, 2018, 12:17:51 PM

Title: problem with laser engraver
Post by: elavert on March 29, 2018, 12:17:51 PM
Hi,
I try to creat a gcode for my laser engraver using inkscape.
(attached screen shot)

here is the error:

Traceback (most recent call last):
  File "laserengraver.py", line 3188, in <module>
    e.affect()                   
  File "inkex.py", line 283, in affect
    self.effect()
  File "laserengraver.py", line 3156, in effect
    self.orientation( self.layers[min(0,len(self.layers)-1)] )       
  File "laserengraver.py", line 3080, in orientation
    doc_height = inkex.unittouu(self.document.getroot().get('height'))
AttributeError: 'module' object has no attribute 'unittouu'

did anyone ever saw this?
thanks,
Etay,
Title: Re: problem with laser engraver
Post by: Moini on March 30, 2018, 06:36:39 AM
Seems the extension and the Inkscape version you're using are not compatible.

Try if replacing 'inkex.unittouu' in the extension file laserengraver.py by 'self.unittouu' helps.

If it doesn't, either ask the extension author to update the extension, or have a go at it yourself.
Title: Re: problem with laser engraver
Post by: brynn on March 31, 2018, 01:03:16 PM
Welcome to the forum!

Which extension is that?  Is it Extensions menu > Gcodetools > Engraving.... ?

If that's the one you're using, I don't seem to be having any problems with it (Inkscape 0.92.2).  I'm not terribly knowledgeable about it - I don't even have any kind of cutter.  But I've learned a lot of the basics, just by trying to help other users.

Anyway, that makes me wonder if it might be some particular combination of options which you've chosen.  They aren't very easy to understand, and documentation seems to be quite lacking.

Well, if that's the extension you're using, and Moini's suggestion doesn't help, we might try looking at how you're setting it up.  But definitely try Moini's suggestion first.
Title: Re: problem with laser engraver
Post by: Moini on March 31, 2018, 07:17:45 PM
It's a different one. There's no laserengraver.py included with Inkscape: https://gitlab.com/inkscape/inkscape/tree/0.92.x/share/extensions