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
{{ message }}
Repository navigation
AttributeError: 'generator' object has no attribute 'pend_throw' #244
As of commit 203cc48, I am getting an error in uasyncio.core (line 107) when using the uhttpd library. I have added two print lines for ret and cb, so the error is on actually line 107 as of that commit.
FDUSHIN> ret: <IORead object at 3fff6a10>
FDUSHIN> cb: <generator object 'start_server' at 3fff77d0>
Traceback (most recent call last):
File "main.py", line 14, in
File "neolamp/init.py", line 60, in run
File "uhttpd/init.py", line 70, in run
File "uhttpd/init.py", line 407, in run
File "uasyncio/core.py", line 140, in run_forever
File "uasyncio/core.py", line 109, in run_forever
AttributeError: 'generator' object has no attribute 'pend_throw'
I don't know how esoteric my usage of uasyncio.start_server is -- I am passing in a locally defined function, which is annotated with @asyncio.coroutine:
Activity
pfalcon commentedon Jan 6, 2018
You need the latest micropython from https://github.com/pfalcon/micropython for the latest uasyncio.
Search for more info: https://github.com/micropython/micropython-lib/search?q=pend_throw&type=Issues&utf8=%E2%9C%93
pfalcon commentedon Jan 6, 2018
Actually, that's indeed a problem, a notice was posted on the forum: https://forum.micropython.org/viewtopic.php?f=15&t=85&p=24415#p24415
fadushin commentedon Jan 8, 2018
Thank you!