# Pidog app get out of range error when try to install

**URL:** <https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815>\
**Category:** General\
**Created:** [March 11, 2025, 4:07pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815 "2025-03-11T16:07:36Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 11, 2025, 4:07pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/1 "2025-03-11T16:07:36Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/e/eaf646496f48b55a65181d5ff961c52bcf6b9e20.jpeg)

I have installed all the modules, and REinstalled, but when I attempt to run the script ( several times) I get the index error……of course the app does not even recognize the pidog if I try to connect also.

Any one have any thoughts?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 12, 2025, 3:09pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/2 "2025-03-12T15:09:54Z")

</div>

The error indicates that the camera module is either not connected or not connected properly. We recommend that you check if the camera is securely connected. Please verify this according to the images we provided.

 ![IMG_20230213_162428_edit_252218622802660](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/53f4037d939d906cda14538123215c8401796947.jpeg)  
 ![IMG_20230213_162510_edit_252207856917245](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/ba80c19c714d3a50327fc174e40f2c41f6c2ebe2.jpeg)  
 ![IMG_20230213_162530_edit_252195039823497](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/5a949acad8201429dba9a471615500e7388c1ba4.jpeg)

 ![IMG_20230213_162906_edit_252182489988082](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/18ef930a8ae7576ed6131050571b2eb575ca5f1e.jpeg)

 ![f51d4ac2fa829f24719fc3827ae6456a (2)](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/a/aada3702065a6f5315fc18d331d3fcdc8295c43f.jpeg)

Once you confirm that everything is connected properly, please run the `libcamera-hello` test for the camera and send us a screenshot of the printed information.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 12, 2025, 5:38pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/3 "2025-03-12T17:38:31Z")

</div>

![image0.jpeg](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/3/3484f037d94299e1b681adff5e4b9361ad8f4dd4.jpeg)

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 13, 2025, 9:40am UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/4 "2025-03-13T09:40:03Z")

</div>

I recommend that you provide us with an image of the camera wiring so that we can assist you in analyzing and solving the issue.

Additionally, please try replacing the FFC cable with a spare one to see if the camera can be recognized and function properly.

You can also execute the `libcamera-hello` command to test the camera.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 13, 2025, 4:59pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/5 "2025-03-13T16:59:23Z")

</div>

![image0.jpeg](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/7/72684abe8c2f9c3d113cdf3ce4df883ac6f537a9.jpeg)

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 13, 2025, 5:02pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/6 "2025-03-13T17:02:36Z")

</div>

![image0.jpeg](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/7/7e8f472efd2598b3cd1e42095ec29fe2ba29931f.jpeg)

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 13, 2025, 5:03pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/7 "2025-03-13T17:03:30Z")

</div>

![image0.jpeg](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/a/a3e23090cb9d68def469cabb2aca113926254d45.jpeg)

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 14, 2025, 3:17am UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/8 "2025-03-14T03:17:16Z")

</div>

From the pictures you provided, the camera wiring is correct.  
We recommend that you execute the libcamera-hello command again to see if the camera can be detected.  
If it still cannot be detected, we will send you a new camera module.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 14, 2025, 4:21pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/9 "2025-03-14T16:21:53Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/2/2a59efe3824768d99018e886b6bdc4e96c9766f5.jpeg)

Thank you for your quick responses.

Here is what I have when I attempted to executed the libcamera-hello command again.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 17, 2025, 1:37am UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/11 "2025-03-17T01:37:23Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/d/de23d30a2b65f8a692e926bf1a2bbadc0bff770b.jpeg)  
Reinstalled for the camera. Seems to be working properly now this is what I get with the libcamera-hello command, but still unable to get the app to work. I will follow this with an another and a screenshot of the control script.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 17, 2025, 1:42am UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/12 "2025-03-17T01:42:24Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/7/7f539053f6b63cd3b47aaf9b7b2fd8d6346b91f1.jpeg)

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 17, 2025, 4:00am UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/13 "2025-03-17T04:00:22Z")

</div>

After you run the example successfully, go to the browser to access the camera and see if the image can be displayed.  
As shown in the figure. Access IP

 ![image (7)](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/d/d87adb8526430332fe3b960e87cb474cb9c01078.jpeg)

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 17, 2025, 1:08pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/14 "2025-03-17T13:08:36Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/6/6e29bd64ba1f3bc31eb4a15cd827431d18a86260.jpeg)  
When I tried the camera alone, it seemed to work okay, and even worked with the face recognition earlier.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 18, 2025, 12:36pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/15 "2025-03-18T12:36:41Z")

</div>

From the screenshots you provided, the vilib library is not the latest version. The latest version is 0.3.16. It is best to reinstall the system, reinstall all library codes according to the tutorial steps, and then run the example to see the working results. [5. Install All the Modules(Important) — SunFounder PiDog Kit 1.0 documentation](https://docs.sunfounder.com/projects/pidog/en/latest/python/python_start/install_all_modules.html)

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://forum.sunfounder.com/u/Dan)\
**Post date:** [March 18, 2025, 3:25pm UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/16 "2025-03-18T15:25:58Z")

</div>

I tried the copy from the link provided. it seems it is also version Python version 3.11.2 Raspbian version 12 vilib 0.3.15

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 19, 2025, 6:47am UTC](https://forum.sunfounder.com/t/pidog-app-get-out-of-range-error-when-try-to-install/2815/17 "2025-03-19T06:47:41Z")

</div>

Did you reinstall the Bookworm system and then reinstall all the library codes? How did you proceed? We recommend providing screenshots of the process to help us analyze and resolve the issue.
