I have been using camelot for our project, but since 2 days I got following errorMessage. When trying to run following code snippet:
import camelot
tables = camelot.read_pdf('C:\\Users\\user\\Downloads\\foo.pdf', pages='1')
I get this error:
DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.
I checked this file and it does use pdfFileReader: c:\ProgramData\Anaconda3\lib\site-packages\camelot\handlers.py
I thought that I can specify the version of PyPDF2, but it will be installed automatically(because the library is used by camelot) when I install camelot. Do you think there is any solution to specify the version of PyPDF2 manually?
camelot
is specified that it needsPyPDF2>=1.26.0
. So as long as you install a version that satisfies that requirement, everything should be fine. An issue regarding this problem already exists on their GitHub. – Oxapip install pypdf<3.0.0
– Midst