Inkscape.org
  1. #1
    John Lane John Lane @Little_John6054

     I'm learning inkscape as a beginner for sure. I tried to save a image after I save it in a svg but when I tried to save it as a makerbot unicorn Gcode and I get this then I hit OK and it said can't save. ( I'm sorry if I'm wrong to type out all this won't do it again 😥

    Traceback (most recent call last):
      File "unicorn.py", line 108, in <module>
        e.affect()
      File "inkex.py", line 283, in affect
        self.effect()
      File "unicorn.py", line 102, in effect
        parser.parse()
      File "unicorn/svg_parser.py", line 230, in parse
        self.svgWidth = self.getLength('width', 354) * 0.28222
    TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
     

  2. #2
    brynn brynn @brynn

    Welcome to the forum!

    I probably can't help much with this.  But those who can help would probably need to see the SVG file which produced that error.  Also, please tell us your Inkscape version and operating system.

    Another thing you could do is double-check that you have the most current version of that extension.

    I'm not clear on your process.  Did you draw the image in Inkscape?  Or did you open an existing image in Inkscape, so you could produce the gcode file?

    Do you have to use the makerbot unicorn extension?  Or could you get the gcode from another extension (there are quite a lot of them)?

  3. #3
    Maren Hachmann Maren Hachmann @Moini

    And also, what extension are you using? Where can its code be found?

  4. #4
    Sabkavinda Sabkavinda @Sabkavinda

    hi ,

    I have same issue. i received following error. im going to convert jpg file to gcode.im using Inkscape 0.92.4 version. & used https://codeload.github.com/martymcguire/inkscape-unicorn/zip/master plugin.

    Plaese help. Im very new to inkscape. & i followed the https://www.youtube.com/watch?v=bbe56S_O-uI video. Please help.

     

    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 "unicorn.py", line 108, in <module>
        e.affect()
      File "inkex.py", line 283, in affect
        self.effect()
      File "unicorn.py", line 102, in effect
        parser.parse()
      File "unicorn/svg_parser.py", line 230, in parse
        self.svgWidth = self.getLength('width', 354) * 0.28222
    TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
     

    Thanks

  5. #5
    brynn brynn @brynn

    I've read some info in this forum, that extension is old, outdated, and no longer supported.  However, for some reason, it remains quite popular, despite these bugs.

    I've also heard that if you use pixels for units, it allows the extension to work.

    Personally, I would try to find a different extension to create the gcode.  But if you're ok to convert to pixels, it sounds like that works for most people.

  6. #6
    hossein101m hossein101m @hossein101m

    Hi

    use this version

    Inkscape-0.47  &

    https://github.com/martymcguire/inkscape-unicorn/tree/24d80d5b9ef60879112a6ca9644b119780182303

    oky