QUERY · ISSUE
`uasyncio.rst` and `uctypes.rst` are still named with `u` prefix
docsextmod
In the documents library files uasyncio.rst and uctypes.rst are still named with u prefix. The other similar files have u removed, e.g. os.rst.
CANDIDATE · ISSUE
uasyncio: ImportError: no module named 'uselect' on Pycom LoPy ESP32
As a newbee, I am still confused about when to use the u prefix in module names.
I got the following error when trying out the uasyncio module:
File "/flash/lib/uasyncio/__init__.py", line 2, in <module>
ImportError: no module named 'uselect'
Neither was upip of any help:
$ ./micropython -m upip install uselect
Installing to: /home/serge/.micropython/lib/
Warning: pypi.python.org SSL certificate is not validated
Error installing 'uselect': Package not found, packages may be partially installed
Importing
selectinstead ofuselectin__init__.pyresolves that issue, but then I get stuck onutimeqincore.py:This is really an issue for Pycom/LoPy: the LoPy is not an official MicroPython board and it's up to Pycom to provide support for uasyncio.
I understand. Again sorry, I am still trying to find my way amongst the different MicroPython camps, so to say.
The following answer was received from the
uasynciodeveloper on the MicroPython forum:To be honest, it is all a bit confusing when one was not there from the beginning. More so, — correct me if I am wrong — when I read that you do occasional work for Pycom. Perhaps a brief text up on micropython.org explaining the differences would be helpful. It all reminds me of the times when many dialects of BASIC were popular.
Anyhow, I better stick to the limited set of MicroPython features the Pycom microcosmos has on offer when developing for that board and complain over there when necessary…
Hi, I just noticed this thread. We’ll get this fixed soon. The select module should be accesible using the uselect name as well.
We’ll work on full support for asyncio as well but this might take a bit more time.
Cheers,
Daniel
Thanks, that would solve the
uselectissue!Coincidentally, this
uselectas well as theutimeqissue were both raised today by someone else over at the Pycom forum.Damien is absolutely right of course, the
utimeqissue pertains to the Pycom MicroPython variant. A Pycom bug report was opened and theutimeqdiscussion will continue over there.@stroobandt I'm using a WiPy2 from Pycom, with the latest firmware built from their github.
import utimeqandimport uselectboth seem to resolve to available modules. Do you want to give this a check on your end too?