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,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Python Dependency hell in windmill
JacobJJacob / help
11mo ago
weird dependency issue
BravoBBravo / help
16mo ago
Python Import Issue - Haystack library overriden
developerDdeveloper / help
2y ago
Recommendation for Using a Private Git Repository as a Python Dependency
NevetsNNevets / help
8mo ago