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

Error while reading whole PDF. #1

Open
aiyu-ayaan opened this issue Jun 16, 2024 · 0 comments
Open

Error while reading whole PDF. #1

aiyu-ayaan opened this issue Jun 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@aiyu-ayaan
Copy link
Owner

File "D:\PyCharm\GeminiCLI\src\gemini-cli\gemini-cli.py", line 92, in <module>
text = p.get_text(
^^^^^^^^^^^
File "D:\PyCharm\GeminiCLI\src\gemini-cli\pdf\pypdf_helper.py", line 42, in get_text
end = end if end is not None else self.reader.getNumPages()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\PyCharm\GeminiCLI.venv\Lib\site-packages\PyPDF2_reader.py", line 457, in getNumPages
deprecation_with_replacement("reader.getNumPages", "len(reader.pages)", "3.0.0")
File "D:\PyCharm\GeminiCLI.venv\Lib\site-packages\PyPDF2_utils.py", line 369, in deprecation_with_replacement
deprecation(DEPR_MSG_HAPPENED.format(old_name, removed_in, new_name))
File "D:\PyCharm\GeminiCLI.venv\Lib\site-packages\PyPDF2_utils.py", line 351, in deprecation
raise DeprecationError(msg)
PyPDF2.errors.DeprecationError: reader.getNumPages is deprecated and was removed in PyPDF2 3.0.0. Use len(reader.pages) instead.
@aiyu-ayaan aiyu-ayaan added the bug Something isn't working label Jun 16, 2024
@aiyu-ayaan aiyu-ayaan self-assigned this Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant