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

ValueError: invalid literal for int() with base 10: b'n' #9

Open
MartinThoma opened this issue Jul 31, 2020 · 0 comments
Open

ValueError: invalid literal for int() with base 10: b'n' #9

MartinThoma opened this issue Jul 31, 2020 · 0 comments

Comments

@MartinThoma
Copy link
Owner

Traceback (most recent call last):
[...]
File "/home/math/.pyenv/versions/3.8.4/lib/python3.8/site-packages/edapy/pdf.py", line 55, in find
data.append(get_pdf_info(pdf_path))
File "/home/math/.pyenv/versions/3.8.4/lib/python3.8/site-packages/edapy/pdf.py", line 87, in get_pdf_info
pdf_toread = PdfFileReader(fp, strict=False)
File "/home/math/.pyenv/versions/3.8.4/lib/python3.8/site-packages/PyPDF2/pdf.py", line 1084, in init
self.read(stream)
File "/home/math/.pyenv/versions/3.8.4/lib/python3.8/site-packages/PyPDF2/pdf.py", line 1803, in read
idnum, generation = self.readObjectHeader(stream)
File "/home/math/.pyenv/versions/3.8.4/lib/python3.8/site-packages/PyPDF2/pdf.py", line 1667, in readObjectHeader
return int(idnum), int(generation)
ValueError: invalid literal for int() with base 10: b'n'

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

No branches or pull requests

1 participant