MI Servo controller entension

Asked by Richard Neal on 2018-01-24

Hi My name is Rick
I am trying to run MI Servo controller extension and when I setup to just draw a square it gives me this error.

Traceback (most recent call last):
  File "servo.py", line 3172, in <module>
    e.affect()
  File "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'

Being very new at this I have tried several times and get the same error every time. I have setup a notebook and a desktop computer thinking that it is a computer problem? Installed the extensions on both systems and get the same error.

I don't know if it's Inkscape or maybe python error?
could you please help.

Thank you,
Rick

PS My goal is to draw the square on the cnc machine i have built as a test and to check calibration of the software/hardware.
Email <email address hidden>

Question information

Language:
English Edit question
Status:
Open
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2018-02-07
Last reply:
2018-01-25
TylerDurden (8thrule) said : #1

Not a python person myself, but google machine coughed up this page:

http://www.tylerforsythe.com/2015/02/inkscape-laser-engraver-bug/

Lotta unittouu extension repairs there.

TD

Richard Neal (nealre990) said : #2

TD,
Thanks for the reply, I opened the "Servo.py" file and found the line and
changed it. Ran it without errors but still has the same problem?

Rick

On Wed, Jan 24, 2018 at 5:57 PM, TylerDurden <
<email address hidden>> wrote:

> Your question #663538 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/663538
>
> Status: Open => Answered
>
> TylerDurden proposed the following answer:
> Not a python person myself, but google machine coughed up this page:
>
> http://www.tylerforsythe.com/2015/02/inkscape-laser-engraver-bug/
>
> Lotta unittouu extension repairs there.
>
> TD
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/inkscape/+question/663538/+
> confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/inkscape/+question/663538
>
> You received this question notification because you asked the question.
>

TylerDurden (8thrule) said : #3

Ok, what version of Inkscape? (please copy paste from the About window including the build number)

FWIW, I've seen this error after correcting an extension, and a reboot of the system resolved it.

I'd also check inkex.py to see if the string needs updating there too.

Another user has this issue on the instructables page, so you might pile-on there.
http://www.instructables.com/id/How-to-Make-GRBL-CNC-V3-Shield-Based-Mini-CNC-Mach-1/

TD

Hachmann (marenhachmann) said : #4

Another common way to solve this problem would be to set the 'height' attribute of the <svg> tag to 100%. Might require the same for the width.

Or - I think - updating your Inkscape version could work. I dimly remember this having been fixed by su_v, but I don't remember when. So if you're not using Inkscape 0.92.2, it could be worth a try to uninstall, then install 0.92.2. If you're on Windows, you can go back to the previous version any time.

Richard Neal (nealre990) said : #5

TD
after changing the PYthon code by entering the new line, replacing the old on, and running it , it basically says the something but shows the error unresolved.

I now believe it is a python error. tried to load the latest python but that didn't change the error either.

Rick

Richard Neal (nealre990) said : #6

My version of inkscape is the .92.2 . I also tried .91 and .48 each done the same thing. I texted "MR Innovative" on you tube but he has not replied? Several days ago. His works! But I don't know what he did, if anything, to make it work. I been over his video many times to see if i missed any thing, but i don't think so.

Rick
'

Richard Neal (nealre990) said : #7

Will inkscape .92 be fixed to run the servo extension? Version .47 works
ok, but I'm concerned about running into problems that's been fixed in
older versions of inkscape.

Rick

On Jan 27, 2018 12:22 AM, "Richard Neal" <
<email address hidden>> wrote:

Your question #663538 on Inkscape changed:
https://answers.launchpad.net/inkscape/+question/663538

    Status: Answered => Open

You are still having a problem:
My version of inkscape is the .92.2 . I also tried .91 and .48 each done
the same thing. I texted "MR Innovative" on you tube but he has not
replied? Several days ago. His works! But I don't know what he did, if
anything, to make it work. I been over his video many times to see if i
missed any thing, but i don't think so.

Rick
'

--
You received this question notification because you asked the question.

Can you help with this problem?

Provide an answer of your own, or ask Richard Neal for more information if necessary.

To post a message you must log in.