ModuleNotFoundError: No module named ‘Crypto’

Traceback (most recent call last):
File "/app/tools/gen_fw_json.py", line 4, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
make[1]: *** [makefile:58: post-build] Error 1
make: *** [makefile:46: ipcontroller-gateif.elf] Error 2
"make -j4 all" terminated with exit code 2. Build might be incomplete.

Solution:

$ sudo apt install python3-pip
$ sudo pip3 install pycryptodome==3.4.3

Based on this thread: https://github.com/openthread/openthread/issues/1137

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s