Closed halloleo closed 1 week ago
When doing a lattice conversion I get the following error:
File "/my/venv/path/lib/python3.8/site-packages/camelot/backends/ghostscript_backend.py", line 34, in convert import ghostscript ModuleNotFoundError: No module named 'ghostscript'
Steps to reproduce the bug
Steps used to install camelot
camelot
brew install ghostscript
git clone https://github.com/py-pdf/pypdf_table_extraction.git
pip install ".[base]"
pip install opencv-python
Steps to be used to reproduce behavior:
Expected behavior
A atble in out.csv Environment
out.csv
pypdf-table-extraction
Additional context
I checked in the Python REPL of the pypdf-table-extraction venv:
>>> from ctypes.util import find_library >>> find_library("gs") '/opt/homebrew/lib/libgs.dylib'
but
>>> import ghostscript Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'ghostscript'
pip install ghostscript will do the trick. [tool.poetry.group.*.dependencies] are not compatible with pip extras for what I known.
pip install ghostscript
[tool.poetry.group.*.dependencies]
This worked. thanks.
When doing a lattice conversion I get the following error:
Steps to reproduce the bug
Steps used to install
camelot
brew install ghostscript
git clone https://github.com/py-pdf/pypdf_table_extraction.git
pip install ".[base]"
pip install opencv-python
Steps to be used to reproduce behavior:
Expected behavior
A atble in
out.csv
Environmentpypdf-table-extraction
repo from 20 Mar 2024Additional context
I checked in the Python REPL of the
pypdf-table-extraction
venv:but