Hello.
I have a question about the camera used in picar-x.
All functions related to the camera, such as computer vision, color detection, face detection, and video car, are not working in the picar-x document.
It does not work and outputs an error as shown below.
I wonder why this error occurs.
I think I did the installation right as you said, but I wonder if I did something wrong.
Please run under desktop environment (eg: vnc) to display the image window
vilib 0.2.0 launching …
picamera2 0.3.12
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/numpy/core/init.py”, line 24, in
from . import multiarray
File “/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py”, line 10, in
from . import overrides
File “/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py”, line 8, in
from numpy.core._multiarray_umath import (
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/numpy/init.py”, line 130, in
from numpy.config import show as show_config
File “/usr/local/lib/python3.9/dist-packages/numpy/config.py”, line 4, in
from numpy.core._multiarray_umath import (
File “/usr/local/lib/python3.9/dist-packages/numpy/core/init.py”, line 50, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
- The Python version is: Python3.9 from “/usr/bin/python3”
- The NumPy version is: “1.26.2”
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: libopenblas.so.0: cannot open shared object file: No such file or directory
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/numpy/init.py”, line 135, in
raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
Traceback (most recent call last):
File “/home/pi/picar-x/example/video_car.py”, line 7, in
from vilib import Vilib
File “/usr/local/lib/python3.9/dist-packages/vilib-0.2.0-py3.9.egg/vilib/init.py”, line 2, in
from .vilib import Vilib
File “/usr/local/lib/python3.9/dist-packages/vilib-0.2.0-py3.9.egg/vilib/vilib.py”, line 16, in
import cv2
ImportError: numpy.core.multiarray failed to import