Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4990

Camera board • Re: TypeError: from_ndarray() got an unexpected keyword argument 'width' error when running Pi Camera 3 with venv and Po

$
0
0
Hi, unfortunately the standard distribution of PyAV does not have all the features required to work with Picamera2 (specifically, it doesn't always deal correctly with images where there is "padding" on the end of each row of pixels), and I think this may be what is going wrong. Therefore you need to use the version distributed in Raspberry Pi's apt repository (python3-av, I think it is called). When using a venv, the --system-site-packages option should enable you to use the correct version, but I don't know the runes for poetry, I'm afraid.

Statistics: Posted by therealdavidp — Wed Mar 06, 2024 9:35 am



Viewing all articles
Browse latest Browse all 4990

Trending Articles