adafruit / Adafruit_CircuitPython_asyncio

CIrcuitPython subset of CPython asyncio library
MIT License
28 stars 16 forks source link

Trinket M0: ImportError: no module named 'select' #18

Closed todbot closed 2 years ago

todbot commented 2 years ago

On Trinket M0, you get the error:

>>> import asyncio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "asyncio/__init__.py", line 14, in <module>
  File "asyncio/core.py", line 15, in <module>
ImportError: no module named 'select'

Apparently small CircuitPython builds do not have select?

ladyada commented 2 years ago

yeah small boards without ext flash like the trinket m0 could not fit async :/ you could use a qt py rp2040?

todbot commented 2 years ago

Oh I see this is a dupe of #14. Never mind! I see it at the bottom of the FAQ now: https://learn.adafruit.com/cooperative-multitasking-in-circuitpython-with-asyncio/overview#hardware-3106572-11

dhalbert commented 2 years ago

I will see about adding a better message at the beginning of asyncio to warn you async/await is not supported.

JRiggles commented 10 months ago

If I solder a flash chip to my QT Py, will it be able to support Asyncio (assuming I'm using the correct flavor of Circuitpython)? Or is it a total non-starter on the M0 boards?

todbot commented 10 months ago

If I solder a flash chip to my QT Py, will it be able to support Asyncio (assuming I'm using the correct flavor of Circuitpython)? Or is it a total non-starter on the M0 boards?

Sorry @JRiggles, a non-starter. There's also not enough RAM on SAMD21 parts, something we can't just add.

JRiggles commented 9 months ago

@todbot No worries - I figured that might be the case. Thanks for the clarification.