AlexK
AlexK
WWindmill
Created by AlexK on 5/20/2024 in #help
Python dependency managment issue withPyMuPDF
I'm tyring to use PyMuPDF to do some PDF operations, I get the following error
job 018f95c5-bbf5-0662-29b8-e549ac3b7426 on worker wk-worker-239.ec2.internal-D5Wi2 (tag: python3)


--- PYTHON CODE EXECUTION ---

Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/tmp/windmill/wk-worker-239.ec2.internal-D5Wi2/018f95c5-bbf5-0662-29b8-e549ac3b7426/wrapper.py", line 9, in <module>
from u.alexkogan.pdf_url_extraction_and_classification import a as inner_script
File "/tmp/windmill/wk-worker-239.ec2.internal-D5Wi2/018f95c5-bbf5-0662-29b8-e549ac3b7426/u/alexkogan/pdf_url_extraction_and_classification/a.py", line 2, in <module>
import pymupdf
File "/tmp/windmill/cache/pip/pymupdf==1.24.4/pymupdf/__init__.py", line 28, in <module>
from . import extra
File "/tmp/windmill/cache/pip/pymupdf==1.24.4/pymupdf/extra.py", line 10, in <module>
from . import _extra
ImportError: libmupdf.so.24.2: cannot open shared object file: No such file or directory
job 018f95c5-bbf5-0662-29b8-e549ac3b7426 on worker wk-worker-239.ec2.internal-D5Wi2 (tag: python3)


--- PYTHON CODE EXECUTION ---

Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/tmp/windmill/wk-worker-239.ec2.internal-D5Wi2/018f95c5-bbf5-0662-29b8-e549ac3b7426/wrapper.py", line 9, in <module>
from u.alexkogan.pdf_url_extraction_and_classification import a as inner_script
File "/tmp/windmill/wk-worker-239.ec2.internal-D5Wi2/018f95c5-bbf5-0662-29b8-e549ac3b7426/u/alexkogan/pdf_url_extraction_and_classification/a.py", line 2, in <module>
import pymupdf
File "/tmp/windmill/cache/pip/pymupdf==1.24.4/pymupdf/__init__.py", line 28, in <module>
from . import extra
File "/tmp/windmill/cache/pip/pymupdf==1.24.4/pymupdf/extra.py", line 10, in <module>
from . import _extra
ImportError: libmupdf.so.24.2: cannot open shared object file: No such file or directory
I've also tried adding the exact requirements PyMuPDF==1.24.4 PyMuPDFb==1.24.3 No change to the error message.
9 replies