My Python script runs fine in the terminal but when I try to set it up to run once a day at a certain time with launchd (set up using software called Lingon), I just can't get it to run. From everything I've read, it's better to invoke the Python script from a shell script (I'm on a Macbook, running Yosemite). So, that's what I'm trying to do. The errors I get when the script is due to be run are:
TERM environment variable not set.
env: python3: No such file or directory
At this point, I'm pretty sure it's an environment issue but no matter what I try, I just can't get it to run. By the way, I can get the shell script to run on the schedule this way:
#!/bin/bash
echo "hello world."
The problem comes when I try to run this:
#!/bin/bash
/Users/jeff/Documents/scripts/my_script.py
Also, even though I've been working with computers for a long time, I'm still pretty ignorant about a lot of things, so please tell me how to fix this like I'm a newbie.