Hi All
Using a Pi5 8gb, Set everything up, but unable to connect to the app, when trying to install the final part ;
sudo python3 13.app_control.py
It comes up with the error ;
“IndexError: list index out of range”
Full code below after running; sudo python3 13.app_control.py
vilib 0.3.16 launching …
picamera2 0.3.25
Traceback (most recent call last):
File “/home/admin/picar-x/example/13.app_control.py”, line 4, in
from vilib import Vilib
File “/usr/local/lib/python3.11/dist-packages/vilib/init.py”, line 2, in
from .vilib import Vilib
File “/usr/local/lib/python3.11/dist-packages/vilib/vilib.py”, line 182, in
class Vilib(object):
File “/usr/local/lib/python3.11/dist-packages/vilib/vilib.py”, line 184, in Vilib
picam2 = Picamera2()
^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/picamera2/picamera2.py”, line 257, in init
camera_num = self.global_camera_info()[camera_num][‘Num’]
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
IndexError: list index out of range
Any ideas? Have tried 32bit and 64bit raspberry pi OS and installed and reinstalled all required modules. Have also tried the latest image with ezblock pre installed - sound works with this os fails with all others, and connects to ezblock but ezblock doesnt work at all
Thanks in advance