Page 1 of 1

missing lib for _thread or uasyncio

Posted: Wed Aug 17, 2022 8:37 pm
by johup
Hi,
I have a pyboard 1.1 and would like to port code to it that uses threads. But importing _thread or uasyncio fails:
ImportError: no module named 'uasyncio'
How can I install these modules? A foolproof instruction would be nice of course...

thanks
joh

Re: missing lib for _thread or uasyncio

Posted: Wed Aug 17, 2022 11:35 pm
by jimmo
johup wrote:
Wed Aug 17, 2022 8:37 pm
But importing _thread or uasyncio fails:
_thread is not provided in the default firmware. You can download the "Threading" firmware here (also includes instructions on how to install it). https://micropython.org/download/pybv11/

uasyncio is provided in the default firmware but perhaps you have an older version. Try updating to the latest (v1.19.1).