cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE - STM32MP257 post build python imports errors

ofer-bahar
Associate II

Hello 

I'm starting development on the STM32MP257xEV1 (I already have an experience with the STM32CubeIDE with lots of MCUs)

I followed the installation instructions, IDE 1.17 => and the MP2 package + patch => Python packages 

I'm running on windows 10 x64, have the python 3.10 and checked that those libraries are installed (i.e. pip list and jupyter-lab example python code)

 

The board OpenSTLinux is booted correctly from the SDCARD, and I see the terminal and have a live Linux console 

Basically I wanted to start with an example on the M33, and started with the following link: Modify, rebuild and reload the firmware - stm32mpu

the project : OpenAMP_TTY_echo is loaded correctly, and the build of _ns is completed OK

When I choose (with the hammer) the _ns_sign

oferbahar_0-1735643180263.png

 I get this error : 

oferbahar_1-1735643345877.png

Th trackback shows: ImportError: cannot import name 'utils' from 'cryptography.hazmat.primitives.ciphers.aead' (C:\Python\Python310\lib\site-packages\cryptography\hazmat\primitives\ciphers\aead.py)

It looks like a python path issues of the STM32CubeIDE, 

How should I sol

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ofer-bahar
Associate II

Hi 

 

Updating that the issue was solved by 

uninstalling Cryptography => pip uninstall Cryptography

re installing Cryptography version 3.1.1 => pip install Cryptography==3.1.1

 

checked this externally in command prompt running: python sign_rproc_fw.py from the directory of installation (

View solution in original post

1 REPLY 1
ofer-bahar
Associate II

Hi 

 

Updating that the issue was solved by 

uninstalling Cryptography => pip uninstall Cryptography

re installing Cryptography version 3.1.1 => pip install Cryptography==3.1.1

 

checked this externally in command prompt running: python sign_rproc_fw.py from the directory of installation (