camelot-dev / camelot

A Python library to extract tabular data from PDFs
https://camelot-py.readthedocs.io
MIT License
2.95k stars 465 forks source link

mac m1 Ghostscript is not installed. #464

Open sanyuanya opened 10 months ago

sanyuanya commented 10 months ago

Describe the bug Ghostscript is not installed. You can install it using the instructions here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html

I have installed brew install ghostscript tcl-tk but it doesn't work

Steps to reproduce the bug

Expected behavior

Code

import camelot

# add your code here

PDF

Screenshots

Environment

Additional context

jsoma commented 10 months ago

Try these suggestions here. The quickest solution is probably this one:

mkdir -p ~/lib
ln -s "$(brew --prefix gs)/lib/libgs.dylib" ~/lib
ditarnnt commented 4 months ago

it work like a charm

karaposu commented 2 months ago

@jsoma answer Doesnt work for me. I am using M1 Pro.

JingyiXXX commented 5 hours ago

works for me, I am using mac M3 chip