I'm not exactly sure where to post this or where to file an issue - It seems to be connected to uasyncio and/or picoweb.
I'm working on a micropython/picoweb application that is running on an esp8266 based smart socket.
After having switched to pfalcon's forks of micropython and micropython-lib I'm getting an OSError as soon as I start the the picoweb app.
Code: Select all
* Running on http://0.0.0.0:80/
Traceback (most recent call last):
File "main.py", line 1, in <module>
File "obi_socket/__init__.py", line 31, in <module>
File "picoweb/__init__.py", line 298, in run
File "uasyncio/core.py", line 155, in run_forever
File "uasyncio/core.py", line 110, in run_forever
File "uasyncio/__init__.py", line 251, in start_server
OSError: [Errno 11] EAGAIN
MicroPython v1.9.3-1420-gfe98742-dirty on 2018-12-02; ESP module with ESP8266
I'm pretty sure this is not related to my code because also this minimalistic test of picoweb fails:
Code: Select all
MicroPython v1.9.3-1420-gfe98742-dirty on 2018-12-02; ESP module with ESP8266
Type "help()" for more information.
>>>
>>>
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== import picoweb
===
=== app = picoweb.WebApp(__name__)
===
=== @app.route("/")
=== def index(req, resp):
=== yield from picoweb.start_response(resp)
=== yield from resp.awrite("How you doin'?")
===
=== app.run(debug=True)
===
* Running on http://127.0.0.1:8081/
Traceback (most recent call last):
File "<stdin>", line 10, in <module>
File "picoweb/__init__.py", line 298, in run
File "uasyncio/core.py", line 155, in run_forever
File "uasyncio/core.py", line 110, in run_forever
File "uasyncio/__init__.py", line 251, in start_server
OSError: [Errno 11] EAGAIN
>>>
Code: Select all
s2, client_addr = s.accept()
Edit: The problem persists using micropython/micropython and pfalcon/micropython-lib so it points towards pfalcon/micropython-lib