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

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?

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.

2 Likes

Thanks! That fixed it.