-
Notifications
You must be signed in to change notification settings - Fork 32
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
REPL: could not get a prompt #44
Comments
The usual cause for this is where you have either not loaded the provided bitio.hex file onto the micro:bit, there is a problem with the version of the .hex file, or you are connecting to a different COM port that doesn't have a micro:bit on it. 1.&2. Sometimes the micro:bit foundation update the runtime code that is stored inside .hex files, and bitio.hex gets out of date. e.g. see this (old) issue: #33 You can regenerate the bitio.hex file that is cached in this repository (so that it has all the right hardware drivers for newer micro:bits) by drag-dropping it into https://python.microbit.org and then pressing the DOWNLOAD button - then flash that new .hex file to your micro:bit by drag-dropping it onto the MICROBIT drive that appears when you plug the micro:bit into the computer.
If you have issues with your USB lead, try this: https://support.microbit.org/support/solutions/articles/19000037633-what-type-of-usb-lead-do-i-need-for-the-micro-bit- You can verify that your micro:bit is flashed/connected correctly by attaching it to your computer, going to python.microbit.org, connecting, and then opening the serial window, you should get a REPL prompt printed and be able to send commands like https://support.microbit.org/support/solutions/articles/19000135210-python-editor-guide#serial |
This has been reported by another user too. I suspect if you wind back the Python version on your host computer it might be a workaround. I suspect Python3.12 has broken the embedded Pyserial by deprecating some methods or something. We embeeded pyserial so that it was a zero-install package (file copy) on Raspberry Pi (for kids in schools) to make the install dependency free. It might be time to upgrade the embedded pyserial, or use a different way of deploying with dependencies I suspect. I will try to investigate this further over the Easter hols |
I, i got an error when i try running
import microbit
How to fix that error ?
The text was updated successfully, but these errors were encountered: