micropython icon indicating copy to clipboard operation
micropython copied to clipboard

Can microbit's micropython run mpy files?

Open ouki-wang opened this issue 6 years ago • 4 comments

ouki-wang avatar Jun 28 '18 06:06 ouki-wang

No, not at this point.

dpgeorge avatar Jun 28 '18 12:06 dpgeorge

I know you @dpgeorge already answered to @ouki-wang 's question, but what about now, after 2 years have passed?

I precompiled a test python script using the version of micropython specified in here (I used the specified git hash) and then when I try to import it within the microbit I get an error telling me the module doesn't exist. Is it possible that I'm doing something wrong?

Thanks!

RobertLucian avatar Sep 06 '18 15:09 RobertLucian

For hints on getting it to load mpy files, see this comment: https://github.com/bbcmicrobit/micropython/issues/555#issuecomment-419351214

Hopefully this feature will make it into the main code soon.

dpgeorge avatar Sep 07 '18 12:09 dpgeorge

Any news on this after another 2 years? ;-)

Reviewing the comment this seems a rather small code change and I feel this could be the default behaviour.

pennyarcade avatar Jun 22 '21 11:06 pennyarcade