missing libraries, required by umqtt

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
Posts: 1
Joined: Tue Mar 17, 2020 11:20 am

missing libraries, required by umqtt

Post by Vere » Tue Mar 17, 2020 11:49 am

I have tried to work through 2 IOT tutorials. The tutorials were ;
https://core-electronics.com.au/tutoria ... hop-1.html
The board was a FiPy and the editor is Pymkr console on Platform.io on visual studio
In both cases when I saved a library umqtt.py and uplad then run the source code it tells me the following libraries are missing;
‘usocket’ ‘ustruct’ ‘ubinascii’ and ‘ussl’ . I have looked extensively for these library files but can't find a source to download them.
https://docs.micropython.org/en/latest/ ... index.html has a lot of information about the libraries and how to usse them but I can't see how to download them.

Is anyone able to give me some advice where and how to download these libraries?


User avatar
Posts: 1381
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: missing libraries, required by umqtt

Post by jimmo » Tue Mar 17, 2020 12:21 pm


The FiPy runs a different firmware that is maintained by PyCom. It does have some differences to "standard" MicroPython, however I thought that these libraries (usocket, ussl, etc) would be available.

The reason you can't find a source to download them is that they're (supposed to be) built-in.

It might be worth checking that you have the latest firmware for your FiPy (you'll need to find PyCom-specific docs for this).

One quick test you could do is connect to the REPL on the device and see if you can import these libraries directly.

i.e. you should be able to do:

Code: Select all

>>> import ussl

Post Reply