# ERROR: type object 'Vilib' has no attribute 'object\_detection\_list\_parameter'

**URL:** <https://forum.sunfounder.com/t/error-type-object-vilib-has-no-attribute-object-detection-list-parameter/1926>\
**Category:** General\
**Created:** [November 6, 2024, 4:29pm UTC](https://forum.sunfounder.com/t/error-type-object-vilib-has-no-attribute-object-detection-list-parameter/1926 "2024-11-06T16:29:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [November 6, 2024, 4:29pm UTC](https://forum.sunfounder.com/t/error-type-object-vilib-has-no-attribute-object-detection-list-parameter/1926/1 "2024-11-06T16:29:18Z")

</div>

Hi  
I’m experimenting with the vilib examples from here:

> **[vilib/examples at picamera2 · sunfounder/vilib](https://github.com/sunfounder/vilib/tree/picamera2/examples)**
>
> Vision library for python. Contribute to sunfounder/vilib development by creating an account on GitHub.

on my pidog. Specifically, object\_detection.py

However, it will not run (the other examples run fine) I get the following error

ERROR: type object ‘Vilib’ has no attribute ‘object\_detection\_list\_parameter’

Has the API changed between the above github release, and the pidog one?  
Thanks

---

<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:** [November 7, 2024, 2:38am UTC](https://forum.sunfounder.com/t/error-type-object-vilib-has-no-attribute-object-detection-list-parameter/1926/2 "2024-11-07T02:38:27Z")

</div>

To help us analyze and resolve the issue you’re experiencing, could you please provide a complete screenshot of the error message?

In the meantime, please try the following commands to update your code:

cd ~/vilib  
git pull  
sudo python3 install.py

Once the installation is successful, restart your Raspberry Pi and run the example again to see if it works.

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [November 7, 2024, 10:58am UTC](https://forum.sunfounder.com/t/error-type-object-vilib-has-no-attribute-object-detection-list-parameter/1926/3 "2024-11-07T10:58:48Z")

</div>

Thanks. There appears to have been a patch in the picamera2 branch, 2 weeks ago which addresses this, I quote

'Fix bug of ‘Vilib’ has no attribute"

I was using an old master branch., which was probably my problem

---

<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:** [November 8, 2024, 3:22am UTC](https://forum.sunfounder.com/t/error-type-object-vilib-has-no-attribute-object-detection-list-parameter/1926/4 "2024-11-08T03:22:32Z")

</div>

Yes. The appropriate method is to use the Vilib library from the picamera2 branch.
