Hello!
I'm using an esp8266 (esp-01) module and I go it flashed with MicroPython. However, when setting up the network, I try running the command "import webrepl_setup" and I get the following error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "webrepl_setup.py", line 111, in <module>
File "webrepl_setup.py", line 80, in main
File "webrepl_setup.py", line 49, in get_daemon_status
OSError: [Errno 2] ENOENT
I've tried with both versions 1.9.3 and 1.9.2 of MP. Anyone run into this? What's the solution?
Thanks,
-John
webrepl_setp throws OSError: [Errno 2] ENOENT
Re: webrepl_setp throws OSError: [Errno 2] ENOENT
If this is a 512k ESP-01 then I think it doesn't have enough storage to be able to host a FAT filesystem.
For this reason the file being read around line 49 in webrepl_setup.py cannot be accessed ( see https://github.com/micropython/micropyt ... l_setup.py and taking account of minor version changes, it's probably trying to read boot.py)
You can see some related commentary at https://github.com/micropython/micropython/issues/1986 or https://blog.gypsyengineer.com/en/diy-e ... -512k.html
I think I recall that Webrepl is disabled in the 512kbyte builds, but I can't find the reference. There are warnings that features have been withdrawn to get it small enough at http://micropython.org/download but I am not sure which features in particular.
For this reason the file being read around line 49 in webrepl_setup.py cannot be accessed ( see https://github.com/micropython/micropyt ... l_setup.py and taking account of minor version changes, it's probably trying to read boot.py)
You can see some related commentary at https://github.com/micropython/micropython/issues/1986 or https://blog.gypsyengineer.com/en/diy-e ... -512k.html
I think I recall that Webrepl is disabled in the 512kbyte builds, but I can't find the reference. There are warnings that features have been withdrawn to get it small enough at http://micropython.org/download but I am not sure which features in particular.
Re: webrepl_setp throws OSError: [Errno 2] ENOENT
Yup. That was it, not enough storage. Thanks!
Re: webrepl_setp throws OSError: [Errno 2] ENOENT
Bringing up a fresh esp12 module with micropython, latest from git, looks like a similar problem but the module has a 32 Mbit memory so that isn't the issue.
it doesn't appear to be setting up the filesystem initially and (likely as a consequence) I can't get webrepl_setup going.
It took a few tries to get the module flashed but seems to be consistent now, esp.check_fw() returns true.
On reset I get:
Performing initial setup
Traceback (most recent call last):
File "_boot.py", line 11, in
File "inisetup.py", line 38, in setup
File "inisetup.py", line 8, in wifi
AttributeError: 'module' object has no attribute 'hexlify'
OSError: [Errno 1] EPERM
OSError: [Errno 1] EPERM
MicroPython v1.9.3-477-g7b0a020-dirty on 2018-03-21; ESP module with ESP8266
Type "help()" for more information.
when I try to import webrepl_setup:
Traceback (most recent call last):
File "", line 1, in
File "webrepl_setup.py", line 102, in
File "webrepl_setup.py", line 71, in main
File "webrepl_setup.py", line 40, in get_daemon_status
OSError: [Errno 1] EPERM
Any ideas appreciated. I've erased flash and reload a couple times.
Edit: tried the distributed binaries and they don't suffer this problem, some toolchain/build problem to sort out ...
it doesn't appear to be setting up the filesystem initially and (likely as a consequence) I can't get webrepl_setup going.
It took a few tries to get the module flashed but seems to be consistent now, esp.check_fw() returns true.
On reset I get:
Performing initial setup
Traceback (most recent call last):
File "_boot.py", line 11, in
File "inisetup.py", line 38, in setup
File "inisetup.py", line 8, in wifi
AttributeError: 'module' object has no attribute 'hexlify'
OSError: [Errno 1] EPERM
OSError: [Errno 1] EPERM
MicroPython v1.9.3-477-g7b0a020-dirty on 2018-03-21; ESP module with ESP8266
Type "help()" for more information.
when I try to import webrepl_setup:
Traceback (most recent call last):
File "", line 1, in
File "webrepl_setup.py", line 102, in
File "webrepl_setup.py", line 71, in main
File "webrepl_setup.py", line 40, in get_daemon_status
OSError: [Errno 1] EPERM
Any ideas appreciated. I've erased flash and reload a couple times.
Edit: tried the distributed binaries and they don't suffer this problem, some toolchain/build problem to sort out ...
Re: webrepl_setp throws OSError: [Errno 2] ENOENT
I got similar error report on a NodeMCU (ESP-12F) with 4MB.
Erasing flash and reprogramming firmware don't help.
Code: Select all
PYB: soft reboot
#6 ets_task(40100130, 3, 3fff838c, 4)
OSError: [Errno 2] ENOENT
OSError: [Errno 2] ENOENT
MicroPython v1.9.3-500-gbc3a5f19 on 2018-03-30; ESP module with ESP8266
Type "help()" for more information.
>>> import webrepl
>>> webrepl.start()
WebREPL is not configured, run 'import webrepl_setup'
>>>
>>> import webrepl_setup
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "webrepl_setup.py", line 102, in <module>
File "webrepl_setup.py", line 71, in main
File "webrepl_setup.py", line 40, in get_daemon_status
OSError: [Errno 2] ENOENT
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: webrepl_setp throws OSError: [Errno 2] ENOENT
There seem to be consistent reports of webrepl problems. I suggest someone raises an issue on GitHub: this is the best way to get the attention of the maintainers.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: webrepl_setp throws OSError: [Errno 2] ENOENT
OK, I will issue it to github.