import smtp issue on bolt.sonic.net
Posted: Sun Oct 23, 2016 12:43 am
Hi,
I was working on a Python script that requires sending an email (to myself) at the end of the script. When I try to import stmplib, I get the following error
I was working on a Python script that requires sending an email (to myself) at the end of the script. When I try to import stmplib, I get the following error
The error message points at /opt/python-2.3.4//lib/python2.3/smtplib.py line 49 which is"import smtplib
File "/opt/python-2.3.4//lib/python2.3/smtplib.py", line 49, in ?
from email.base64MIME import encode as encode_base64
ImportError: No module named base64MIME"
from email.base64MIME import encode as encode_base64
$ ls -ll /opt/python-2.3.4/lib/python2.3/email/base64MIME.py
-rw-r--r-- 1 root root 5866 Nov 5 2004 /opt/python-2.3.4/lib/python2.3/email/base64MIME.py
Long story short, I am note sure why I can't import smtplib on bolt but any help would be appreciated.$ ls -ll /opt/python-2.3.4/lib/python2.3/email/__init__.py
-rw-r--r-- 1 root root 1880 Nov 5 2004 /opt/python-2.3.4/lib/python2.3/email/__init__.py