I have used pyinstaller to compile my MicroPython files, now can’t transfer the compiled file onto the Pico #10873
-
Hi Any suggestions: I have used pyinstaller to compile my MicroPython files, now can’t transfer the compiled file onto the Pico Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 5 replies
-
mpremote works just fine on the Raspberry Pi 4B , but not on the pico |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you Peter, I very much appreciate your feedback. mpremote is awesome! I am running V1.19.1 or the latest daily build. I still don't know how to transfer the output from mpremote onto my Pico w? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi Peter, et all
ImportError: cannot import name 'TerminalMunu' from 'simple_term_menu' (/home/pi/.local/lib/python3.9/site-packages/simple_term_menu.py)
FYI Code for Subprocess follows: simple_term_menu.py from simple_term_menu import TerminalMunu options = ["[a] Apples", "[b] Bannas", "[o] Oranges","[q] Ouitl"] mainMenu = TerminalMenu(options) quitting = False while quitting == False:
|
Beta Was this translation helpful? Give feedback.
-
You use |
Beta Was this translation helpful? Give feedback.
-
Thank you Peter, So how to I transfer non text files to my pico? |
Beta Was this translation helpful? Give feedback.
-
mpremote works for both text files and non-text files. Micropython programs are .py text files, such as main.py, and you just copy those files to the microcontroller with mpremote (unless you wish to use the mpy-cross compiler, but that's not necessary for starters). |
Beta Was this translation helpful? Give feedback.
-
" Linux executable"? |
Beta Was this translation helpful? Give feedback.
-
@FlydGitHub you need to clearly explain (1) what you are trying to do; (2) the exact steps you have taken to do that thing; (3) the output you got |
Beta Was this translation helpful? Give feedback.
-
Hi Damien, Thank you for your patience. Please forgive me I have a traumatic brain injury, so processing, especially text is challenging.
Is that any clearer? Thanks |
Beta Was this translation helpful? Give feedback.
-
1.Yes
|
Beta Was this translation helpful? Give feedback.
-
OK that all works.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you that's great!
|
Beta Was this translation helpful? Give feedback.
-
I don't know if I understand the question well, but ARM executables don't run on Micropython nor do they on the Raspberry Pico. Micropython runs .py and .mpy files |
Beta Was this translation helpful? Give feedback.
-
The Pico - dual-core ARM Cortex-M0+ processor so is that compatible? I thought the ARM Instruction set was common? |
Beta Was this translation helpful? Give feedback.
-
OK so it's not a binary file, my Mac says it's Unix Executable. |
Beta Was this translation helpful? Give feedback.
-
If it is a Unix executable, it will need the services the Linux operating system provides. Micropython does not provide all those services, since there is no underlying operating system. There is no Linux on the Pico Micropython. AFAIK, pyinstaller works with Python but not with Micropython. With Micropython you deploy the .py text files to the Pico and they are compiled there on the fly by Micropython and then executed. There are other more involved ways, for example using mpy-cross or freezing the code in the Micropython image. To get started, running .py text files on the Pico is the easiest way. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your awesome support!! |
Beta Was this translation helpful? Give feedback.
Thanks for your awesome support!!