Planet

From DreamHost

Jump to: navigation, search

Planet is a "river of news" RSS/Atom aggregator implemented in Python. It runs without modification on Dreamhost's servers.

Planet must be run from its installed directory like this:

python planet.py your-planet/config.ini

However, you probably want your Planet re-generated automatically by Cron and since Dreamhost's Crontab doesn't have an environment it will not work. Neither will specifying the full path to the files:

/usr/bin/python /home/you/planet-2.0/planet.py /home/you/planet-2.0/your-planet/config.ini
...
raise TemplateError, "IO error while reading template '%s': "\
planet.htmltmpl.TemplateError: Htmltmpl error: IO error while reading template 'index.html.tmpl': (2) No such file or directory

What I did was create a shell script that changes to the directory where Planet is installed, and run that from Crontab:

#! /bin/sh
cd /home/you/planet-2.0;
/usr/bin/python planet.py your-planet/config.ini

This works!

Personal tools