I am trying to extract tabular data from pdf using camelot and I am getting the following error.
Code:
tables = camelot.read_pdf(file_name)
Error:
GhostscriptNotFound: Please make sure that Ghostscript is installed and available on the PATH environment variable
I have already installed Ghostscript and I have it available on the PATH environment variable.
Please find below version details:
- Windows-10-10.0.17134-SP0
- Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
- NumPy 1.14.3
- openCV 3.4.3
- Camelot 0.3.2
Please help resolve this issue.
This is how I solved for this error on a Windows computer, similar to what Alexander Garzo posted:
I then ran the following code in Python:
The output was "C:\Program Files\gs\gs9.55.0\bin\gsdll64.dll" which means the solution worked. I was then able to install and use Camelot with no problems.