JeffreyUrban / MaixPy

MicroPython for K210 RISC-V, let's play with edge AI easier
https://maixpy.sipeed.com
Other
2 stars 0 forks source link

MicroPython v1.18: Need manifest.py to include builtin_py modules #3

Open JeffreyUrban opened 2 years ago

JeffreyUrban commented 2 years ago

Describe the bug As of MicroPython v1.18, "Support for FROZEN_DIR and FROZEN_MPY_DIR... was finally removed" (ref).

MaixPy boots with the error:

ImportError: no module named 'fpioa_manager'

None of the modules in components/micropython/port/builtin_py are available for import.

Adding a manifest.py file should fix this, but need to determine how to get it included in the build. Initial attempts to do so by adapting the examples to the existing build files didn't work.

To Reproduce Steps to reproduce the behavior: Flash 'Maix Bit with mic' board Connect via serial Press reset button (observe error) import fpioa_manager (observe error)

Expected behavior fpioa_manager and other port builtin modules import successfully.

Actual behaviour fpioa_manager and other port builtin modules fail to import.

Screenshots If applicable, add screenshots to help explain your problem. N/A

Please complete the following information