camelot icon indicating copy to clipboard operation
camelot copied to clipboard

PyPDF?

Open text2sql opened this issue 2 years ago • 10 comments

I keep getting this error: DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead. I did the --upgrade Thank you

text2sql avatar Oct 02 '23 13:10 text2sql

Uninstall PyPDF and install an earlier version. If you're using pip do this: pip uninstall PyPDF2 pip install PyPDF2==1.26.0

noor-soreti avatar Oct 02 '23 16:10 noor-soreti

thanks, now it shows another error even though i properly install ghostscript and also did brew link --overwrite ghostscript as per this issue Screenshot 2023-10-02 at 4 57 03 PM

text2sql avatar Oct 02 '23 20:10 text2sql

can you share the steps you took for the installation and your environment set up?

noor-soreti avatar Oct 02 '23 21:10 noor-soreti

pip install, brew install , reinstall , updated the paths , let me know what specific info do you need the ghostscript is installed but camelot does not see it no matter what

text2sql avatar Oct 02 '23 21:10 text2sql

environment set up like are you running it locally or on jupyter or colab. if locally, what are you using? also wouldn't hurt to check your dependency installation versions with brew list and pip list. could provide some insight

noor-soreti avatar Oct 02 '23 21:10 noor-soreti

jupyter notebook, installed ghostscript with brew, brew list shows ghostscript installed , my intuition is that it is the conflict between the paths to ghostscript in camelot and in my system, although i did update the path in jupyter with gs_path = '/opt/homebrew/bin/gs'
in case this is of help: OSError: dlopen(libgs.so, 0x0006): tried: 'libgs.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibgs.so' (no such file), '/Users/pinoccio/anaconda3/lib/python3.11/lib-dynload/../../libgs.so' (no such file), '/Users/pinoccio/anaconda3/bin/../lib/libgs.so' (no such file), '/usr/lib/libgs.so' (no such file, not in dyld cache), 'libgs.so' (no such file), '/usr/local/lib/libgs.so' (no such file), '/usr/lib/libgs.so' (no such file, not in dyld cache)

text2sql avatar Oct 02 '23 22:10 text2sql

i don't have libgs.so anywhere

text2sql avatar Oct 02 '23 22:10 text2sql

Seem like the latest version camelot-py 0.11.0 (Feb 26, 2023) does not work for me. I have to install directly from the repository, by doing:

git clone https://github.com/camelot-dev/camelot
cd camelot
pip install -e .

also, you may need to install ghostscript (pip install ghostscript ).

thinh-huynh-re avatar Oct 04 '23 07:10 thinh-huynh-re

the Apple M1 might be using different installation paths, hence the problem?

legaltextai avatar Oct 04 '23 12:10 legaltextai

I 've managed to change the paths and run in the Terminal. It's working. The Jupyter still shows errors, but that's OK. Thank you for your help.

legaltextai avatar Oct 04 '23 12:10 legaltextai

This seems to trace back to an issue, #459, that appears to be resolved. Either way the user resolved their issue. Closing as resolved.

DoomedJupiter avatar Oct 29 '25 18:10 DoomedJupiter