brad / Inkscape-OpenSCAD-DXF-Export

Inkscape plugin that exports DXF files usable by OpenSCAD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Filename or extension is too long

alexander233 opened this issue · comments

Hi, when I run your extension, I get the following error (My current version of Inkscape is 0.91 and I am running it on Windows 7 / 64 bit):

Traceback (most recent call last):
  File "openscad_dxf.py", line 287, in <module>
    OpenSCADDXFEffect().affect()
  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 268, in affect
    self.effect()
  File "openscad_dxf.py", line 158, in effect
    object2path.ObjectToPath.effect(self)
  File "C:\Program Files\Inkscape\share\extensions\openscad_dxf\object2path.py", line 51, in effect
    self.call_inkscape("ObjectToPath", objects)
  File "C:\Program Files\Inkscape\share\extensions\openscad_dxf\inkinkex.py", line 159, in call_inkscape
    p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
  File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 633, in __init__
    errread, errwrite)
  File "C:\Program Files\Inkscape\python\Lib\subprocess.py", line 842, in _execute_child
    startupinfo)
WindowsError: [Error 206] The filename or extension is too long
commented

Same problem here for me, on Windows 10x64

@carlodri Is the file name really long? Please try shortening t to see if that helps

This error probably does not refer to the filename of the inkscape file or the output file. Shortening the file name and path did not help.

Thanks @alexander233 Unfortunately I don't have a windows machine to debug/fix this, so I will have to rely on someone from the community to make a pull request to fix this

commented

could be related to this point, i.e. a max number of characters allowed in the shell commands