项目16.三轴CNC【未完成 - 150501】Inkscape脚本未返回错误的解决

        此前,在按照上一篇文章下载Inkscape插件并覆盖进文件夹的过程后,当我们输出nc文件时,总会遇到这样的错误:

        在脚本执行后收到额外的数据.脚本未返回错误, 但是意味着结果可能并不是期望值。

        可能还会提到:

        “AttributeError: ‘module’ object has no attribute ‘unittouu’”

        或者:

        “unittouu not part of inkex module“.

        我也遇到了同样的问题,并且得不到想要的nc文件。多方搜寻后,在其作者网站上我找到了它的更正说明。

        这篇写于三个月前的文章表示,在程序laserengraver.py的3080行有需要改动的地方:

        原程序:

        doc_height = inkex.unittouu(self.document.getroot().get('height'))

        改动后成为:

        doc_height =self.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])

        经测试,我的问题被圆满解决了。



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

评论 ( 4 )