This is a follow up to this thread.
I am trying to get a cron job to run and unfortunately for some reason nothing happens. I decided to have the script run on boot and surprisingly, this time around, my var/mail/pi file told me that something is wrong with my script.
Here is the contents:
Traceback (most recent call last):
This script runs without error manually, but for some reason whenever I try to run it with cron it does nothing. I changed paths and tested this script on a PC in Task Scheduler and did not have any problems.
Code: Select all
File "/home/pi/Desktop/directory/file.py", line 106, in <module> function(param) File "/home/pi/Desktop/directory/file", line 13, in function server = IMAPClient(host, use_uid=True) File "/usr/local/lib/python3.5/dist-packages/imapclient/imapclient.py", line 254, in __init__ self._imap = self._create_IMAP4() File "/usr/local/lib/python3.5/dist-packages/imapclient/imapclient.py", line 289, in _create_IMAP4 self._timeout) File "/usr/local/lib/python3.5/dist-packages/imapclient/tls.py", line 44, in __init__ imaplib.IMAP4.__init__(self, host, port) File "/usr/lib/python3.5/imaplib.py", line 189, in __init__ self.open(host, port) File "/usr/local/lib/python3.5/dist-packages/imapclient/tls.py", line 49, in open sock = socket.create_connection((host, port), self._timeout.connect) File "/usr/lib/python3.5/socket.py", line 694, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/lib/python3.5/socket.py", line 733, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution