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

Not working anymore since 3.0 #2

Open
LincolnKermit opened this issue Aug 8, 2023 · 0 comments · May be fixed by #3
Open

Not working anymore since 3.0 #2

LincolnKermit opened this issue Aug 8, 2023 · 0 comments · May be fixed by #3

Comments

@LincolnKermit
Copy link

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.

@devinburnette devinburnette linked a pull request Oct 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant