Mip install after powering on alvik

I’m trying to mip.install a file from my github repo after powering on Alvik. I think it’s a cool way to update the code onboard by simply rebooting it and having it pull from my repo without connecting it to my computer.
Without it connected to my computer, I can see that it gets through boot.py and starts main.py but it stops executing anything after mip.install(). The file doesn’t appear in lib either. However, when I run it directly from Arduino Lab on my computer the board successfully connects to WiFi and downloads the file to lib.
What is happening when execution gets to mip.install that works from Arduino Lab but not after booting up on its own? Is this the right approach?

Welcome to the forum

Re you using a Nano ESP32 or a generic ESP32 board ?

Nano ESP32