WindmillWWindmill
Powered by
AlexKA
Windmill•2y ago•
8 replies
AlexK

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.
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 2d ago

rubenf

Infrastructure as code

rubenf · 3w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Python Dependency hell in windmill
JacobJJacob / help
12mo ago
weird dependency issue
BravoBBravo / help
17mo ago
Dependency issue after an update
kristinaKkristina / help
3w ago
Python Import Issue - Haystack library overriden
developerDdeveloper / help
2y ago