I have a PiDog I am trying to program for a coworker (he builds, I code). Here is the most recent error from trying to run the 12_App_Control in /pidog/examples below:
momminator@PiDog513:~/pidog/examples $ sudo python3 12_app_control.py
vilib 0.3.18 launching …
picamera2 0.3.34
Traceback (most recent call last):
File “/home/momminator/pidog/examples/12_app_control.py”, line 5, in
from vilib import Vilib
File “/usr/local/lib/python3.13/dist-packages/vilib/_init_.py”, line 2, in
from .vilib import Vilib
File “/usr/local/lib/python3.13/dist-packages/vilib/vilib.py”, line 182, in
class Vilib(object):
...<635 lines>...
return img
File “/usr/local/lib/python3.13/dist-packages/vilib/vilib.py”, line 184, in Vilib
picam2 = Picamera2()
File “/usr/lib/python3/dist-packages/picamera2/picamera2.py”, line 341, in _init_
camera_num = self.global_camera_info()\[camera_num\]\['Num'\]
\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^
IndexError: list index out of range
It’s a new camera because the other one apparently was not installed properly (or fell off). I’ve reinstalled the software on new SD cards multiple times and it’s just not working. PiDog can do everything else except anything that requires the camera. Any other suggestions?



