Is this Seaborn or smtplib problem? You might be using Seaborn for the graphing purposes, but the error comes from the smtplib package that is being used.
Quote:
ModuleNotFoundError: No module named 'email.utils'; 'email' is not a package
One of the reasons that this error happen is because you "might" have an "email" file within your directory. Python is very notorious when it comes to variables/naming. It doesn't warn you when you are overriding another name (
thus leading to such problems).
Once I was using the
list
as a variable name for my Python program, and Python allowed me to use the name, but only later when I wanted to create a
list
it kept telling me that list is not a method and I cannot call it.
Try removing any email files from your local code and see if it works.
On a side note, (
I have not tried this package you are using yet!), have you tried using
from emails import utils
?