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

in unget, assert isinstance(byte, PDFByte), AssertionError] #16

Open
tballison opened this issue Nov 21, 2019 · 1 comment
Open

in unget, assert isinstance(byte, PDFByte), AssertionError] #16

tballison opened this issue Nov 21, 2019 · 1 comment
Labels
good first issue Good for newcomers

Comments

@tballison
Copy link

[Traceback (most recent call last):, File "/usr/local/bin/polyfile", line 11, in <module>, load_entry_point('polyfile', 'console_scripts', 'polyfile')(), File "/Users/allison/Documents/tob/polyfile/__main__.py", line 72, in main, for match in matcher.match(file_path, progress_callback=progress_callback):, File "/Users/allison/Documents/tob/polyfile/polyfile.py", line 170, in match, yield from submatch_iter, File "/Users/allison/Documents/tob/polyfile/pdf.py", line 288, in submatch, yield from parse_pdf(file_stream, matcher=self.matcher, parent=self), File "/Users/allison/Documents/tob/polyfile/pdf.py", line 243, in parse_pdf, object = parser.GetObject(), File "/Users/allison/Documents/tob/polyfile/pdfparser.py", line 426, in GetObject, self.token = self.oPDFTokenizer.TokenIgnoreWhiteSpace(), File "/Users/allison/Documents/tob/polyfile/pdfparser.py", line 396, in TokenIgnoreWhiteSpace, token = self.Token(), File "/Users/allison/Documents/tob/polyfile/pdfparser.py", line 373, in Token, self.oPDF.unget(self.byte), File "/Users/allison/Documents/tob/polyfile/pdfparser.py", line 240, in unget, assert isinstance(byte, PDFByte), AssertionError]

File: govdocs/176/176361.pdf

@ESultanik
Copy link
Collaborator

This was likely fixed by virtue of switching PDF parser implementations. We will confirm and, if so, close this issue.

@ESultanik ESultanik added the good first issue Good for newcomers label Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants