Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_python_api.py installs numpy v2 which give ValueError due to binary incompatibility #641

Open
2 tasks done
26atul05 opened this issue Jun 26, 2024 · 3 comments
Open
2 tasks done

Comments

@26atul05
Copy link

26atul05 commented Jun 26, 2024

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • 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

  1. Follow the instructions in How to Install ZED SDK on Linux
  2. 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.
  3. type Y and hit Enter for "Do you want to install the Python API (recommended) [Y/n] ?
  4. 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

@gagapaga
Copy link

gagapaga commented Jul 1, 2024

Did you find a solution? I have the same error.

@26atul05
Copy link
Author

26atul05 commented Jul 1, 2024

Yes, I have mentioned the workaround at the end of the bug.
Uninstall numpy v2.0.0 and install last supported version of v1 that is v1.26.4 using pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants