ArduCAM / Arducam_tof_camera

46 stars 18 forks source link

Python examples not working with latest NumPy #75

Open light-robotics opened 2 weeks ago

light-robotics commented 2 weeks ago

Just reinstalled everything on a fresh RPI 4 and got an error: "ValueError: resize only works on single-segment" when trying to run python examples with getting raw data. It appeared that code doesn't work with latest numpy (2.0.0), downgrading back to previously used numpy==1.26.4 solved the issue for me. Please fix the code to work correctly with latest numpy or pin the older version in requirements.

Hope that helps to those who face this error.