Skip to main content
Associate II
Feb 8, 2024 10:24 AM UTC
Solved

Control STM32MP157D-DK1 GPIO with python

Hello,

I want to control STM32mp157d-dk1 GPIO from python i tried to use libgpiod but apt-get install python3-pip not work for me

Softcity_0-1707387204205.png

 

This topic has been closed for replies.
PatrickF
PatrickFBest answer
ST Employee
Feb 13, 2024 2:15 PM UTC

Hi @Softcity 

please try

 

 apt-get install python3-gpiod

 

 

as a general rule, to know if a package is available with apt-get, you could use

 

apt-get update
apt-cache search xxxx

 

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent

10 replies

Jean-Marc B
ST Employee
Feb 8, 2024 12:44 PM UTC

Hi @Softcity 

python3-pip is a package provided by our ecosystem.

Could you refresh the apt database and get the python3-pip status with the following commands

root@stm32mp1:~# apt-get update
root@stm32mp1:~# apt-cache policy python3-pip

 and gives me the output please?

Best regards,

--JM

SoftcityAuthor
Associate II
Feb 8, 2024 1:35 PM UTC

Thank you for your reply, the same error unable to locate package python3-pipScreenshot from 2024-02-08 14-28-39.png

PatrickF
ST Employee
Feb 8, 2024 1:52 PM UTC

Hi,
Sound like your board is not connected to the Internet (RJ45 or WLAN)

 

 

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
PatrickF
ST Employee
Feb 8, 2024 12:48 PM UTC

Hi @Softcity ,

Ensure you are connected to internet and the date is set to current time.
See also https://community.st.com/t5/stm32-mpus-products/i-cannot-use-the-pip-command-with-the-starter-package-is-it/m-p/202592/highlight/true#M5991

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
PatrickF
ST Employee
Feb 8, 2024 12:55 PM UTC

@Softcity 

ensure you are running the latest Starter Package for your board (use the FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv).

See https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent