Code: Select all
Traceback (most recent call last):
File "<stdin>", line 11, in <module>
AttributeError: 'module' object has no attribute 'get_event_loop'
>>>
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 11, in <module>
AttributeError: 'module' object has no attribute 'get_event_loop'
>>>
Code: Select all
>>> import uasyncio as asyncio
>>> dir(asyncio)
['StopLoop', 'EventLoop', 'start_server', 'Sleep', 'ensure_future', 'sleep', 'IOWriteDone', 'IORead', 'SysCall', 'sleep_ms', '__file__', 'IOReadDone', 'StreamWriter', 'core', 'coroutine', 'EpollEventLoop', 'type_gen', 'logging', 'SysCall1', 'heapq', 'DEBUG', '__name__', 'select', '__path__', 'uasyncio', 'StreamReader', 'IOWrite', 'log', 'get_event_loop', 'time', 'errno', 'Task', 'open_connection', '_socket']
>>>
Code: Select all
>>> import uasyncio as asyncio
>>> dir(asyncio)
['__name__', '__path__']
>>>
Code: Select all
$ ls -lah /g/lib/*
-rw-r--r-- 1 dma None 1,4K 22 ott 00.18 /g/lib/errno.py
-rw-r--r-- 1 dma None 2,0K 14 nov 12.24 /g/lib/logging.py
/g/lib/uasyncio:
totale 16K
drwxr-xr-x 1 dma None 0 14 nov 10.28 .
drwxr-xr-x 1 dma None 0 10 nov 10.44 ..
-rw-r--r-- 1 dma None 6,1K 13 nov 18.51 __init__.py
-rw-r--r-- 1 dma None 5,8K 13 nov 18.51 core.py
dma@dma-pc MSYS /c/Users/Damiano/OneDrive/micropython/uble/micropython-lib
Code: Select all
MicroPython v1.8.6-141-g4c7d799-dirty on 2016-12-05; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> import uasyncio as asyncio
>>> dir(asyncio)
['StopLoop', 'EventLoop', 'start_server', 'Sleep', 'ensure_future', 'sleep', 'IOWriteDone', 'IORead', 'SysCall', 'sleep_ms', '__file__', 'IOReadDone', 'StreamWriter', 'core', 'coroutine', 'EpollEventLoop', 'type_gen', 'logging', 'SysCall1', 'heapq', 'DEBUG', '__name__', 'select', '__path__', 'uasyncio', 'StreamReader', 'IOWrite', 'log', 'get_event_loop', 'time', 'errno', 'Task', 'open_connection', '_socket']
>>>
YesIs this how you installed it?
No, but can be added.Is the procedure documented anywhere?
I have done it using msys2 on WindowsIt seems problematic for those not running Linux. Or is there another way to run upip on the Pyboard?