My python script is not running under my crontab.
I have placed this in the python script at the top:
#!/usr/bin/python
I hav
It's usually because the python used by crontab is different from the one you use in the shell. The easiest way to solve this is:
$ which python # it may be "python3" or something else
/usr/bin/python
* * * * * /usr/bin/python test.py
Also want to mention that using env -i /bin/bash --noprofile --norc
in the shell lets you have the same environment as the one used by crontab, and this is super helpful to debug.