Skip to main content
leeana
Associate III
Oct 5, 2021 7:58 AM UTC
Solved

Problems building SECoreBin (prebuild.sh)

Hello everyone,

I am trying to build SECoreBin, but the build fails with prebuild.sh. All python requirements listed in requirements.txt are installed, but the error is following:

ImportError: No module named Cryptodome.Cipher

And even more:

0693W00000FBSbCQAX.png 

What should I do? As I have said, cryptodome is installed.

This topic has been closed for replies.
leeana
leeanaBest answer
Associate III
Oct 5, 2021 8:58 AM UTC

Thank you, Jocelyn. I've checked the version and these were different (python3 required, but python2 was called). I have changed the default python version to 3.8 and it worked. (I am working under ubuntu).

3 replies

Jocelyn RICARD
ST Employee
Oct 5, 2021 8:41 AM UTC

Hello @leeana​ 

Which platform are you using ?

Can you make sure that the python version launched by STM32CubeIDE is the same you updated with pip?

Best regards

Jocelyn

leeana
leeanaAuthorBest answer
Associate III
Oct 5, 2021 8:58 AM UTC

Thank you, Jocelyn. I've checked the version and these were different (python3 required, but python2 was called). I have changed the default python version to 3.8 and it worked. (I am working under ubuntu).

Jocelyn RICARD
ST Employee
Oct 5, 2021 9:00 AM UTC

Hi @leeana​ 

Great! Thank you for your feedback

Best regards

Jocelyn