Python ‘No module named’ error; ‘package’ is not a package

The issue was in the naming of my file.

I hastily named my file emailage.py and then tried to import from emailage.client.

I’m assuming that Python looked in my current directory and matched the names of the file I was working on before checking the installed third party libraries.

After renaming my file everything seems ok.

For others who run into similar problems — beware of conflicting naming. Sometimes the simplest things trip you up the longest.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)