Closed juancarlosfarah closed 9 years ago
Thanks for your report. I will take it into account for the next version (i.e. improve robustness)
ocrmypdf currently checks if the command "python2" is available. This does not seem to be the case on your system. As the "python" command calls the python 2.7.5 interpreter, you can solve the issue on your system by creating a symbolic link from python2 to python.
ln -s /usr/local/bin/python /usr/local/bin/python2 (supposing that the path to your python binary is /usr/local/bin/python) (You can get the path to your python binary by calling "which python")
This is the case under linux (Debian 6) too. Setting a symlink helps.
To get this working, the actual command I needed to use in OS X was:
sudo ln -s /usr/bin/python /usr/bin/python2
Should be fixed in v3.0-rc2
I tried using the script, but when I tried to run it with the
-h
flag to see the usage, I was asked to install Python 2.x. As shown in the output below, I already have Python 2.7.5 installed.System:
Steps to reproduce:
$ sh ./OCRmyPDF.sh -h
Expected:
Actual: