Open HepaxCodex opened 1 year ago
I am also facing the same issue. It's working fine on my local machine with Ububtu and Python 3.8. But I move my code to Centos server with Python 3.10, I get the "No module named ghostscript" error. Any fix for this ?
I faced a similar issue and it looked like all I was missing was a pip install ghoscript
. For some reason the wrapper did not get installed properly?
pip install ghoscript
did solve the issue. Somehow it's not detecting the installed lib and the wrapper enables that.
I encountered this issue back in 2020. See issue https://github.com/camelot-dev/camelot/issues/193. A lot of distributions (both OS and python, ex. Anaconda) would essentially only install the gs binary and not the associated libraries. IMHO this is not a Camelot issues, but more a Ghostscript install issue.
you have to install ghostscript:
pip install ghostscript
Both of these comments have a typo on the package name.
I faced a similar issue and it looked like all I was missing was a
pip install ghoscript
. For some reason the wrapper did not get installed properly?
pip install ghoscript
did solve the issue. Somehow it's not detecting the installed lib and the wrapper enables that.
After following Camelot instructions (and a few other dead ends), python is unable to find ghostscript module.
Suggest:
Steps to reproduce the bug
Installation:
brew update; brew upgrade; # Upgrade and update homebrew
brew install ghostscript
conda -v -n my_env -c conda-forge camelot-py
Steps to be used to reproduce behavior:
python3 -c "from ctypes.util import find_library; print(find_library(\"gs\"))" # Outside of conda env
python3 -c "import ghostscript"
conda activate my_env
python -c "from ctypes.util import find_library; print(find_library(\"gs\"))" # Per Camelot Docs
python -c "import ghostscript"
Expected behavior
Code
Environment
uname -a
Darwin mylappy.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
Additional context
I have a development environment in conda with more deps, and also replicated with a fresh env, hopefully the dilineartion is clear in the environment specs.