Page 1 of 1

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

Posted: Thu Dec 31, 2020 8:15 pm
by mountainstorm
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'

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

Posted: Fri Jan 01, 2021 5:29 am
by mountainstorm
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