Skip to main content
Visitor II
April 17, 2024
Solved

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

  • April 17, 2024
  • 3 replies
  • 4063 views

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

    This topic has been closed for replies.
    Best answer by Jean-Marc B

    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 

    3 replies

    Super User
    April 17, 2024

    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

     

     

    ST Employee
    April 17, 2024

    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 

    Olivier73Author
    Visitor II
    April 17, 2024

    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

     

    ST Employee
    April 17, 2024

    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 

    Olivier73Author
    Visitor II
    April 17, 2024

    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