# Cannot import name “Vilib”

**URL:** <https://forum.sunfounder.com/t/cannot-import-name-vilib/676>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [December 1, 2023, 4:05pm UTC](https://forum.sunfounder.com/t/cannot-import-name-vilib/676 "2023-12-01T16:05:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goose](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/goose/32/478_2.png) [@goose](https://forum.sunfounder.com/u/goose)\
**Post date:** [December 1, 2023, 4:05pm UTC](https://forum.sunfounder.com/t/cannot-import-name-vilib/676/1 "2023-12-01T16:05:26Z")

</div>

the app\_control.py was working perfectly hours ago, but then the “Vilib” module didn’t work suddenly. from vilib import Vilib (line of code with error)

---

<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:** [December 4, 2023, 9:43am UTC](https://forum.sunfounder.com/t/cannot-import-name-vilib/676/2 "2023-12-04T09:43:55Z")

</div>

It is recommended that you update your code base as follows:  
cd ~/robot-hat  
git pull  
sudo python3 setup.py install

cd ~/vilib  
git pull  
sudo python3 install.py

cd ~/picar-x  
git pull  
sudo python3 setup.py install

cd ~/picar-x  
sudo bash i2samp.sh

After updating the above codebase, go back and execute the example to see how it works.  
If you still can’t solve the problem, we recommend you to reinstall the Raspberry Pi system and install all the code libraries again.
