Closed sulunemre closed 2 years ago
I haven't tested the program with Windows 11 since I still run Windows 10. On Linux it still works for me with pypdf2 1.27.7 (the latest version). They have started development back again, though, so it could be a bug in the 1.27.6 distribution. Try upgrading pypdf2, or maybe regressing it to something like 1.26.0 if that doesn't work.
If that still doesn't work, open a Python shell instance and type import PyPDF2
and see if your system is correctly set up to do the imports.
I tried the exact same steps today and it works 😄 I think it was because of this bug in pypdf2 and it's fixed in a recent release yesterday (version 1.27.7)
I believe this needs to be reopened as the same breaking change was implemented in pydf2's 2.0 release. Either https://github.com/abarker/pdfCropMargins/blob/master/src/pdfCropMargins/main_pdfCropMargins.py#L71 should be importing from PyPDF2.errors
and require a 2.x release of PyPDF2, or this package should require a 1.x release.
I pushed a bug fix out (1.0.6) which tries the errors
module and then the utils
module if that fails.
This fixed things for us downstream, thanks.
pypdf2 package is not found though it is installed.
Install output:
Run output: