Closed NamelessUzer closed 2 years ago
That's a Windows/Numpy bug that recently got introduced. The Windows developers are apparently promising a fix in January. The link in the error message describes the problem.
The pdfCropMargins program doesn't even require Numpy, so one workaround would be to simply use pip to uninstall Numpy. (The pdfCropMargins program uses Pillow, which simply tries to import Numpy to see if it is available. But Numpy is throwing a RuntimeError
instead of the ImportError
that the Pillow code looks for.)
If you need both Numpy and pdfCropMargins installed, another possible workaround to try (discussed here: https://stackoverflow.com/questions/64654805/how-do-you-fix-runtimeerror-package-fails-to-pass-a-sanity-check-for-numpy-an) is to revert the numpy version:
pip install numpy==1.19.3