-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi folks,
I'm trying to get some of the examples to work on a brand new Galactic. I flashed the latest firmware (1.24.3) and uploaded a main.py which imports clock -- and I get the same EPERM error from #5 . Because that thread says it was fixed in 1.24.2, and I feared maybe there was a regression, I reverted to firmware 1.24.2, but I'm seeing the same error. Is there something else that could cause this?
I read somewhere that the EPERM could happen due to low current. Though in the clock example no LEDs are on until after the network connection is established, I did try powering it via a more powerful USB source than the computer (though of course could not see the console output in this case). No dice.
Is there something I'm missing here? Any other troubleshooting I can do? I also have a Cosmic that I haven't set up yet, and now I'm afraid that neither of these will function properly.
fwiw:
Traceback (most recent call last):
File "clock.py", line 143, in sync_time
OSError: [Errno 1] EPERM
Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "<string>", line 1, in <module>
File "clock.py", line 242, in <module>
File "clock.py", line 150, in sync_time
I changed the clock.py example to loop on connection just in case:
print("Trying to connect to:", WIFI_SSID)
failed = True
while failed:
print("Trying to connect...")
try:
wlan.connect(WIFI_SSID, WIFI_PASSWORD)
failed = False
except Exception as e:
print("Error connecting to WiFi:", e)
import sys
sys.print_exception(e)
failed = True
time.sleep(5)but I am seeing the same error constantly.
I am 100% sure I am using the correct SSID and password, as this is the network every single other IoT device I have (including several Pico Ws, and including a Pimoroni Presto) is using. This leads me to suspect it's something with the Unicorn.