-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [Errno 2] ENOENT #38
Comments
is there a file named main.py? |
I didn't create one, but if that's the cause of the error would be good to catch that |
I think the current mpy error requires some experience and imagination. |
please see the issue #40,I really want to share with the community. |
This is a "No such file or directory" error thrown by Python (and other languages): https://docs.python.org/2/library/errno.html#errno.ENOENT It means it tried to open a file that doesn't exist. I believe the ESP8266 port will always try to run the https://github.com/micropython/micropython/blob/master/ports/esp8266/main.c#L68-L71 |
MicroPython v1.20.0 on ESP8266
|
Please catch this exception with an indication that boot.py is required, or just accept the absence of boot.py This makes quite a bad user experience to be greeted with an uncaught exception for such a simple non-blocking issue, in a setup assistant. |
Also, how hard would it be to use secure web sockets ? that would allow web browsers to use the https version of the webrepl client. it seems that ssl is available in micropython and ssl can be added to any protocol in just one line, like is done with mqtt: |
System: MicroPython v1.9.4-8-ga9a3caad0 on 2018-05-11; ESP module with ESP8266
Issue: unable to connect to the wifi point setup by the board and receive the following error on startup:
The text was updated successfully, but these errors were encountered: