ImportError: No module named Cryptodome

See original GitHub issue
  File "./idp.py", line 25, in <module>
    from saml2.authn import is_equal
  File "/mnt/work/_third/pysaml2/src/saml2/authn.py", line 5, in <module>
    from saml2.aes import AESCipher
  File "/mnt/work/_third/pysaml2/src/saml2/aes.py", line 6, in <module>
    from Cryptodome import Random
ImportError: No module named Cryptodome

“Swap pycrypto* for pyca/cryptography” was incomplete: https://github.com/rohe/pysaml2/commit/afdf5b4a8cca33dbe746095d9442b958c5fa9a24

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

17reactions
c00kiemon5tercommented, Jul 3, 2018

I think one only needs to install pycryptodomex.

8reactions
sudo-WearTherinGcommented, Aug 14, 2020

i was missing module cryptodomex.hash i fixed the missing module using this command pip install “pycryptodomex==3.9.7”

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'Crypto' Error
pip install pycryptodomex from Cryptodome.Cipher import AES. For python3 the package name is now pycryptodome or pycryptodomex.
Read more >
No module named 'Cryptodomex' error when running ...
Cipher import AES ModuleNotFoundError: No module named 'Cryptodome' I have searched this issue and the recommended solution was to pip ...
Read more >
importerror: no module named cryptodome.cipher
importerror : no module named cryptodome.cipher. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On January 6, 2022 Popularity...
Read more >
ModuleNotFoundError No module named Crypto
pip install pycryptodomex from Cryptodome.Cipher import AES ... Python: ImportError: No module named Crypto.Cipher.
Read more >
modulenotfounderror: no module named 'crypto'
pip install pycryptodomex from Cryptodome. ... ImportError: No module named 'Crypto' ... All modules are installed under the Cryptodome package.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found