Got error: ImportError: no module named 'asyncio' #225
Replies: 3 comments
-
What version of micropython are you using? My understanding is that they do not use the 'u' prefix anymore. |
Beta Was this translation helpful? Give feedback.
-
The internal modules were renamed to drop the 'u' prefix in MicroPython v1.21 (October 2023). However, importing 'u'module is also allowed to support backwards compatibility (so both Versions prior to v1.21 need to import the 'u'module name, so I presume the TinyPICO ships with v1.20 or earlier... |
Beta Was this translation helpful? Give feedback.
-
You all are write. The version that ships with tinypico is 1.19.1 (at least mine). Thank you for the information! |
Beta Was this translation helpful? Give feedback.
-
As the title said I got the error "ImportError: no module named 'asyncio'". I was able to fix it by changing all the time 'asyncio' appeared in the minimal installation file to uasyncio.
For context I am using the tinyPico board with the Micropython that shipped with it.
Thought I'd put this in the discussion area because from what I understand Micropython tends to work differently on different devices from different manufacturers so I don't really know if it could be considered a bug.
I thought I'd share in case anyone else has experienced this.
Beta Was this translation helpful? Give feedback.
All reactions