I have a very simple python script that works when I execute manually. However when I set up a crontab, it finds the script but returns the error "[Errno 1] Operation not permitted".
I tried to set up a root crontab with the command
sudo crontab -e
but the same error occurs.
Here's my crontab:
* */1 * * * /usr/bin/python /absolute_path/test.py > /absolute_path/cron_log_test.log 2>&1
Edit: Everything was working great until I updated to macOS Catalina.
ls -l.ls -lfor the Python file here. That will help us understand the file privileges.