"Failed to import PDF" on first run
mskblackbelt opened this issue · 8 comments
Just downloaded the latest version (1.7.4) on a Mac running Mathematica 11.3.0 and macOS 10.14.3. After initializing (Needs...
), I see no outputs. Trying to evaluate MaTeX["x^2"]
gives the errors:
Import: Cannot import data as PDF format
Failed to import PDF. This is unexpected. Please go to https://github.com/szhorvat/MaTeX and create a bug report.
I need more information about your setup. Please download the notebook and follow the instructions within.
Somehow the link went missing. Please download this notebook:
and follow the instructions within.
Also let me know what TeX system you are using, and if you have installed any instances of Ghostscript yourself (with MacPorts, Homebrew or from elsewhere)
Can you tell me what TeX system you are using? If you are unsure, show me where you downloaded it from.
Did you ever manually (separately) install Ghostscript, or are you using the Ghostscript that came with your TeX system? If you did, where did you obtain Ghostscript from?
There are problems with your email. Can you either use the GitHub interface, or just email me directly? My address is at the beginning of the troubleshooting notebook. I believe that the latest MacTeX has Ghostscript 9.23 and you have 9.26. Do you have any idea why that might be?
In fact it's better if you just email me directly until we sort everything out. I think it'll take a bit of experimentation. I have the same setup that you say you have. I would like to find the differences.
Summary of the outcome:
Ghostscript was installed using Homebrew. This version of Ghostscript kept crashing for some reason (possibly because it was used unsupported CPU instructions).
When a process started with RunProcess
crashes, currently Mathematica returns the ExitCode as None
(i.e. not a numerical quantity). The exit code was checked using !=
which does not evaluate for non-numerical quantities, and thus MaTeX did not report Ghostscript's failure.
A partial fix was committed in 2a1a685