Python Missing Modules on STM32MP1 OpenSTLinux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-31 6: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.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-02 1:15 AM
Hi @MakerMelissa​
"apt-get install python3-pip " is fully working on our platform.
Didn't it fit your need ?
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 7: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 8:00 AM
Sorry, I thought you are using yocto. my bad!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 8: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 8: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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-01 8:18 AM
Thanks, I'll give that a try a little later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-02 1:15 AM
Hi @MakerMelissa​
"apt-get install python3-pip " is fully working on our platform.
Didn't it fit your need ?
Olivier
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.
