pdf2image-as-a-service
pdf2image-as-a-service copied to clipboard
OSError: [Errno 8] Exec format error: 'poppler_binaries/pdfinfo'
While running on an Apline docker, I'm getting the error:
`Traceback (most recent call last): File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 568, in pdfinfo_from_path proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 966, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1842, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: 'poppler_binaries/pdfinfo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "utils.py", line 94, in pdf_to_images return convert_from_bytes( File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 358, in convert_from_bytes return convert_from_path( File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 127, in convert_from_path page_count = pdfinfo_from_path( File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 594, in pdfinfo_from_path raise PDFInfoNotInstalledError( pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH? Traceback (most recent call last): File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 568, in pdfinfo_from_path proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 966, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1842, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: 'poppler_binaries/pdfinfo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "utils.py", line 94, in pdf_to_images return convert_from_bytes( File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 358, in convert_from_bytes return convert_from_path( File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 127, in convert_from_path page_count = pdfinfo_from_path( File "venv/lib/python3.10/site-packages/pdf2image/pdf2image.py", line 594, in pdfinfo_from_path raise PDFInfoNotInstalledError( pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH? `