Good catch. That would definitely cause the error.malakai wrote:Not sure but do you have email.py in the same folder as the code your running if so won't python pick that up first invalidating the email.py that your trying to import?
This indicates that you may have an installation problem. If you are not running the most recent Raspbian image, I would recommend you update your installation and try your script again.ShadowEEngineer wrote: Lastly, When I only type "import smtplib" in the python shell, it returns an error.
I see nothing wrong with the image format. I will try it this evening when I get home to my Pi.tzj wrote:This should be it.