-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: