Traceback (most recent call last):
File “”, line 22, in
File “requests/init.py”, line 205, in get
File “requests/init.py”, line 81, in request
OSError: -2
Are you sure that the username and password that you added in lines 14 and 15 in that script are correct, and that your LAN has a working connection to the Internet?
What about the connection to the internet - have you confirmed that is also working? (The line that errors is trying to connect to “http://www.google.com”) .
From the original guide, there appears to be someone else who was getting a similar issue to you, in their case they had quotation marks around the SSID and password, if you also have that it would be the reason its causing issues.
We also have a newer guide if you want to check that out. It is a bit more up to date and in the following videos we do some extra wireless stuff like hosting a webpage on the Pico itself!