WindmillWWindmill
Powered by
shoomowS
Windmill•3y ago•
15 replies
shoomow

Exception when importing Python's CV2 lib

Cv2 was added to the list of libraries that are installed with one name, but used with another. However, it still doesn't work.
{
    "error": {
        "name": "ExecutionErr",
        "message": "ExitCode: 1, last log lines:\nFile \"/tmp/windmill/wk-default-5adb1337158b-gtrgE/018c0760-ff83-780a-28a4-cf6d47fe78c2/wrapper.py\", line 8, in <module>\n    from u.shoomow import new_patient as inner_script\n  File \"/tmp/windmill/wk-default-5adb1337158b-gtrgE/018c0760-ff83-780a-28a4-cf6d47fe78c2/u/shoomow/new_patient.py\", line 6, in <module>\n    import cv2\n  File \"/tmp/windmill/cache/pip/opencv-python==4.8.1.78/cv2/__init__.py\", line 181, in <module>\n    bootstrap()\n  File \"/tmp/windmill/cache/pip/opencv-python==4.8.1.78/cv2/__init__.py\", line 153, in bootstrap\n    native_module = importlib.import_module(\"cv2\")\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/importlib/__init__.py\", line 126, in import_module\n    return _bootstrap._gcd_import(name[level:], package, level)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nImportError: libGL.so.1: cannot open shared object file: No such file or directory"
    }
}
{
    "error": {
        "name": "ExecutionErr",
        "message": "ExitCode: 1, last log lines:\nFile \"/tmp/windmill/wk-default-5adb1337158b-gtrgE/018c0760-ff83-780a-28a4-cf6d47fe78c2/wrapper.py\", line 8, in <module>\n    from u.shoomow import new_patient as inner_script\n  File \"/tmp/windmill/wk-default-5adb1337158b-gtrgE/018c0760-ff83-780a-28a4-cf6d47fe78c2/u/shoomow/new_patient.py\", line 6, in <module>\n    import cv2\n  File \"/tmp/windmill/cache/pip/opencv-python==4.8.1.78/cv2/__init__.py\", line 181, in <module>\n    bootstrap()\n  File \"/tmp/windmill/cache/pip/opencv-python==4.8.1.78/cv2/__init__.py\", line 153, in bootstrap\n    native_module = importlib.import_module(\"cv2\")\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/importlib/__init__.py\", line 126, in import_module\n    return _bootstrap._gcd_import(name[level:], package, level)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nImportError: libGL.so.1: cannot open shared object file: No such file or directory"
    }
}
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
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 cchardet lib
EnterEEnter / help
3y ago
Failed to import Python Libaries
LeandroLLeandro / help
14mo ago
Hey guys im getting an error using PyMuPDF python lib
OsmarOOsmar / help
14mo ago
Importing pgClient when using bun
KanaKKana / help
3y ago