You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff 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`.
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.
0 commit comments