Hi there,
I use Inkscape with the Laser Tool Plug In.
However, if I want to save my file as a Gcode using this laser tool, I always get the following error message.
The called script passed additional data to Inkscape. The script did not return an error message, but the result may be unusable.
Traceback (most recent call last): File "laser.py", line 3172, in <module> e.affect() File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect self.effect() File "laser.py", line 3169, in effect self.laser() File "laser.py", line 3031, in laser self.check_dir() File "laser.py", line 2553, in check_dir if self.options.directory[-1] not in ["/","\\"]: IndexError: string index out of range
I know that there is already a discussion on this topic, but the solution given there does not work for me.
Can anyone help me?
You'll need to contact the author of that extension, to report the problem. Unless someone here is specifically familiar with it (I'm not aware of any though) you'd have to communicate with them.
There is one gcode-producing extension which gives errors unless you use pixels as units. I doubt if that solution would work for this extension, but it's easy enough to try it. 🤔
I have now solved the problem. There are several points to consider.
First, you have to create a folder for saving under OS (C) / Programs / Inkscape / share / extensions.
Then you have to run Inkscape as administrator. Last thing you have to do is that you have to change the units to px.
WTF, that is a "solution" . You install an arbitrary 3rd party plugin in and do what ( oh, I've just seen you are a windows user, I guess that makes it "normal" ). If that is really what you need to do get it to work you probably need to look further.
IFAIK that extension is based on gcodetools extension which is supplied with inkscape, which does not work either ( on 0.9.2.4 at least ) though the errors shown by OP were different.
While I want to generate the gcode ,it shows like that,
"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."
ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha512 The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension.Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml
The called script passed additional data to Inkscape. The script did not return an error message, but the result may be unusable.
Traceback (most recent call last):
File "laser.py", line 3172, in <module>
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect
self.effect()
File "laser.py", line 3169, in effect
self.laser()
File "laser.py", line 3031, in laser
self.check_dir()
File "laser.py", line 2553, in check_dir
if self.options.directory[-1] not in ["/","\\"]:
IndexError: string index out of range
Welcome to the forum!
You'll need to contact the author of that extension, to report the problem. Unless someone here is specifically familiar with it (I'm not aware of any though) you'd have to communicate with them.
There is one gcode-producing extension which gives errors unless you use pixels as units. I doubt if that solution would work for this extension, but it's easy enough to try it. 🤔
Thank you for your help
WTF, that is a "solution" . You install an arbitrary 3rd party plugin in and do what ( oh, I've just seen you are a windows user, I guess that makes it "normal" ). If that is really what you need to do get it to work you probably need to look further.
IFAIK that extension is based on gcodetools extension which is supplied with inkscape, which does not work either ( on 0.9.2.4 at least ) though the errors shown by OP were different.
Hi Josl2000
I have meet the same problems,I use WINDOWS 10.
While I want to generate the gcode ,it shows like that,
"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."
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "C:\Program Files\Inkscape\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension.Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml
Technical details:
DLL load failed: �Ҳ���ָ���ij���