Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPDF? #436

Open
text2sql opened this issue Oct 2, 2023 · 10 comments
Open

PyPDF? #436

text2sql opened this issue Oct 2, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@text2sql
Copy link

text2sql commented Oct 2, 2023

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 text2sql added the bug Something isn't working label Oct 2, 2023
@noor-soreti
Copy link

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

@text2sql
Copy link
Author

text2sql commented Oct 2, 2023

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

@noor-soreti
Copy link

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

@text2sql
Copy link
Author

text2sql commented Oct 2, 2023

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

@noor-soreti
Copy link

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

@text2sql
Copy link
Author

text2sql commented Oct 2, 2023

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
Copy link
Author

text2sql commented Oct 2, 2023

i don't have libgs.so anywhere

@thinh-huynh-re
Copy link

thinh-huynh-re commented Oct 4, 2023

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 ).

@legaltextai
Copy link

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

@legaltextai
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants