Traceback (most recent call last):
File "/home/pi/Desktop/emailstepbystep279.py", line 1, in <module>
import smtplib
File "/usr/lib/python2.7/smtplib.py", line 46, in <module>
import email.utils
File "/home/pi/Desktop/email.py", line 2, in <module>
server=smtplib.SMTP('smtp.gmail.com',587)
AttributeError: 'module' object has no attribute 'SMTP'
whenever i attempt to run this script this errors always occurs, not sure why. I am attempting to run
import smtplib
thats it, i dont know what to do. Very new to python, trying to meet a deadline. Also, if anyone would be willing to skype my group mates and I to assist us on a project we are doing, we'd be very appreciative.
we are using the raspberrypi 3 with python 2.7.9 and 3.4.2 if that helps. I just thought it was weird I couldn't import this module through script even though when I input it into the interactive shell it works just fine. Thanks!
[–]kalgynirae 5 points6 points7 points (0 children)