Well part of the problem is that the script itself works fine. I can run from the command line without a hitch. But when I try to run it via the cron, I get the traceback about the feedparser module.
On Mar 4, 7:36 am, Evert Rol <[EMAIL PROTECTED]> wrote: > > No, I haven't tried that. How would I go about citing that? > > Top of script (possibly just below the she-bang): > > import sys > print sys.path > > >>> Traceback (most recent call last): > >>> File "/path/to/script/update_feeds.py", line 10, in ? > >>> import feedparser > >>> ImportError: No module named feedparser > > >>> And here is the cron: > > >>> export PYTHONPATH=/path/to/python2.3/site-packages:/path/to/django/ > >>> app > >>> export DJANGO_SETTINGS_MODULE=myproject.settings > >>> 1 * * * * /usr/bin/python /path/to/script/update_feeds.py > > >>> I'm running the cron on my Dreamhost account BTW. > > >> Did you try printing out the sys.path at the top of your script, so > >> see if the PYTHONPATH is picked up correctly from the cron > >> environment > >> settings? I'd guess it should, but it may go wrong there (I'm no cron > >> expert). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---