python: module 'Crypto.Cipher.AES' has no attribute 'MODE_CCM' even though pycrypto installed
according to https://gist.github.com/jbdatko/7425443 the newest version of pycrypto does not have the CCM mode.
I solved the problem by installing pip install pycryptodomex
and replacing the Crypto
package withCryptodome
after installing:
in your python code
replace from Crypto.Cipher import AES
with from Cryptodome.Cipher import AES