Skip to content

Can microbit's micropython run mpy files? #524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ouki-wang opened this issue Jun 28, 2018 · 5 comments
Open

Can microbit's micropython run mpy files? #524

ouki-wang opened this issue Jun 28, 2018 · 5 comments
Labels

Comments

@ouki-wang
Copy link

No description provided.

@dpgeorge
Copy link
Member

No, not at this point.

@RobertLucian
Copy link

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!

@dpgeorge
Copy link
Member

dpgeorge commented Sep 7, 2018

For hints on getting it to load mpy files, see this comment: #555 (comment)

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

@pennyarcade
Copy link

pennyarcade commented Jun 22, 2021

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.

@kevinjwalters
Copy link

kevinjwalters commented Feb 26, 2025

I've just run out of storage space on a micro:bit V2 and I'm going to have to find a code minifier if I can't mpy to save file system space...

I put in microbit-foundation/micropython-microbit-v2#226 for a V2 solution to my issue,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants