libcamera is not a python module so you do not need to (cannot) import it.
What does this command show on your system?I am assuming you are running Raspberry Pi OS with desktop (64-bit) "Bookworm"
If I do this on a Pi5 running Bookworm NOT in a venv, it does not give an error:What does yours show if not in a venv ?
Also, did you create your venv with system packages or not?
What does this command show on your system?
Code:
libcamera-hello
If I do this on a Pi5 running Bookworm NOT in a venv, it does not give an error:
Code:
pi@pi5-4GB:~ $ pythonPython 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> from picamera2 import Picamera2>>>
Also, did you create your venv with system packages or not?
Code:
python -m venv --system-site-packages env
Statistics: Posted by neilgl — Mon Apr 15, 2024 7:29 pm