multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_exec/tesseract.py", line 332, in generate_pdf p = run(args_tesseract, stdout=PIPE, stderr=STDOUT, timeout=timeout, check=True) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/subprocess/__init__.py", line 51, in run proc = subprocess_run(args, env=env, **kwargs) File "/usr/local/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['tesseract', '-l', 'fra', '-c', 'textonly_pdf=1', '/tmp/ocrmypdf.io.nmy1akt3/000003_ocr.png', '/tmp/ocrmypdf.io.nmy1akt3/000003_ocr_tess', 'pdf', 'txt']' died with . The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 213, in exec_page_sync (ocr_out, text_out) = ocr_engine_textonly_pdf(ocr_image_out, page_context) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_pipeline.py", line 651, in ocr_engine_textonly_pdf ocr_engine.generate_pdf( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/builtin_plugins/tesseract_ocr.py", line 163, in generate_pdf tesseract.generate_pdf( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_exec/tesseract.py", line 344, in generate_pdf raise SubprocessOutputError() from e ocrmypdf.exceptions.SubprocessOutputError """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 195, in _run_ocr _download_ocr_and_upload_document(id_) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 75, in _download_ocr_and_upload_document _ocr(file_.name, file_.name) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 55, in _ocr ocr(input_filename, output_filename, language=['fra'], progress_bar=False, jobs=1) # type: ignore File "/usr/local/lib/python3.9/site-packages/ocrmypdf/api.py", line 340, in ocr return run_pipeline(options=options, plugin_manager=plugin_manager, api=True) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 374, in run_pipeline exec_concurrent(context, executor) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 271, in exec_concurrent executor( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_concurrent.py", line 82, in __call__ self._execute( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/builtin_plugins/concurrency.py", line 134, in _execute for result in results: File "/usr/local/lib/python3.9/multiprocessing/pool.py", line 870, in next raise value ocrmypdf.exceptions.SubprocessOutputError