Recently, I have worked with Jetson AGX Xavier to execute sample codes.
But suddenly it is showing that I couldn’t execute those codes and it is showing the following error:
Traceback (most recent call last):
File “depth_sensing.py”, line 27, in
import ogl_viewer.viewer as gl
File “/usr/local/zed/samples/depth sensing/depth sensing/python/ogl_viewer/viewer.py”, line 13, in
import pyzed.sl as sl
ImportError: /home/caft/.local/lib/python3.8/site-packages/pyzed/sl.cpython-38-aarch64-linux-gnu.so: undefined symbol: _ZN2sl6Camera19getRegionOfInterestERNS_3MatENS_10ResolutionE
But the zed tools are working accurately.
How to resolve this?
Here is the result after running ‘get_python_api.py’:
→ Downloading to ‘/usr/local/zed’
Detected platform:
linux_aarch64
Python 3.8
ZED SDK 4.0
→ Checking if https://download.stereolabs.com/zedsdk/4.0/whl/linux_aarch64/pyzed-4.0-cp38-cp38-linux_aarch64.whl exists and is available
→ Found ! Downloading python package into /usr/local/zed/pyzed-4.0-cp38-cp38-linux_aarch64.whl
→ Installing necessary dependencies
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: wheel in /home/caft/.local/lib/python3.8/site-packages (0.41.1)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: cython in /home/caft/.local/lib/python3.8/site-packages (0.29.36)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in /home/caft/.local/lib/python3.8/site-packages (1.23.5)
Defaulting to user installation because normal site-packages is not writeable
Processing ./pyzed-4.0-cp38-cp38-linux_aarch64.whl
Collecting numpy>=1.13 (from pyzed==4.0)
Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.6 kB)
Collecting cython>=3.0.0 (from pyzed==4.0)
Using cached Cython-3.0.10-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.2 kB)
Using cached Cython-3.0.10-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.5 MB)
Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
Installing collected packages: numpy, cython, pyzed
Successfully installed cython-0.29.36 numpy-1.23.5 pyzed-4.0
Done
To install it later or on a different environment run :
python -m pip install --ignore-installed /usr/local/zed/pyzed-4.0-cp38-cp38-linux_aarch64.whl