This seems like it could be one of two problems:
- An import conflict, i.e. there is another module/file named Crypto that
python is attempting to import.
- The path to your module isn't in sys.path.
To solve 1, check the full import error stack trace to find where the Crypto.Cipher.AES is trying to import from, this should match the path of your Crypto module. Also check for any files/folders with the name Crypto
that would cause an import collision in your application.
To solve 2, check your sys.path:
import sys
print sys.path
This is where the system looks when trying to import a module. If the exact path or root path to your module doesn't exist within this list, then the module will not be found.
You can add a path using the following:
sys.path.append('path/to/your/module')