-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unhandled Exception in the library crashes code binascii.Error: Odd-length string
#1370
Comments
Also, I am getting these unwanted
|
Thanks for this example. About the logs, I've not been able to reproduce them after the fix, not tried before : can you confirm ? |
adding test sample with similar results: |
Hello everyone, I know this is an old topic, but I am facing the same issue (binascii.Error: Odd-length string + Multiple definitions in dictionary at byte 0x3f42b for key /MediaBox) and I do not understand how it was fixed. I am using PyPDFDirectoryLoader from LangChain and the exact error is: File "/usr/local/lib/python3.10/dist-packages/langchain_community/document_loaders/pdf.py", line 247, in load Can you explain, please? Thank you so much in advance! |
See #2216 for the current state. |
@stefan6419846 thank you for your reply. I have already commented the blog you posted, but the author could not give me a real solution to the problem. I wondered if someone here could give me a detailed one. |
What happened? What were you trying to achieve?
I am trying to read text from a pdf file. But I am getting an error which I don't think is because of my code. The code crashes for the particular pdf mentioned below.
Environment
Which environment were you using when you encountered the problem?
$ python -m platform Windows-10-10.0.22000-SP0 $ python -c "import PyPDF2;print(PyPDF2.__version__)" 2.10.9
Code + PDF
This is a minimal, complete example that shows the issue:
PDF file: https://d4duas3s44z1s.cloudfront.net/Dat2020Live/document/test/question/Question_Report_299.pdf
don't add them to your tests!
Traceback
This is the complete Traceback I see:
The text was updated successfully, but these errors were encountered: