atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.65k stars 357 forks source link

PdfFileReader in Version 0.9 shows Depreciation error #509

Open Y-Srivaishnavi opened 2 hours ago

Y-Srivaishnavi commented 2 hours ago

I would also like to point out that, the latest version of the library does not reflect as a valid library in VSCode. I had to manually install version 0.7.2 and upgrade it.

The code:

import camelot

tables = camelot.read_pdf("C:/Users/..../s42773-023-00225-x.pdf")
print(tables)

The error:

PyPDF2.errors.DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.
lucasdengcn commented 2 hours ago

+1 same issue.