← index #9048Issue #2892
Related · high · value 3.662
QUERY · ISSUE

Installing MicroPython Asyncio from Thonny Package Manager Successful, But import of uasyncio module fails?

openby Jibun-no-Kageopened 2022-08-13updated 2022-08-13
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

stmhal Frozen bytecode: no longer works with lib subdirectory

closedby peterhinchopened 2017-02-21updated 2017-02-27

I have stmhal/modules/lib containing the uasyncio library. I have been building successfully with

make -j 8 BOARD=PYBV11 FROZEN_MPY_DIR=modules

Today, though it compiled the files

...
MPY modules/lib/uasyncio/test2.py
MPY modules/lib/uasyncio/core.py
MPY modules/lib/uasyncio/__init__.py
MPY modules/lib/uasyncio/test.py
MPY modules/lib/uasyncio/queues.py
MPY modules/lib/collections/deque.py
...

I can no longer import uasyncio at the REPL. Modules in stmhal/modules (i.e. not in the subdirectory) are OK.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied