Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Imported SVG, tried to Generate paths but failed #9

Open
robtarr opened this issue Jul 23, 2015 · 2 comments
Open

Imported SVG, tried to Generate paths but failed #9

robtarr opened this issue Jul 23, 2015 · 2 comments

Comments

@robtarr
Copy link

robtarr commented Jul 23, 2015

Traceback (most recent call last):
File "paths2openscad.py", line 1004, in
e.affect()
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 265, in affect
self.getposinlayer()
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 207, in getposinlayer
x = self.unittouu( xattr[0] + 'px' )
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 351, in unittouu
return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 304, in getDocumentUnit
p = param.match(svgwidth)
TypeError: expected string or buffer

@su-v
Copy link

su-v commented Jul 23, 2015

This is a known upstream bug in Inkscape when applying a python-based script extension which uses the 'inkex.Effect' class in SVG files which do not define width for the top-level <svg> element:

@jnweiger
Copy link
Contributor

I cannot reproduce this with current inkscape-0.91 -- scad files are generated niceley for me.
@robtarr is this still an issue for you? Otherwise I suggest to close here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants