v1.13 uasyncio; won't import (object has no attribute 'poll')

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
mountainstorm
Posts: 2
Joined: Thu Dec 31, 2020 8:10 pm

v1.13 uasyncio; won't import (object has no attribute 'poll')

Post by mountainstorm » Thu Dec 31, 2020 8:15 pm

I just tried importing uasyncio and it errors on both my ESP32 and ESP8266 with v1.13.

Am I missing something; or just the first person to try this?

Code: Select all

MicroPython v1.13 on 2020-09-11; ESP module with ESP8266
Type "help()" for more information.
>>> import uasyncio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uasyncio/__init__.py", line 1, in <module>
  File "uasyncio/core.py", line 1, in <module>
  File "uasyncio/core.py", line 1, in new_event_loop
  File "uasyncio/core.py", line 1, in __init__
AttributeError: 'module' object has no attribute 'poll'

Code: Select all

MicroPython v1.13 on 2020-09-02; ESP32 module with ESP32
Type "help()" for more information.
>>> import uasyncio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uasyncio/__init__.py", line 1, in <module>
  File "uasyncio/core.py", line 1, in <module>
  File "uasyncio/core.py", line 1, in new_event_loop
  File "uasyncio/core.py", line 1, in __init__
AttributeError: 'module' object has no attribute 'poll'

mountainstorm
Posts: 2
Joined: Thu Dec 31, 2020 8:10 pm

Re: v1.13 uasyncio; won't import (object has no attribute 'poll')

Post by mountainstorm » Fri Jan 01, 2021 5:29 am

Figured it out; I had a file called select.py in the root - and it was obviously picking that up. Deleted the file and it now works

Post Reply