Day: May 6, 2020

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