micropython / micropython-esp32

Old port of MicroPython to the ESP32 -- new port is at https://github.com/micropython/micropython
MIT License
673 stars 216 forks source link

uasyncio missing #117

Closed MissingNoIOI closed 7 years ago

MissingNoIOI commented 7 years ago

I've tried downloading the latest build and building it from source, but none contain uasyncio.

>>> import uasyncio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'uasyncio'

Is there a special build flag or isn't it supported on this board?

dpgeorge commented 7 years ago

uasyncio is not included by default in the build. You can install it in 3 ways:

The easiest thing to do is use upip.

(Note that you'll need the latest build as of e13e9f557429f645dae47392d0c3778ed3f9046b because I enabled the utimeq module which is required for uasyncio to work.)

MissingNoIOI commented 7 years ago

Ah, thanks, it was my misunderstanding then