QUERY · ISSUE
Installing MicroPython Asyncio from Thonny Package Manager Successful, But import of uasyncio module fails?
bug
Consistent and repeatable... ValueError: incompatible .mpy file results on module import. Installing MicroPython Asyncio from Thonny Package Manager Successful, But import of uasyncio module fails? Please fix.
Using latest nightly build same issue.
CANDIDATE · ISSUE
Import / AttributeError error in new asyncio
py-core
If some module imports with from uasyncio import * and then the this module
is imported somewhere else there will occur an AttributeError if e.g. start_server is invoked:
AttributeError: 'module' object has no attribute 'start_server'
The culprit is the "lazy loading" in: https://github.com/micropython/micropython/blob/master/extmod/uasyncio/init.py#L8-L30
Replacing the lazy loading with regular import solves the problem.