Hello micropython experts,
I'm completely new to micropython and recently I started to use pyboard 1.1. When I try to import upip in REPL so i can install new micropython packages I get no module upip error. It would be very kind of you guys if you can help me this.
Thanks a lot in advance!
Can not import upip
Re: Can not import upip
Hi,
The Pyboard 1.1 doesn't have builtin wifi or ethernet, so there's no need for upip (which downloads packages from the internet).
What were you trying to install?
The three options are:
- Find the python files for the project and copy them (e.g. from github or wherever)
- Use upip on your PC to download the files, then copy them across manually.
- If you've got an external ethernet adaptor, then you've probably built the firmware from scratch, so you can also add the upip module to the build.
(The first option is probably the best/easiest)
The Pyboard 1.1 doesn't have builtin wifi or ethernet, so there's no need for upip (which downloads packages from the internet).
What were you trying to install?
The three options are:
- Find the python files for the project and copy them (e.g. from github or wherever)
- Use upip on your PC to download the files, then copy them across manually.
- If you've got an external ethernet adaptor, then you've probably built the firmware from scratch, so you can also add the upip module to the build.
(The first option is probably the best/easiest)
Re: Can not import upip
Thanks a lot Jimmo!
I'm trying to install pyserial. I tried to copy the files from git and put in the flash but the the flash drive doesn't have much space. I think I have to put an external sd card to extend memory.
I will do what you have suggested and after trying this, I will get back to you.
Thanks once again
I'm trying to install pyserial. I tried to copy the files from git and put in the flash but the the flash drive doesn't have much space. I think I have to put an external sd card to extend memory.
I will do what you have suggested and after trying this, I will get back to you.
Thanks once again
Re: Can not import upip
You do not need pyserial on the board, because support for serial is built-in. And pyserial would anyhow not work. For serial, look for pyb.UART or machine.UART.
Re: Can not import upip
First of all, sorry for my naive post! Thanks Roberthh! I will use machine.UART.