I’m trying to run a python script, and have this in my crontab:
15,30,45,0 * * * * …/twitterretriever.py
(full path not included)
This is a simple script that, as the name implies, retrieves twitter status messages.
It works fine when I run it myself, but when the cron daemon does it, I get this:
ImportError: No module named twitter
I’ve tried to export PYTHONPATH from within the program, but that makes no difference.
os.environ[‘PYTHONPATH’] = ‘/home/beertje/pymodules’
I’ve tried to require python-twitter, but get told
ImportError: No module named pkg_resources
I tried placing the python-twitter egg in the same folder as the script, still no banana.
I’m pretty much groping in the dark, so if could tell me what I need to do to locate the twitter module, it would be very much appreciated.