# Vilib' has no attribute 'img\_array'

**URL:** <https://forum.sunfounder.com/t/vilib-has-no-attribute-img-array/2033>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [November 28, 2024, 8:56am UTC](https://forum.sunfounder.com/t/vilib-has-no-attribute-img-array/2033 "2024-11-28T08:56:00Z")\
**Posts on this page:** 2\
**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 28, 2024, 8:56am UTC](https://forum.sunfounder.com/t/vilib-has-no-attribute-img-array/2033/1 "2024-11-28T08:56:00Z")

</div>

Hi  
I’m trying to run gpt\_chat.py on my pidog. However, I get an error

> > ‘Vilib’ has no attribute ‘img\_array’

I’m running this in a venv, the full dialog is copied below

(my\_venv) robot@robot: $ python gpt\_dog.py  
vilib 0.3.9 launching …  
picamera2 0.3.22  
config\_file: /home/robot/.config/pidog/pidog.conf  
robot\_hat init … done  
imu\_sh3001 init … done  
rgb\_strip init … done  
dual\_touch init … done  
sound\_direction init … done  
sound\_effect init … done  
ultrasonic init … done  
[0:26:07.819554458] [4041] ERROR IPAModule ipa\_module.cpp:171 Symbol ipaModuleInfo not found  
[0:26:07.819614439] [4041] ERROR IPAModule ipa\_module.cpp:291 v4l2-compat.so: IPA module has no valid info

Web display on:  
[http://192.168.4.198:9000/mjpg](http://192.168.4.198:9000/mjpg)

Starting web streaming …

- Serving Flask app ‘vilib.vilib’
- Debug mode: off

listening …  
stt takes: 3.059 s  
ERROR: type object ‘Vilib’ has no attribute ‘img\_array’  
camera close  
Stopping and returning to the initial position …  
Quit

All of the other basic\_examples and examples in “pidog” work fine as do the examples on the vilib directory. I have also uninstalled and reinstalled vilib to be sure I’m using latest version, as can be seen in above dialog

vilib 0.3.9 launching …

Could you please advise?

Thanks

---

<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 28, 2024, 9:08am UTC](https://forum.sunfounder.com/t/vilib-has-no-attribute-img-array/2033/2 "2024-11-28T09:08:30Z")

</div>

Please ignore! The problem was that my gpt\_dog.py was an older version, not a vilib issue
