robotpy / mostrobotpy

Official Repository of python implementation of WPILib components
https://robotpy.github.io
Other
9 stars 11 forks source link

cvnp false-positive noncontiguous input on windows only #99

Open truher opened 1 month ago

truher commented 1 month ago

Problem description

so i'm using CameraServer on the desktop, for testing.

here's a minimal case:

x = CameraServer.putVideo(..)
x.putFrame(np.zeros((10,10),dtype=np.uint8))

trips the contiguous-input check, but only on windows. on linux, it works fine.

i'm using python 3.11.9 and robotpy 2024.3.2.1

I don't need anything else that CameraServer does, so I switched to mjpeg_streamer, which works fine.

Operating System

Windows

Installed Python Packages

No response

Reproducible example code

No response

virtuald commented 3 weeks ago

Also reported on Linux: https://www.chiefdelphi.com/t/robotpy-opencv-raspberry-pi-help/470001/1

virtuald commented 3 weeks ago

That user reported that downgrading numpy to a 1.x version fixed the issue for them.