cancel
Showing results for 
Search instead for 
Did you mean: 

How to install pip or python package (as pyserial.py)

Olivier73
Associate II

Hi,

How can I install pyserial.py python modul on Discovery kit STM32MP135F.
I would like also install pip 

 

Thank you for your help.

Olivier

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Olivier73 

You have a old OpenSTLinux image on your board. I would recommend to upgrade it with the last OpenSTLinux ecosystem (currently 5.0).

To my mind, the error you see comes from an uninitialized date on your board. Try to update the date with the command:

root@stm32mp1:~# date 041714172024
root@stm32mp1:~# date
Wed Apr 17 14:17:01 UTC 2024

Then replay your apt commands.

Best regards

--JM 

View solution in original post

5 REPLIES 5
Andrew Neil
Evangelist III

Have you got your internet working yet?

Presumably, it would be the same as installing it on any other Debian system?

https://community.st.com/t5/stm32-mpus-products/text-editor/m-p/662233/highlight/true#M11091

 

 

Jean-Marc B
ST Employee

Hi @Olivier73 

if you have an internet access, you can type the following two commands from your board console:

root@stm32mp1:~ # apt-get update
root@stm32mp1:~ # apt-get install python3-pyserial

The python3-pyserial package is provided by default in the OpenSTLinux distribution.

Best regards,

--JM 

Hello Jean-Marc, Andrew,

I thing I am connected with internet (I not sure).

If I test : (see bellow the error message)

 

apt-get update

 

root@stm32mp1:/etc/wpa_supplicant# apt-get update

The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.

Get:1 http://packages.openstlinux.st.com/4.0 kirkstone InRelease [3459 B]
Reading package lists... Done
E: Release file for http://packages.openstlinux.st.com/4.0/dists/kirkstone/InRelease is not valid yet (invalid for another 135d 10h 30min 9s). Updates for this repository will not be applied.
root@stm32mp1:/etc/wpa_supplicant#

 

apt-get install python3-pyserial

root@stm32mp1:/etc/wpa_supplicant# apt-get install python3-pyserial
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python3-pyserial
root@stm32mp1:/etc/wpa_supplicant#

 

Reading package looks ok so my internet link seems Ok ( I suppose) but the rest doesn't works !

 

thank you

 

Hi @Olivier73 

You have a old OpenSTLinux image on your board. I would recommend to upgrade it with the last OpenSTLinux ecosystem (currently 5.0).

To my mind, the error you see comes from an uninitialized date on your board. Try to update the date with the command:

root@stm32mp1:~# date 041714172024
root@stm32mp1:~# date
Wed Apr 17 14:17:01 UTC 2024

Then replay your apt commands.

Best regards

--JM 

Olivier73
Associate II

Thanks Jean-Marc,
It's ok now I've been able to install pyserial.
I know I need to update the OpenSTLinux image but for that I need a VM with linux on my laptop and I need authorization from my company to install it. I'll do it as soon as possible.

Thanks again,

Olivier