I am trying to extract tabular data from pdf using camelot and I am getting the following error.
tables = camelot.read_pdf(file_name)
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:
Please help resolve this issue.
I unistalled the 64bit and
Install the 32bit version
Add the following two paths on Windows Environment Variables:
C:\Program Files(x86)\gs\gs9.26\bin
C:\Program Files(x86)\gs\gs9.26\lib
and now it works
Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required
Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:
C:\Program Files\gs\gs9.26\bin
C:\Program Files\gs\gs9.26\lib
For me using brew link -f --overwrite ghostscript
solved the issue.
I would recommend checking the suggested solutions on https://github.com/atlanhq/camelot/issues/282. That's where I also found my fix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With