I’m having issues importing sketch files. I get the same error regardless of the contents of the .sketch file, I’ve tried multiple different files with different file names, and also dragging the file into preview vs importing via terminal. I’ve tried reinstalling SketchImport, restarting my computer, reinstalling fuse, and nothing seems to work.
I’m on OSX 10.11.1, Sketch v 3.4.2, and Fuse v 0.9.3
Here’s the error I get:
Unhandled Exception:
SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
fuse: Import failed: An error occurred
The SketchImporter has had a ton of bugs weeded out the last weeks, and this file could quite possibly be working with the lastest version. If you’d like I can have a lot at the file and tell you why it’s not working now. Just send it to me.
The error you are posting is that sketchtool does not output any JSON from the dump command. Could you please check if sketchtool dump <filename> gives you any output? If you don’t have sketchtool in your path please try /Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool dump <filename>
I am having the same issue with the same results with the exact same versions as the original poster.
❯ fuse import robinhood.sketch
Analyzing robinhood.sketch. This can take a while if the file is big.
Unhandled Exception:
SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
fuse: Import failed: An error occurred
I tried using mono directly with the same results:
❯ mono /Applications/Fuse.app/Contents/SketchImporter/SketchImporter.exe robinhood.sketch
Analyzing robinhood.sketch. This can take a while if the file is big.
Unhandled Exception:
SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
With 0.9.3 the command you sent me crashes with a system font error (which is fixed in development). The error you are referring to is that sketchtool is run, but sketchtool dump robinhood.sketch returns empty string. Can you please send me the output of sketchtool -v and also see that the dump command gives output?
Sorry for missing your reply. Can you please try to update your sketchtool? Mine is version 3.4.2. I think you sketchtool is too old to read your sketchfile.
I get this error why importing sketch, while my version of sketchtool is 3.4.4.
Demen fuse creation $ fuse import new.sketch
Analyzing new.sketch. This can take a while if the file is big.
Unhandled Exception:
SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: SketchImporter.UserException: fuse import is unable to import your Sketch file due to an internal error. See above output for more information.
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
fuse: Import failed: An error occurred
It’s really a nightmare. I am playing around with so many ways and cannot find out a solution. Please help
This error is because sketchtool cannot export the assets from the sketch file. Can you check that you can run sketchtool with the sketch-file, or send me the sketchfile so I can test.
/usr/local/bin/sketchtool -v
-bash: /usr/local/bin/sketchtool: No such file or directory
/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool -v
sketchtool Version 3.4.4 (395)
/usr/local/bin/sketchtool metadata new.sketch
-bash: /usr/local/bin/sketchtool: No such file or directory