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
{{ message }}
Repository navigation
Unpaper PermissionError: The process cannot access the file because it is being used by another process #974
Describe the bug
Can't use option deskew, clean and clean_final in the ocrmypdf.ocr() method, it returns the error in the title specifically for a temporary file called "output.pgm". This file is not used by any other process.
The solution is to upgrade to Python 3.10, the only released version with the fix available python/cpython#24793
in addition this requires a change to ocrmypdf to take advantage of the new version.
I suspect it's actually a virus scanner process triggering this issue.
Activity
jbarlow83 commentedon Jun 2, 2022
After analysis it turns this is a Python issue:
https://bugs.python.org/issue35144
The solution is to upgrade to Python 3.10, the only released version with the fix available
python/cpython#24793
in addition this requires a change to ocrmypdf to take advantage of the new version.
I suspect it's actually a virus scanner process triggering this issue.
unpaper: use TemporaryDirectory(ignore_cleanup_errors=True) where ava…