Quantcast
Viewing all articles
Browse latest Browse all 3780

Troubleshooting • Re: NO MODULE NAMED LIBCAMERA ERROR

libcamera is not a python module so you do not need to (cannot) import it.
What does this command show on your system?

Code:

libcamera-hello
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:

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>>> 
What does yours show if not in a venv ?

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



Viewing all articles
Browse latest Browse all 3780

Trending Articles