Skip to content

Conversation

@rickwu666666
Copy link
Contributor

@rickwu666666 rickwu666666 commented Dec 24, 2025

To fix the issue of lacking libs for import cv2. ImportError: liblapack.so.3: cannot open shared object file: No such file or directory. And ImportError: libblas.so.3: cannot open shared object file: No such file or directory

Description

We found it not able to find liblapack.so.3 and libblas.so.3 while import cv2.

Resolved issues

Documentation

Tests

We builded and tried in UC24.

ce-certification-qa@localhost:~$ sudo snap install checkbox24_7.0.0-dev97_arm64.snap --dangerous                                                                                     
checkbox24 7.0.0-dev97 installed
ce-certification-qa@localhost:~$ checkbox-koto.shell 
checkbox-koto runtime shell, type 'exit' to quit the session
ce-certification-qa@localhost:/home/ce-certification-qa$ export|grep -i ld_library
declare -x LD_LIBRARY_PATH="/usr/lib/aarch64-linux-gnu:/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void:/snap/checkbox-koto/12/usr/lib:/snap/checkbox-koto/12/usr/lib/aarch64-linux-gnu:/snap/checkbox-ce-oem/current/usr/lib/aarch64-linux-gnu:/snap/checkbox-koto/12/checkbox-runtime/lib:/snap/checkbox-koto/12/checkbox-runtime/lib/aarch64-linux-gnu:/snap/checkbox-koto/12/checkbox-runtime/usr/lib/aarch64-linux-gnu:/snap/checkbox-koto/12/checkbox-runtime/usr/lib/aarch64-linux-gnu/lapack:/snap/checkbox-koto/12/checkbox-runtime/usr/lib/aarch64-linux-gnu/blas:/snap/checkbox-koto/12/checkbox-runtime/lib/fwts"
ce-certification-qa@localhost:/home/ce-certification-qa$ python3
Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2

>>> 

To fix the issue of lacking libs for import cv2. ImportError: liblapack.so.3: cannot open shared object file: No such file or directory. And ImportError: libblas.so.3: cannot open shared object file: No such file or directory
@rickwu666666 rickwu666666 changed the title Append LD_LIBRARY_PATH for lapack and blas Append LD_LIBRARY_PATH for lapack and blas (Bugfix) Dec 24, 2025
Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, had a branch ready and forgot to PR it. Thanks for doing this

@Hook25 Hook25 merged commit 14c26ec into main Jan 12, 2026
40 of 42 checks passed
@Hook25 Hook25 deleted the append-libs-path-for-import-cv2 branch January 12, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants