shoomowS
Windmill3y 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"
    }
}
Was this page helpful?