Re: uasyncio - asyncio-like cooperative multitasking framework for uPy
Posted: Mon May 13, 2019 11:04 pm
[quote=pythoncoder post_id=36488 time=1557752450 user_id=265]
You can use [b]uasyncio[/b] with official MicroPython - on many platforms it is pre-installed as frozen bytecode. You might like to look at [url=https://github.com/peterhinch/micropython-async]my uasyncio repo[/url] which contains various resources for running [b]uasyncio[/b] under official MicroPython, including a tutorial. This has an installation guide for any platform which doesn't include it as standard.
The version of [b]uasyncio[/b] which requires Pycopy is version 3.0. The official version is V2.0.
It is also possible to run Picoweb under official firmware with a little simple hacking. See my post in [url=viewtopic.php?f=15&t=5699&p=35303]this thread[/url] which explains how to run one of the Picoweb demos under V2.0 and official firmware.
[/quote]
I actually started there with the tutorial when things simply didn't work. you provide alot of useful information, the problem is that the basic
firmware is missing for too much. when i copied over all of the named git files, it still spits out errors about things like logging missing.
[quote]exec(open('./test.py').read(),globals())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 16, in <module>
ImportError: no module named 'logging'[/quote]
I tried the picoweb workaround as well, and it no longer works either with the base firmware provided.
for reference, i'm using esp32spiram-20190125-v1.10.bin directly from the micropython download page. i tested the daily build as well, same issues. my issue is there really isn't a completely functional binary out there for us plebs.
You can use [b]uasyncio[/b] with official MicroPython - on many platforms it is pre-installed as frozen bytecode. You might like to look at [url=https://github.com/peterhinch/micropython-async]my uasyncio repo[/url] which contains various resources for running [b]uasyncio[/b] under official MicroPython, including a tutorial. This has an installation guide for any platform which doesn't include it as standard.
The version of [b]uasyncio[/b] which requires Pycopy is version 3.0. The official version is V2.0.
It is also possible to run Picoweb under official firmware with a little simple hacking. See my post in [url=viewtopic.php?f=15&t=5699&p=35303]this thread[/url] which explains how to run one of the Picoweb demos under V2.0 and official firmware.
[/quote]
I actually started there with the tutorial when things simply didn't work. you provide alot of useful information, the problem is that the basic
firmware is missing for too much. when i copied over all of the named git files, it still spits out errors about things like logging missing.
[quote]exec(open('./test.py').read(),globals())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 16, in <module>
ImportError: no module named 'logging'[/quote]
I tried the picoweb workaround as well, and it no longer works either with the base firmware provided.
for reference, i'm using esp32spiram-20190125-v1.10.bin directly from the micropython download page. i tested the daily build as well, same issues. my issue is there really isn't a completely functional binary out there for us plebs.