waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.57k stars 357 forks source link

libmmal.so: cannot open shared object file: No such file or directory #716

Closed harshavardhannarla closed 2 years ago

harshavardhannarla commented 2 years ago

Iam unable to import picamera module , It is giving error :libmmal.so: cannot open shared object file: No such file or directory

Rasberry pi 3b+ with 64bit rasberry pi os

XPbIM3 commented 2 years ago

Same with me. -Raspberry Pi 4B 4Gb -64Bit rasp os -libmmal.so is present in /opt/vc/lib/libmmal.so but seem to be a 32bit binary

6by9 commented 2 years ago

MMAL (which picamera uses) is not supported on 64bit userland https://github.com/raspberrypi/userland/issues/688

DUCHUAN99 commented 11 months ago

I use a 32bit operating system on raspberry 3b+ and still encounter the above error, what should I do?

Swarkin commented 10 months ago

I have the same issue on 32bit raspberry pi model b

VisheshSingh1 commented 8 months ago

did you guys got any solution .. I am getting same error .. using model 3 b os 32bit

Liuss44 commented 8 months ago

I had same error and I solved it by moving

/opt/vc/lib/libmmal_vc_client.so /opt/vc/lib/libmmal_util.so /opt/vc/lib/libmmal_core.so /opt/vc/lib/libmmal_components.so /opt/vc/lib/libmmal.so

into

/usr/lib/

If it cant find any other files just use sudo find / -name "name of the file" and move then into > /usr/lib/

worked for me

hope this helps. :)