Open Techlorine opened 4 months ago
same issue.
The maintainer didn't update that the numpy updated to v2.
To save potential poor souls wasting several hours like myself, I ended up using dockerfile like below
FROM stereolabs/zed:4.1-devel-cuda12.1-ubuntu22.04
#FROM stereolabs/zed:3.7-devel-cuda11.7-ubuntu22.04
#FROM stereolabs/zed:4.0-devel-cuda12.1-ubuntu22.04
COPY ZED_SDK_Ubuntu22_cuda12.1_v4.1.3.zstd.run /home/ZED_SDK_Ubuntu22_cuda12.1_v4.1.3.zstd.run
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
#RUN pip3 uninstall numpy -y
RUN rm -rf /usr/local/lib/python3.10/dist-packages/numpy*
RUN pip3 install numpy==1.26.4 opencv-python==4.6.0.66 opencv-contrib-python
#RUN python3 /usr/local/zed/get_python_api.py
Preliminary Checks
Description
I pulled the docker image
stereolabs/zed:4.1-runtime-cuda11.8-ubuntu22.04
and failed to ran my python script on my device. The output wasValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
. I couldn't importpyzed.sl
in my python interactive console either.P.S.: The pyzed and my script works well after manually downgrade numpy by
pip install numpy<=2
.Steps to Reproduce
sudo docker pull stereolabs/zed:4.1-runtime-cuda11.8-ubuntu22.04
sudo docker run --gpus all -it --privileged -v /path/to/depth_capture:/depth --network=host stereolabs/zed:4.1-runtime-cuda11.8-ubuntu22.04
python3
from pyzed import sl
...Expected Result
Actual Result
ZED Camera model
ZED2i
Environment