3 Answers
When do you see that error? When you upload the boot.py file? It looks like you didn’t import the full boot.py and main.py script and it’s missing the import socket code.
Thanks!
I have the same issue
Main.py syntax check, and attempts to download and run, brings up the following error
MicroPython v1.20.0 on 2023-04-26; ESP module with ESP8266
Type “help()” for more information.
>>>
main.py:8: undefined name ‘socket’
main.py:8: undefined name ‘socket’
main.py:8: undefined name ‘socket’
syntax finish.
I checked the boot.py and import socket syntax check is ok