raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
887 stars 186 forks source link

[HOW-TO] Manipulate Pi Camera from Thonny #1018

Open cbarreto97 opened 6 months ago

cbarreto97 commented 6 months ago

I want to use a Raspberry Pi camera module 3 with my Raspberry Pi 4 B to recognize some ArUco markers but I've run into so many errors. My goal right now is to be able to manipulate the camera through Thonny but it hasn't worked and now I have a ModuleNotFound error for PyQt5 but it does not let me install it through Thonny and I've tried to it is already pre-installed with my raspberry pi (I tried to install it through a terminal and tried to download it within the virtual environment that I am using but the requirements were already satisfied.) Is there another way to redirect PyQt5 to the virtual environment that I'm using?image

davidplowman commented 6 months ago

Normally the easiest answer is to create your virtual environment with the --system-site-packages option, which should make all the pre-installed Python packages available. Does that work for you? I'm afraid I don't specifically know anything about Thonny.