I am trying to get Wifi working on a suspect 8266 (ESP-12S) I keep getting the above error when I try an compile any sketch using Wifi. For example the example sketches in the IDE. I am using Kubuntu 22.04 with IDE version 1.8.19. Python3 is version 3.10.6.
The total error message is:
Traceback (most recent call last):
File "/home/peterm/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/mkbuildoptglobals.py", line 846, in
sys.exit(main())
File "/home/peterm/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/mkbuildoptglobals.py", line 759, in main
if time.time_ns() < os.stat(commonhfile_fqfn).st_mtime_ns:
AttributeError: module 'time' has no attribute 'time_ns'
exit status 1
Error compiling for board Generic ESP8266 Module.
Any idea how I get around this problem with time?
Thanks.