PadLex / SvgToGcode

MIT License
46 stars 27 forks source link

AttributeError: 'NoneType' object has no attribute 'isnumeric' #15

Closed EvansPM closed 3 years ago

EvansPM commented 3 years ago

Certain svg throw this error:

AttributeError: 'NoneType' object has no attribute 'isnumeric'

Is there some specification required for the input svg? My svg(path only) was created with potrace.

PadLex commented 3 years ago

It shouldn't do that. Could you share the troublesome SVG?

EvansPM commented 3 years ago

To try you can remove height attribute of your example svg. Actually i fixe it and make pull request for it fc31c77 . This worry about only the height, if you do not use width anywhere... My svg from potrace got attribute viewBox only probably because i use Potracer instead of Potrace.

PadLex commented 3 years ago

I merged your pull request. Thanks again!