Python AES import error Please

22,501

Most likely, your PyCrypto installation is broken and _AES.dll is missing.

Try to reinstall it according to this question: How do I install PyCrypto on Windows?

Share:
22,501
Admin
Author by

Admin

Updated on October 24, 2020

Comments

  • Admin
    Admin over 3 years

    I have AES inside Cipher inside Crypto(Python27\Lib\Crypto\Cipher\AES module)

    When I try to import AES from Crypto.Cipher import AES I get the following error:

    Traceback (most recent call last):
      File "<pyshell#1>", line 1, in <module>
        from Crypto.Cipher import AES
      File "C:\Python27\lib\Crypto\Cipher\AES.py", line 50, in <module>
        from Crypto.Cipher import _AES
    ImportError: cannot import name _AES
    

    But I can import another module like from Crypto.Cipher import blockalgo working fine. So I'm guessing there some error in AES module?