pdf-to-txt-python icon indicating copy to clipboard operation
pdf-to-txt-python copied to clipboard

Not working anymore since 3.0

Open LincolnKermit opened this issue 10 months ago • 0 comments

Pdf File Reader is deprecated. It has been removed since PyPDF2 3.0

Here the log:

Traceback (most recent call last): File "C:\Users\Snow\Documents\Workspace\MonCahier\dev_team\main.py", line 12, in <module> Split.split(directory, filename) File "C:\Users\Snow\Documents\Workspace\MonCahier\dev_team\Split.py", line 8, in split inputpdf = PdfFileReader(open(filename, "rb")) File "C:\Users\Snow\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\PyPDF2\_reader.py", line 1974, in __init__ deprecation_with_replacement("PdfFileReader", "PdfReader", "3.0.0") File "C:\Users\Snow\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\PyPDF2\_utils.py", line 369, in deprecation_with_replacement deprecation(DEPR_MSG_HAPPENED.format(old_name, removed_in, new_name)) File "C:\Users\Snow\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\PyPDF2\_utils.py", line 351, in deprecation raise DeprecationError(msg) PyPDF2.errors.DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.

LincolnKermit avatar Aug 08 '23 02:08 LincolnKermit