I cannot find upip

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
arg
Posts: 6
Joined: Wed Jul 06, 2022 8:50 am

I cannot find upip

Post by arg » Sat Jul 16, 2022 1:03 pm

Hello :)

Pyboard series D
MicroPython v1.19.1 on 2022-06-18; PYBD-SF2W with STM32F722IEK

I want to use the module aioble for bluetooth functions.
upip/pip are not on my distribution, see below

What I actually want to do is get the names of bluetooth devices within range ( i think i have hex IDs )

>>> help('modules')
__main__ micropython ubluetooth ure
_onewire network ucollections uselect
_uasyncio onewire ucryptolib usocket
_webrepl pyb uctypes ussl
builtins stm uerrno ustruct
cmath uarray uhashlib usys
dht uasyncio/__init__ uheapq utime
framebuf uasyncio/core uio utimeq
gc uasyncio/event ujson uwebsocket
lcd160cr uasyncio/funcs umachine uzlib
lcd160cr_test uasyncio/lock uos webrepl
lwip uasyncio/stream uplatform webrepl_setup
math ubinascii urandom websocket_helper
Plus any modules on the filesystem[/size]

Assistance would be welcome, regards Andrew

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: I cannot find upip

Post by pythoncoder » Sun Jul 17, 2022 3:23 pm

I don't know why it isn't installed by default, but it can be found here. You need to copy upip.py and upip_utarfile.py to your filesystem.
Peter Hinch
Index to my micropython libraries.

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

Re: I cannot find upip

Post by jimmo » Mon Jul 18, 2022 3:26 am

arg wrote:
Sat Jul 16, 2022 1:03 pm
I want to use the module aioble for bluetooth functions.
upip/pip are not on my distribution, see below
Peter is right that you can install upip manualy, but note that upip will not be able to install aioble. In the meantime you can copy the aioble directory to your board (from https://github.com/micropython/micropyt ... oth/aioble).

Code: Select all

mpremote connect /dev/ttyACM0 mkdir :aioble
mpremote connect /dev/ttyACM0 fs cp /path/to/micropython-lib/micropython/bluetooth/aioble/aioble/*.py :aioble/
I'm currently in the middle of updating upip and improving package installation (see https://github.com/micropython/micropython/pull/8914 ) in order to support this in more.

arg
Posts: 6
Joined: Wed Jul 06, 2022 8:50 am

Re: I cannot find upip

Post by arg » Sat Jul 30, 2022 8:36 am

Good evening :)

Pyboard series D
MicroPython v1.19.1 on 2022-06-18; PYBD-SF2W with STM32F722IEK

I'm clearly not understanding a lot...

The file system: is this the PYBFLASH directory shown in file explorer? ( boot,main,README etc )

To install pip do I copy the upip and upip_utafile files to it?

Having done so:
>>> import upip as pip
>>>

...shows no errors

My apologies for such low level questions but my searches were fruitless.

Post Reply