zed-sdk
zed-sdk copied to clipboard
get_python_api.py installs numpy v2 which give ValueError due to binary incompatibility
Preliminary Checks
- [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
- [X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.
Description
While doing environment setup on Ubuntu, I followed the instructions in How to Install ZED SDK on Linux
During SDK installation it asked following question -> "Do you want to install the Python API (recommended) [Y/n] ?"
And it executes get_python_api.py, which installs numpy v2
Collecting numpy>=1.13 (from pyzed==4.1) Using cached numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Which leads to following error while running simple hello_zed.py
Traceback (most recent call last): File "/home/ANT.AMAZON.COM/atahirra/zed_ws/hello_zed.py", line 21, in <module> import pyzed.sl as sl File "pyzed/sl.pyx", line 1, in init pyzed.sl ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Steps to Reproduce
- Follow the instructions in How to Install ZED SDK on Linux
- During the installation, you might have to answer some questions on the installation of dependencies, tools and samples. Type y for yes and n for no and hit Enter.
- type Y and hit Enter for "Do you want to install the Python API (recommended) [Y/n] ?
- Observe the numpy version installed
...
Expected Result
get_python_api.py should install compatible numpy version with latest Zed SDK
Actual Result
get_python_api.py, installs latest numpy which is not compatible with latest Zed SDK
ZED Camera model
ZED2
Environment
OS: Ubuntu 22.04.4 LTS
CPU: Intel i7-13800Hx20
GPU: Nvidia GeForce RTX 4060
ZED SDK version: 4.1.2
Anything else?
Workaround was installing numpy v1.26.4 which was last release for v1