cannot load machine library #18048
Replies: 5 comments 1 reply
-
suspect number one is that you did not set the python interpreter in Thonny to be the MicroPython (Raspberry Pi Pico). Its under Thonny>Settings on my mac or Tools>Options when I run Thonny from a rpi5. |
Beta Was this translation helpful? Give feedback.
-
I checked that first and it says Micropython (Raspberry Pi Pico) - Board
CDC @ COM 3
…On Mon, Sep 8, 2025 at 6:56 PM Bg ***@***.***> wrote:
suspect number one is that you did not set the python interpreter in
Thonny to be the MicroPython (Raspberry Pi Pico). Its under Thonny>Settings
on my mac or Tools>Options when I run Thonny from a rpi5.
—
Reply to this email directly, view it on GitHub
<#18048 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BXDL567O6OZLYQZ5GBO24SD3RYJSNAVCNFSM6AAAAACF656ZQCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMZUGUZTKNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I checked that first and it says Micropython (Raspberry Pi Pico) - Board
CDC @ COM 3
…On Tue, Sep 9, 2025 at 2:52 AM JackCode0011 ***@***.***> wrote:
Check Thonny on the bottom right corner. There you should see your Pico
and which COM-port it uses. Only then Thonny is running your code as
micropython with the Pico.
—
Reply to this email directly, view it on GitHub
<#18048 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BXDL562S3PWFGUVCGFZ7EAT3R2BLRAVCNFSM6AAAAACF656ZQCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMZUHA2TCNQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Importing machine is in all likelihood the most basic functionality one can imagine. Thonny on the other hand is tool to help the uninitiated with problems they wouldn't have without it. In other words, try without Thonny and all will be well… |
Beta Was this translation helpful? Give feedback.
-
I just opened Thonny to see if there is a problem.
When updated, the board reboots and the command In case there is garbage on your Pico you can download flash_nuke.uf2 first to restart with a virgin Pico |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using micropython 1.26 on a Raspberry Pico with the Thonny IDE. When I try to run the program it stops on the first line which is" import machine". I get an error message saying machine does not exist or is not supported. I tried updating Micropython in Thonny but with the same results. Then I tried loading Micropython using the uf2 file with the same results. I have tried using both my laptop and my PC with same results. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions