2020-08-31 06:21 PM
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?
Solved! Go to Solution.
2020-09-02 01:15 AM
Hi @MakerMelissa
"apt-get install python3-pip " is fully working on our platform.
Didn't it fit your need ?
Olivier
2020-09-01 12:42 AM
Hi @MakerMelissa
Could you please specify on which ecosystem you are working ? V1.2 or V2.0 ?
Thanks
Olivier
2020-09-01 12:43 AM
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.
2020-09-01 07:52 AM
I tried it with both. With 1.2 I got runpy and xmlrpc were missing. With 2.0 I got getpass is missing.
2020-09-01 07:58 AM
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?
2020-09-01 08:00 AM
Sorry, I thought you are using yocto. my bad!
2020-09-01 08:08 AM
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?
2020-09-01 08:13 AM
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:
2020-09-01 08:18 AM
Thanks, I'll give that a try a little later.
2020-09-02 01:15 AM
Hi @MakerMelissa
"apt-get install python3-pip " is fully working on our platform.
Didn't it fit your need ?
Olivier