I have seen some amazing code in Peter Hinch's, https://github.com/peterhinch/micropython-async, repository. I would like to know how to get the required uasyncio module (which is part of micropython-lib) onto the PyBoard. I have V1.1 of the board. What is a good way to get the required modules from micropython-lib onto the pyboard so that I can use uasyncio and required modules?
Thanks
Rich
Getting some or all micropython-lib onto pyboard
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Getting some or all micropython-lib onto pyboard
* Install the unix port of micropython.
* Install rshell (https://github.com/dhylands/rshell).
* Download and install the module with upip:
* Use rshell to copy the module onto the pyboard's flash:
* Or use its 'rsync' command to copy everything:
* Install rshell (https://github.com/dhylands/rshell).
* Download and install the module with upip:
Code: Select all
micropython -m upip install micropthon-uasyncio
Code: Select all
rshell cp ~/.micropython/lib/uasyncio.py /flash
Code: Select all
rshell rsync ~/.micropython/lib/ /flash
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Getting some or all micropython-lib onto pyboard
@RWLTOK Thank you for your kind remark
But I do explain the installation process at the start of my tutorial...
It's also officially documented here.

It's also officially documented here.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
-
- Posts: 118
- Joined: Wed Dec 27, 2017 8:52 am
Re: Getting some or all micropython-lib onto pyboard
SpotlightKid wrote: ↑Mon Dec 18, 2017 11:59 am* Install the unix port of micropython.
* Install rshell (https://github.com/dhylands/rshell).
* Download and install the module with upip:
* Use rshell to copy the module onto the pyboard's flash:Code: Select all
micropython -m upip install micropthon-uasyncio
* Or use its 'rsync' command to copy everything:Code: Select all
rshell cp ~/.micropython/lib/uasyncio.py /flash
Code: Select all
rshell rsync ~/.micropython/lib/ /flash
When i use first command on rshell,, i get the following error.
Do you know what's the problem here or can you help me in installing uasyncio.Welcome to rshell. Use Control-D to exit.
/home/edutech> micropython -m upip install micropython-uasyncio
Unrecognized command: micropython -m upip install micropython-uasyncio
/home/edutech>
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Getting some or all micropython-lib onto pyboard
All the commands are given as shell commands, you run them directly from the terminal, not from within rshell.