camelot icon indicating copy to clipboard operation
camelot copied to clipboard

Ghostscript install through pip not working, .exe install requires admin permission

Open radian314 opened this issue 2 years ago • 1 comments

I cannot use camelot because I need admin privileges to install ghostscript as an .exe on Windows 10, even though I am able to install it through pip and add it to path- camelot doesn't recognise it, though. Is there any way around this?

The error message I'm getting is as follows: "OSError: Ghostscript is not installed. You can install it using the instructions here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html"

  • OS: Windows 10
  • Python version: 3.9.7
  • Numpy version: 1.25.1
  • Ghostscript version: 0.7
  • Camelot version: 0.11.0

radian314 avatar Jul 17 '23 12:07 radian314

@radian314 you can avoid using (and needing to install) Ghostscript by using poppler as an alternative backend for converting pdf to png.

You'll need to install pdftopng, which is available by pip or on conda-forge

then follow this: https://camelot-py.readthedocs.io/en/master/user/advanced.html#use-alternate-image-conversion-backends

(the key is adding the argument backend="poppler")

(I'm not a dev here, but I figured out this workaround to the same problem so want to share)

dlevine01 avatar Jul 17 '23 18:07 dlevine01

The current release, v1.0.0, does not require Ghostscript. Closing as resolved.

DoomedJupiter avatar Mar 21 '25 18:03 DoomedJupiter