You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run the example_webapp.py example from this repo, on the unix port of micropython:
$ micropython
MicroPython v1.18 on 2022-04-07; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>>
>>> import upip
>>> upip.install("picoweb", ".")
Installing to: ./
Warning: micropython.org SSL certificate is not validated
Installing picoweb 1.8.2 from https://files.pythonhosted.org/packages/c2/22/a1eb0cf52b72e818fe47acadaf8ade200d7c0c7c6fc5acc7b47f53f2a338/picoweb-1.8.2.tar.gz
Installing pycopy-uasyncio 3.7 from https://files.pythonhosted.org/packages/e5/58/80b8b403c52ea88d44844570dbe487d7a4b3045ae0ecad0c9f4dbac0d104/pycopy-uasyncio-3.7.tar.gz
Installing pycopy-pkg_resources 0.2.2 from https://files.pythonhosted.org/packages/15/c7/9f4979d10aa0e4e01d929c1e8ded40d25c78941326fcfab96e044f16d538/pycopy-pkg_resources-0.2.2.tar.gz
Installing pycopy-uasyncio.core 2.3.3 from https://files.pythonhosted.org/packages/31/39/9801979b79b793e6763a75927e7a55c61b84e4a8669e4a40168417e805ab/pycopy-uasyncio.core-2.3.3.tar.gz
>>>
(Web_Remote-VJUkCiG-) peter@mi:~/Nextcloud/PycharmProjects/Web Remote/server$ micropython example_webapp.py
* Running on http://127.0.0.1:8081/
Traceback (most recent call last):
File "example_webapp.py", line 53, in <module>
File "./picoweb/__init__.py", line 322, in run
File "./picoweb/__init__.py", line 304, in serve
File "./uasyncio/core.py", line 129, in run_forever
File "./uasyncio/__init__.py", line 33, in add_reader
TypeError: function expected at most 3 arguments, got 4
I am trying to run the
example_webapp.py
example from this repo, on the unix port of micropython:It looks like
self.poller.register(sock, select.POLLIN, cb)
has got an extra argumentcb
compared to the standard api: https://docs.micropython.org/en/latest/library/select.html#select.poll.registerWhat should I do?
The text was updated successfully, but these errors were encountered: