Skip to main content
MakerMelissa
Associate II
September 1, 2020
Solved

Python Missing Modules on STM32MP1 OpenSTLinux

  • September 1, 2020
  • 5 replies
  • 5307 views

I have an STM32MP1-DK2 and have tried to install pip using several python mechanisms, but there are missing modules. The notable ones that I found missing are runpy and xmlrpc. Even when I go into python and type help() it spits out an error about pydoc missing. All available python packages have been installed via apt-get install.

I'm wondering do I have a bad image or is there a way to get these built-in packages?

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @MakerMelissa​ 

"apt-get install python3-pip " is fully working on our platform.

Didn't it fit your need ?

Olivier

5 replies

Olivier GALLIEN
Technical Moderator
September 1, 2020

Hi @MakerMelissa​ 

Could you please specify on which ecosystem you are working ? V1.2 or V2.0 ?

Thanks

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MakerMelissa
Associate II
September 1, 2020

I tried it with both. With 1.2 I got runpy and xmlrpc were missing. With 2.0 I got getpass is missing.

Hsn
Associate II
September 1, 2020

How did you installed pip?

did you added pip in local.conf like this below?

IMAGE_INSTALL_append += "python3-pip"

if yes, and its still not working then you can try adding xmlrpc-c from meta-openembedded layer in your local.conf file.

MakerMelissa
Associate II
September 1, 2020

I tried

python -m ensurepip --default-pip

and using the script https://bootstrap.pypa.io/get-pip.py

I'm not sure what you're referring to with regards to local.conf. I did not see that file. Is it supposed to be under /etc?

Hsn
Associate II
September 1, 2020

Sorry, I thought you are using yocto. my bad!

MakerMelissa
Associate II
September 1, 2020

Yes, I'm using OpenSTLinux, which is Yocto based. I'm using the images provided by ST, but perhaps I need to do something custom to use it?

Hsn
Associate II
September 1, 2020

No, i think you can use it as it is. But you can also take Distibution Package from STM and build your own linux. There is some resources present in wiki which you can follow:

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package#Installing_the_OpenSTLinux_distribution

MakerMelissa
Associate II
September 1, 2020

Thanks, I'll give that a try a little later.

Olivier GALLIEN
Technical Moderator
September 2, 2020

Hi @MakerMelissa​ 

"apt-get install python3-pip " is fully working on our platform.

Didn't it fit your need ?

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MakerMelissa
Associate II
September 2, 2020

This did not work with version 1.2 that came on the SD Card that came with the STM32MP1, but on the 2.0 version I flashed, after running apt-get update, it worked!