missing lib for _thread or uasyncio

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
johup
Posts: 6
Joined: Mon Jan 25, 2021 3:58 pm

missing lib for _thread or uasyncio

Post by johup » Wed Aug 17, 2022 8:37 pm

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

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

Re: missing lib for _thread or uasyncio

Post by jimmo » Wed Aug 17, 2022 11:35 pm

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).

Post Reply