SebKuzminsky / pycam

Other
340 stars 98 forks source link

Import from SVG fails: undefined in DELAYBIND #118

Closed leonerd closed 6 years ago

leonerd commented 6 years ago

Attempting to import an SVG file, I get the following error:

Successfully converted SVG file to EPS file
SVGImporter: failed to convert EPS file (/tmp/tmpVb3Mw7.eps) to DXF file (/tmp/tmpJqJDE0.dxf): pstoedit: version 3.70 / DLL interface 108 (built: Feb 19 2018 - release build - g++ 7.3.0 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz

 *** WARNING - the DELAYBIND command has been deprecated, and will be
               removed in the next version. For now you can restore
               the behaviour by using -dREALLYDEALYBIND but if you
               require continued use of this command you should contact
               the Ghostscript developers. Commercial customers of
               Artifex should email their support contact, free users
               are encouraged to talk to us on the #ghostscript IRC
               channel on irc.freenode.net.

Unrecoverable error: undefined in DELAYBIND
PostScript/PDF Interpreter finished. Return status 65280 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinB0W3vm"
The interpreter seems to have failed, cannot proceed !
leonerd commented 6 years ago

In case it's useful, the .svg file is attached here (named .svg.txt so github is happy with it) front.svg.txt

leonerd commented 6 years ago

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880650 appears to be related, though updating to the 3.71 version doesn't fix it for me.

SebKuzminsky commented 6 years ago

I agree this looks like a bug in ghostscript or pstoedit, not in PyCAM (though obviously pycam is affected by it, since it uses those programs).

In the long run we should teach PyCAM to read SVGs directly (#119).