peterhinch / micropython-async

Application of uasyncio to hardware interfaces. Tutorial and code.
MIT License
742 stars 168 forks source link

ThreadSafeQueue import error #104

Closed beyonlo closed 1 year ago

beyonlo commented 1 year ago
$ mpremote 
Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] to exit this shell
>>> 
>>> import os
>>> os.uname()
(sysname='esp32', nodename='esp32', release='1.20.0', version='v1.20.0 on 2023-04-26', machine='ESP32S3 module (spiram) with ESP32S3')
>>> from primitives import ThreadSafeQueue
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "primitives/__init__.py", line 59, in __getattr__
AttributeError: ThreadSafeQueue
>>> 
beyonlo commented 1 year ago

Sorry, my fault. I see an old example, but now has a dedicated dir threadsafe