# ImportError: no module named 'ble' following Micropython and XRPLib Update

**URL:** https://xrp.discourse.group/t/importerror-no-module-named-ble-following-micropython-and-xrplib-update/579
**Category:** Support
**Created:** [January 2, 2025, 12:58am UTC](https://xrp.discourse.group/t/importerror-no-module-named-ble-following-micropython-and-xrplib-update/579 "2025-01-02T00:58:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AllenJones](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AllenJones](https://xrp.discourse.group/u/AllenJones)
#### Post date: [January 2, 2025, 12:58am UTC](https://xrp.discourse.group/t/importerror-no-module-named-ble-following-micropython-and-xrplib-update/579/1 "2025-01-02T00:58:38Z")

</div>

I just plugged in my XRP robot and when I connected it, I got a pop-up window announcing the addition of Bluetooth support. I followed the instructions for updating the robot, but now when I connect it using the USB cable and tell it to run a program, I get the following traceback error:

> \>\>\>  
> OKTraceback (most recent call last):  
> File “\<stdin\>”, line 8, in \<module\>  
> ImportError: no module named ‘ble’  
> \>  
> ------------------------------------------------------  
> MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040  
> Type “help()” for more information.  
> \>\>\>

It looks like the bluetooth module was not included in the update. Where can I find the official copy and where should it be installed on the XRP robot?

---

<div class="post-metadata">

### Author: ![Fgrossman](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Fgrossman](https://xrp.discourse.group/u/Fgrossman)
#### Post date: [January 2, 2025, 1:38am UTC](https://xrp.discourse.group/t/importerror-no-module-named-ble-following-micropython-and-xrplib-update/579/2 "2025-01-02T01:38:37Z")

</div>

It should have installed all new libraries when you connected. It sounds like that did not happen. If you go to the /lib/XRPLib directory and delete the version.py file, then if you disconnect and reconnect your XRP it should ask to update the XRPLib. This will include the ble libraries as well.

---

<div class="post-metadata">

### Author: ![AllenJones](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AllenJones](https://xrp.discourse.group/u/AllenJones)
#### Post date: [January 2, 2025, 4:20am UTC](https://xrp.discourse.group/t/importerror-no-module-named-ble-following-micropython-and-xrplib-update/579/3 "2025-01-02T04:20:49Z")

</div>

Thanks! That fixed it.
