Machine library not found Pico Display examples

Any help appreciated. I have:

  1. Attached the display to the PicoW

  2. Connected USB to laptop, Pico LED on and display backlight active

  3. Drag’n’drop the Raspberry Pi Python UF2, re-boot

  4. Run a “Hello World” in Thonny fine

  5. Drag’n’drop the Pimoroni v1.19.1-782 UF2, re-boot

  6. Run the sample code to display the Pico temp on the display

  7. Error: No module named ‘machine’

How can the example code have such a fundamental flaw?

Many thanks for any pointers?

I’ll re-phrase the question…

It appears that “Thonny” has no idea my Apple Mac Book Pro has USB ports, so it is using a local Phython interpreter rather than executing code on the PicoW. Hence the missing resources.

If I go to Thonny → Preferences → Interpreter and select “MicroPython (Raspberry Pi Pico)” the only Port’s listed are:

n/a (/device/cu.Bluetooth-Incoming-Port)
< Try to detect port automatically >

It’s an old Mac Book Pro (17" High Sierra) - but still, very odd Thonny can’t see my 3 working USB ports, the Pico icon is on my desktop and functions as it should. So it looks like a Thonny issue, can anyone recommend an IDE less buggy and more first user friendly?

Weird that it’s talking to Thonny with vanilla MicroPython and not with our version - have you double checked you’ve flashed the correct .uf2 file for your board?

and here’s a direct link to the most recent Pico W image.

Also might be worth double checking you’re running the most recent version of Thonny?

Its because Thonny can’t see my Mac’s USB ports so its using its local Python interpreter, not the PicoW’s… So a Thonny issue.