It’s a core module that should be built into CircuitPython if you’ve installed the right version on a device that supports WiFi. Some modules are “built in” and are part of the CircuitPython installation and this is one of them. Here is some more info docs.circuitpython.org/en/latest/shared-bindings/index.html. The videos earlier in the playlist should discuss installation of CircuitPython, libraries, and even how to enter commands in the REPL to find out what’s built in, but also know that you’ll get an error that the module couldn’t be imported 1) if you are using hardware that doesn’t support that built in (eg a board that doesn’t support WiFi) or 2) if you are using a non-built in module that isn’t in your library folder. Hope that helps.
Thanks for this, your other videos have been very helpful. When trying to run this I get: 'module' object has no attribute 'Session' for this line: requests = adafruit_requests.Session(pool, ssl.create_default_context()) I haven't been able to find anything to clue me in so far.
Make sure you have all the files in the adafruit_requests folder in your lib folder on CIRCUITPY volume. This error shows up if you have a spelling error on the referred class in the module or if you are missing files in the lib folder, but refer to those files in your code. Good luck.
Make sure you are using a pico w. That has WiFi. Also double check that you’ve got all of the necessary modules in your lib folder on the pico as shown. If you are new to this you may want to start with earlier videos in the playlist. Good luck.
Hi there. I am using a Pico W confirmed. I always get this error. ImportError: no module named 'ipaddress' i have followed your instructions and tried many other methods. How do i fix this? Please advise me
This may come too late to help, but I was running into the same issue and finally realized I had the Pico firmware installed and not the PicoW firmware installed.
I’ve never seen that. Double check the access password. You might ask on Adafruit Discord and be sure to post an answer back here when you find out. Good luck!
This means you need to go to CircuitPython.org, click the Libraries tab, then find the libraries version that matches your CircuitPython version. Download that. Then look in the lib folder and find adafruit_requests and drag that into the lib folder on your board. Any message like this means you are missing a file that the code needs, so just find the file or folder named, and copy that into lib on your device. Good luck!
Great lesson. I still haven’t figured out how to do daylight savings time or leap years correctly yet. Looking forward to the next one!
I just refresh the Internet time each evening and as long as that isn’t a time when something is happening, all is fine.
Hello! Great video. Where we can find the library wifi? because i cant find it
It’s a core module that should be built into CircuitPython if you’ve installed the right version on a device that supports WiFi. Some modules are “built in” and are part of the CircuitPython installation and this is one of them. Here is some more info docs.circuitpython.org/en/latest/shared-bindings/index.html. The videos earlier in the playlist should discuss installation of CircuitPython, libraries, and even how to enter commands in the REPL to find out what’s built in, but also know that you’ll get an error that the module couldn’t be imported 1) if you are using hardware that doesn’t support that built in (eg a board that doesn’t support WiFi) or 2) if you are using a non-built in module that isn’t in your library folder. Hope that helps.
Thanks for this, your other videos have been very helpful.
When trying to run this I get:
'module' object has no attribute 'Session'
for this line:
requests = adafruit_requests.Session(pool, ssl.create_default_context())
I haven't been able to find anything to clue me in so far.
Make sure you have all the files in the adafruit_requests folder in your lib folder on CIRCUITPY volume. This error shows up if you have a spelling error on the referred class in the module or if you are missing files in the lib folder, but refer to those files in your code. Good luck.
@@profgallaugher wow thank you for the quick response!
I'm facing an error:
Traceback (most recent call last):
File "code.py", line 2, in
ImportError: no module named 'ssl'
Make sure you are using a pico w. That has WiFi. Also double check that you’ve got all of the necessary modules in your lib folder on the pico as shown. If you are new to this you may want to start with earlier videos in the playlist. Good luck.
Hi there. I am using a Pico W confirmed. I always get this error.
ImportError: no module named 'ipaddress'
i have followed your instructions and tried many other methods. How do i fix this? Please advise me
This may come too late to help, but I was running into the same issue and finally realized I had the Pico firmware installed and not the PicoW firmware installed.
@@ElakitheLion I just had the exact same issue, I facepalmed so hard when I realized.
I am getting an error "RuntimeError: Wifi is in access point mode."
I’ve never seen that. Double check the access password. You might ask on Adafruit Discord and be sure to post an answer back here when you find out. Good luck!
It says there's no module named adafruit_requests
This means you need to go to CircuitPython.org, click the Libraries tab, then find the libraries version that matches your CircuitPython version. Download that. Then look in the lib folder and find adafruit_requests and drag that into the lib folder on your board. Any message like this means you are missing a file that the code needs, so just find the file or folder named, and copy that into lib on your device. Good luck!
@@profgallaugher It's telling me there is no module named "ssl". I also can't find an SSL library in the zip file from CircuitPython.
I know now what I did. I had installed the uf2 for the Pico, not the Pico W. Now I have the right libraries.
@@bugloaf Oh thanks! I was having the same mistake. Been wondering how to install wifi.mpy. Now is working.