Error in inkscape extension while making gcodes

Asked by surmit chauhan

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.

Error-
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 \servo.py", line 3172, in <module>
e.affect()
File "C:\Program Files (x86)\Inkscape\share\ extensions \inkex.py", line 207, in affect
self.effect()
File "C:\Program Files (x86)\Inkscape\share\extensions \servo.py", line 3156, in effect
self.orientation( self.layers[min(0,len(self.layers)-1)] ) File "C:\Program Files (x86)\Inkscape\ share\ extensions \servo.py", 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 "servo.py", line 3172, in <module>
    e.affect()
  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 283, in affect
    self.effect()
  File "servo.py", line 3156, in effect
    self.orientation( self.layers[min(0,len(self.layers)-1)] )
  File "servo.py", 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

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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?

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
surmit chauhan (surmit) said :
#4

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

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
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 https://inkscape.org/en/contribute/report-bugs/).

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

https://bugs.launchpad.net/inkscape/+bug/414413
https://bugs.launchpad.net/inkscape/+bug/1557740
https://bugs.launchpad.net/inkscape/+bug/1597807

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.