mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00
Update pdfminer_utils.py (#3974)
Fix for 'PSSyntaxError' import error: "cannot import name 'PSSyntaxError' from 'pdfminer.pdfparser'" Latest pdfminer-six doesn't import PSSyntaxError into `pdfminer.pdfparser` anymore. It must now be directly imported from its source (`pdfminer.psexceptions`)
This commit is contained in:
parent
d570f4624b
commit
27f503ce31
@ -19,6 +19,7 @@ This makes it impossible to write stable unit tests, for example, or to obtain r
|
||||
|
||||
### Fixes
|
||||
- **Removed out of date ubuntu Dockerfile.** The Dockerfile was out of date and non-functional.
|
||||
- **Fix for 'PSSyntaxError' import error: "cannot import name 'PSSyntaxError' from 'pdfminer.pdfparser'"** PSSyntaxError needed to be imported from its source 'pdfminer.psexceptions'.
|
||||
|
||||
## 0.17.4
|
||||
|
||||
|
@ -6,7 +6,7 @@ from pdfminer.converter import PDFPageAggregator
|
||||
from pdfminer.layout import LAParams, LTContainer, LTImage, LTItem, LTTextLine
|
||||
from pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManager
|
||||
from pdfminer.pdfpage import PDFPage
|
||||
from pdfminer.psparser import PSSyntaxError
|
||||
from pdfminer.psexceptions import PSSyntaxError
|
||||
from pydantic import BaseModel
|
||||
|
||||
from unstructured.logger import logger
|
||||
|
Loading…
x
Reference in New Issue
Block a user