-
Notifications
You must be signed in to change notification settings - Fork 220
OSError: [Errno 2] ENOENT: main.py (solved) #90
Comments
On the ESP8266, the error is a little more user friendly:
|
There's the same ENOENT error with current esp8266 builds. |
The old "could not open file ..." was replaced with the (proper) OSError(ENOENT) message. It's not harmful, but it is perhaps confusing. |
Confirmed, same |
i still face the same error on my node mcu board and further i am not able to type in REPL prompt, is the issue still there ? i am not sure what is wrong |
i tried to read debug messages on startup at high baud rate , which showed up load 0x40100000, len 31108, room 16 SDK ver: 2.2.0-dev(9422289) compiled @ Nov 3 2017 19:40:08 mode : softAP(6a:c6:3a:ab:56:04) |
This repository is closed and the development for ESP32 is continued at the main mp repository https://github.com/micropython/micropython with pre-built images at http://micropython.org/download#esp32. Mayby it's better to try that version. |
I have faced this issue. I test it from RAM disk. I have asked in the forum. Hope that it could be solved here. https://forum.micropython.org/viewtopic.php?f=2&t=10655 Thank you. |
After traceback, I found the problem. It needs to enable MICROPY_READER_VFS. It solved now. |
Did You mean micropython/ports/esp32/mpconfigport.h:36 ? |
@DamirKh , yes. |
Installed the latest micropython-esp32 on a new Wemos Lolin32 board.
On first boot, I noticed there was an
ENOENT
error:I thought the issue may have been baud related, so I tried 115200, 230400, 460800 and 921600.
Tried importing _boot to re-setup the /flash, but kept getting "FAT filesystem appears to be corrupted."
Tried using a different machine and a few different usb cables too.
Then I tried manually creating the main.py file, and the problem went away.
After
make erase
andmake deploy
, there appears to be no main.py file in /flash.Should there be an empty / placeholder file, like with boot.py?
So, I created a main.py:
And on soft and/or hard reboot, no more
ENOENT
error!FYI, version is showing dirty as I modified the Makefile with:
The text was updated successfully, but these errors were encountered: