-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yocto build: optee-os 3.8.0: ModuleNotFoundError: No module named 'Cryptodome' #3624
Comments
Interestingly, Cryptodome module is found in python counter part of the recipe: python-pycryptodomex_3.9.4.bb. Logfind tmp/ -path '*/Cryptodome/init.py' |
OP-TEE wants Python 3, it seems you have the Cryptodome module only for Python 2 (2.7). |
Not sure if this will work, but also try below. Note the 'x' after 'pycryptodome'.
|
Thanks a lot jforissier & vchong. There is no such recipe as python3-pycryptodomex-native for python3. As per my understanding, python3-pycryptodome is somehwat superset of python3-pycrypto Logbitbake -v python3-pycryptodomex-native Summary: There was 1 ERROR message shown, returning a non-zero exit code. |
Maybe these can help: https://www.mail-archive.com/[email protected]//msg11149.html Seems like they've created a python3-pycryptodomex-native recipe that includes python-pycryptodomex.inc. |
Thanks a lot vchong. This is very helpful. |
Following patches worked finally for me: inherit deploy autorev-pv python3native Following are the python dependency contents of optee_os recipe which worked for me:optee_os.bb:DEPENDS += "python3-pycrypto-native" Following are patches for new files for python3-pycryptodomex recipe:
|
optee_os.bb: Attached is the patch for adding |
I 'm trying to build optee_os 3.8.0 thorugh Yocto on Ubuntu 18.04 LTS build machine.
I see error: ModuleNotFoundError: No module named 'Cryptodome'
Build components' details
optee_os version: 3.8.0
Build machine: Ubuntu 18.04 LTS
Yocto poky verison: 3.0
python3-pycryptodome version: 3.9.4:
meta-openembedded/meta-python/recipes-devtools/python/python3-pycryptodome_3.9.4.bb
I included following lines in my Yocto optee_os.bb recipe to handle dependecies:
inherit deploy autorev-pv python3native
DEPENDS += "python3-pyelftools-native"
DEPENDS += "python3-pycryptodome-native"
##DEPENDS += "python3-pycrypto-native"
Error Log
The text was updated successfully, but these errors were encountered: