ImportError: no module named 'socket' #9762
-
I am trying to get an mqtt client working on a Raspberry Pico H with the umqtt.simple library. When I try to import MQTTClient from the library,
When I go to the packet manager in Thonny, I find no socket library. However, the library is supposed to be a part of the standard packages in micropython. I am running the latest uf2-file for Pico, that is 1.19.1 (rp2-pico-20220618-v1.19.1.uf2). Help much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
For the RPi pico.W you have to use the matching firmware. The firmware for the standard RPi pico does not support networking. You may also try the most recent daily build. |
Beta Was this translation helpful? Give feedback.
For the RPi pico.W you have to use the matching firmware. The firmware for the standard RPi pico does not support networking. You may also try the most recent daily build.