Quantcast
Viewing all articles
Browse latest Browse all 1259

Python • FileNotFoundError when trying to import picamera module through Astro PI Replay Plugin

My program, which imports the picamera module was running smoothly when I ran it through Astro-Pi-Replay just until a few changes that I made to it. Now, even when I try to run a version of the program that was working before the changes were made, it still won't work, because I keep on getting the same error that persists through all my troubleshooting attemps:

Traceback (most recent call last):
File "C:\Users\....\main.py", line 19, in <module>
from picamera import PiCamera
File "C:\Users\....\AppData\Roaming\Python\Python310\site-packages\picamera\__init__.py", line 72, in <module>
from picamera.exc import (
File "C:\Users\....\AppData\Roaming\Python\Python310\site-packages\picamera\exc.py", line 41, in <module>
import picamera.mmal as mmal
File "C:\Users\....\AppData\Roaming\Python\Python310\site-packages\picamera\mmal.py", line 47, in <module>
from .bcm_host import VCOS_UNSIGNED
File "C:\Users\....\AppData\Roaming\Python\Python310\site-packages\picamera\bcm_host.py", line 47, in <module>
_lib = ct.CDLL('libbcm_host.so')
File "C:\Program Files (x86)\Thonny\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'libbcm_host.so' (or one of its dependencies). Try using the full path with constructor syntax.
File "C:\Program Files (x86)\Thonny\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files (x86)\Thonny\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
>>>

I have also attempted to delete and reinstall Thonny and all plugins several times and it still won't work. Please help. All the plugins are up to date.

Statistics: Posted by anrazdan — Sun Feb 04, 2024 4:05 pm



Viewing all articles
Browse latest Browse all 1259

Trending Articles