pimoroni / pimoroni-pico

Libraries and examples to support Pimoroni Pico add-ons in C++ and MicroPython.
https://shop.pimoroni.com/collections/pico
MIT License
1.29k stars 492 forks source link

Running 75W/Placekitten.py fails #958

Closed ajyuan closed 3 months ago

ajyuan commented 3 months ago

Placekitten.py fails because of the following error:

Traceback (most recent call last): File "", line 4, in ImportError: no module named 'urllib'

This is with driver picow-v1.23.0-1-pimoroni-micropython.uf2.

Not sure how I can install urllib into my Pico? All other examples work using urequests.

helgibbons commented 3 months ago

You should be able to install urllib.urequest through Thonny's 'Manage Packages': image

Or there's a compiled version here that you can copy to the lib folder on your Pico W: https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/common

ajyuan commented 3 months ago

Thanks!