Can not import upip

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
cvikash
Posts: 6
Joined: Fri Feb 28, 2020 8:32 am

Can not import upip

Post by cvikash » Fri Feb 28, 2020 8:48 am

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!

User avatar
jimmo
Posts: 1440
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Can not import upip

Post by jimmo » Fri Feb 28, 2020 9:03 am

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)

cvikash
Posts: 6
Joined: Fri Feb 28, 2020 8:32 am

Re: Can not import upip

Post by cvikash » Fri Feb 28, 2020 9:33 am

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 :)

User avatar
Roberthh
Posts: 1890
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Can not import upip

Post by Roberthh » Fri Feb 28, 2020 9:36 am

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.

cvikash
Posts: 6
Joined: Fri Feb 28, 2020 8:32 am

Re: Can not import upip

Post by cvikash » Fri Feb 28, 2020 9:42 am

First of all, sorry for my naive post! Thanks Roberthh! I will use machine.UART.

Post Reply