Error in inkscape extension while making gcodes

Asked by surmit chauhan on 2018-04-28

I have installed the inkscape 0.92 version and added a cnc plotter extension to it's path and i am getting this error again and again with old versions too. With the inkscape i am trying to make gcode files.

 I followed these steps first i import a image and then select trace bitmap option from there i select brightness..... and click on update and then ok. Now i removed the original image and select the vector image formed now i use the extension to generate a gcode file but this error shows up.

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.

In text box-

Traceback (most recent call last):
File "C:\Program Files (x86)\Inkscape\share\extensions \", line 3172, in <module>
File "C:\Program Files (x86)\Inkscape\share\ extensions \", line 207, in affect
File "C:\Program Files (x86)\Inkscape\share\extensions \", line 3156, in effect
self.orientation( self.layers[min(0,len(self.layers)-1)] ) File "C:\Program Files (x86)\Inkscape\ share\ extensions \", line 3085, in orientation
doc_height = self.unittou-b(self.document.getroot0.xpath ('@height', namespaces=inkex.NSS)[0])
AttributeError: laser_gcode instance has no attribute 'unittouu'

This was the error with first extension
When i tried another extension the following error appears.

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 "", line 3172, in <module>
  File "C:\Program Files\Inkscape\share\extensions\", line 283, in affect
  File "", line 3156, in effect
    self.orientation( self.layers[min(0,len(self.layers)-1)] )
  File "", line 3085, in orientation
    doc_height = inkex.unittouu(self.document.getroot().get('height'))
AttributeError: 'module' object has no attribute 'unittouu'

please help me to resolve the problem.

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
Hachmann (marenhachmann) said : #1

The extensions are broken. Please ask the extensions' authors to fix them for you.

The second extension is for Inkscape versions > 0.48.5 (i.e. from 0.91 upwards). For the first extension, I can't tell, probably the same.

Why don't you use the gcodetools that come with Inkscape?

surmit chauhan (surmit) said : #2

Ok thanks for a reply,but these extensions are working fine on other's pc they all are out of India. And i tried these extensions on my two diff pc and i got same error.Why is that so is there any other package that i need to install to run these.

Hachmann (marenhachmann) said : #3

Please compare the Inkscape versions and/or the extension versions on the other PCs. They are probably different. You can see the Inkscape version at Help > About. The extensions may or may not have a version number in their files. If they don't have a version number, you can compare them by doing a file comparison.

surmit chauhan (surmit) said : #4

I am using the same extension version on both pc's and with same version of inkscape

Hachmann (marenhachmann) said : #5

One last guess:

Have you updated Inkscape on some of those computers, instead of uninstalling and then reinstalling? Updating (on Windows) can break the Python installation for Inkscape.

If that's not the case, kindly direct your request for fixing to the appropriate party, i.e. the author of the extension.

surmit chauhan (surmit) said : #6

Somehow i fixed the issue but now i am facing another one can you help me with that.

when i try to Drag any image to inkscape it encounter with error and when i click OK inkscape got closed.

error-Inkscape encountered an internal error and will close now.

Hachmann (marenhachmann) said : #7

Seems to be a known issue, but also seems that developers haven't been able to reproduce the problem.

If you can, please provide more info at a bug report of your choice (your Inkscape version (full version number), which download file you used for installation, your operating system, and a backtrace, see

New info will likely make developers more aware of the problem and can help them solve it.

Can you help with this problem?

Provide an answer of your own, or ask surmit chauhan for more information if necessary.

To post a message you must log in.