Author Topic: Gcodetools extension problem  (Read 2861 times)

January 22, 2018, 02:43:50 PM
Read 2861 times

zakelectric

  • Sr. Newbie

  • Offline
  • **

  • 2
Hi guys,

I just installed the latest version of Ubuntu 17.10 and re-installed inkscape as a result. I was delighted to see that inkscape comes with gcodetools standard! Whenever I try to use it though, I'm getting error messages. I've tried everything I can think of and so I'm here hoping someone can help. Here's the error code I'm getting:

Quote (selected)
Traceback (most recent call last):
  File "gcodetools.py", line 6751, in <module>
    gcodetools.affect()               
  File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
    self.effect()
  File "gcodetools.py", line 6663, in effect
    self.get_info()
  File "gcodetools.py", line 4285, in get_info
    recursive_search(self.document.getroot(),self.document.getroot())
  File "gcodetools.py", line 4240, in recursive_search
    recursive_search(i,i)
  File "gcodetools.py", line 4252, in recursive_search
    tool = self.get_tool(i)
  File "gcodetools.py", line 4369, in get_tool
    self.error(_("Warning! Tool's and default tool's parameter's (%s) types are not the same ( type('%s') != type('%s') ).") % (key, value, self.default_tool[key]), "tools_warning")
  File "gcodetools.py", line 4138, in error
    s = str(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 102: ordinal not in range(128)
  • .92.2
  • Linux

January 23, 2018, 02:57:16 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Two issues:

1. Gcodetools isn't working correctly in Inkscape 0.92.2 - there are scaling issues, see https://forum.inkscapecommunity.com/index.php?topic=486.0 for a fix (use the .py file provided by Shockster)

2. the error itself is about the extension not being able to print an error message about the tool's parameters not being of the correct type... Somehow, there is a 'non-breaking space' in your parameters, or in the translation of the error message.

Which parameters could be wrong? Can you make screenshots, and also check for non-breaking spaces?

January 25, 2018, 10:37:19 PM
Reply #2

zakelectric

  • Sr. Newbie

  • Offline
  • **

  • 2
Thanks so much moini,

Realized that I was having that problem because I was trying to open something I created with 0.91 that contained content I created with gcodetools. It started working normally when I created it again from scratch with the acception that the orientation points were way off. I edited the gcodetools.py file and now everything seems to be back to normal.

Thanks again!
  • .92.2
  • Linux