Skip to content

Commit 0f7a0ef

Browse files
Update CHANGELOG.md for PR Unstructured-IO#3974
PR Unstructured-IO#3974 - bug fix
1 parent d570f46 commit 0f7a0ef

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## 0.17.7
2+
3+
### Enhancements
4+
5+
### Features
6+
7+
### Fixes
8+
Fix for 'PSSyntaxError' import error:
9+
"cannot import name 'PSSyntaxError' from 'pdfminer.pdfparser'"
10+
11+
Latest pdfminer-six doesn't import PSSyntaxError into pdfminer.pdfparser anymore. It must now be directly imported from its source (pdfminer.psexceptions)
12+
13+
This change will also work on the older version. In the older version, `pdfminer.pdfparser` imports PSSyntaxError from `pdfminer.psexceptions`.
14+
However they have since removed the PSSyntaxError import from `pdfminer.pdfparser`.
15+
16+
Therefore, for the new pdfminer version we must change to directly import from `pdfminer.psexceptions`.
17+
18+
So instead of
19+
`pdfminer_utils.py` -> `pdfminer.pdfparser` ->`pdfminer.psexceptions`
20+
21+
We can do
22+
`pdfminer_utils.py` -> `pdfminer.psexceptions`
23+
24+
PSSyntaxError is defined in `pdfminer.psexceptions` in both the old and new versions of pdfminer, so we will still get backward compatibility.
25+
26+
[Here is the commit](https://github.com/pdfminer/pdfminer.six/commit/b9b75ff85877b7cd373539c79014cbde39508969#diff-a0da8fc41f6e21cd3ab62f914df6ce72d433d3222168af458993d911a5dac37c) for the change on pdfminer.
27+
128
## 0.17.6-dev1
229

330
### Enhancements

0 commit comments

Comments
 (0)