PlanetPlanet setup problems

apps

#1

Hi. I’m trying to setup PlanetPlanet for a LiveJournal Friends-like aggregator (for now I’m testing it), and I’m coming across some problems with, it appears, cache-writing for each site’s feed. This is how it comes out for me, each time:

[vex]$ python2.2 planet-nightly/planet.py planet-nightly/examples/config.ini
INFO:root:Subscribing http://usefulinc.com/edd/blog/rss91
INFO:root:Updating feed http://usefulinc.com/edd/blog/rss91
DEBUG:root:Encoding: UTF-8
DEBUG:root:Modified: February 23, 2005 07:00 PM
DEBUG:root:URI: http://usefulinc.com/edd/blog/rss91
WARNING:root:Cache write failed <cache/usefulinc.com.edd.blog.rss91>
Traceback (most recent call last):
File “planet-nightly/planetlib.py”, line 254, in cache_write
c = open(cache_uri, “w”)
IOError: [Errno 2] No such file or directory: 'cache/usefulinc.com.edd.blog.rss91’
INFO:root:Subscribing http://www.livejournal.com/users/keybuk/data/rss
INFO:root:Updating feed http://www.livejournal.com/users/keybuk/data/rss
DEBUG:root:Encoding: UTF-8
DEBUG:root:Modified: August 17, 2004 07:22 PM
DEBUG:root:URI: http://www.livejournal.com/users/keybuk/data/rss
WARNING:root:Cache write failed <cache/livejournal.com.users.keybuk.data.rss>
Traceback (most recent call last):
File “planet-nightly/planetlib.py”, line 254, in cache_write
c = open(cache_uri, “w”)
IOError: [Errno 2] No such file or directory: 'cache/livejournal.com.users.keybuk.data.rss’
INFO:root:Subscribing http://www.gnome.org/~jdub/blog/?flav=rss
INFO:root:Updating feed http://www.gnome.org/~jdub/blog/?flav=rss
DEBUG:root:Encoding: UTF-8
DEBUG:root:E-Tag: "1109155103.0"
DEBUG:root:Modified: February 23, 2005 10:38 AM
DEBUG:root:URI: http://www.gnome.org/~jdub/blog/?flav=rss
WARNING:root:Cache write failed <cache/gnome.org.jdub.blog.flav.rss>
Traceback (most recent call last):
File “planet-nightly/planetlib.py”, line 254, in cache_write
c = open(cache_uri, “w”)
IOError: [Errno 2] No such file or directory: 'cache/gnome.org.jdub.blog.flav.rss’
INFO:root:Subscribing http://www.actsofvolition.com/rss
INFO:root:Updating feed http://www.actsofvolition.com/rss
DEBUG:root:Encoding: UTF-8
DEBUG:root:E-Tag: 'a87d3cb42e3ff0bb9cbb82a2d7767428’
DEBUG:root:Modified: February 26, 2005 06:34 AM
DEBUG:root:URI: http://www.actsofvolition.com/rss
WARNING:root:Cache write failed <cache/actsofvolition.com.rss>
Traceback (most recent call last):
File “planet-nightly/planetlib.py”, line 254, in cache_write
c = open(cache_uri, “w”)
IOError: [Errno 2] No such file or directory: 'cache/actsofvolition.com.rss’
INFO:root:Subscribing http://blog.clearairturbulence.org/?flav=rss
INFO:root:Updating feed http://blog.clearairturbulence.org/?flav=rss
DEBUG:root:Encoding: UTF-8
DEBUG:root:E-Tag: "1108074182.0"
DEBUG:root:Modified: February 10, 2005 10:23 PM
DEBUG:root:URI: http://blog.clearairturbulence.org/?flav=rss
WARNING:root:Obviously bogus year in feed (2003), cowardly not updating
INFO:root:Subscribing http://codeblogs.ximian.com/blogs/evolution/index.rdf
INFO:root:Updating feed http://codeblogs.ximian.com/blogs/evolution/index.rdf
DEBUG:root:Encoding: ISO-8859-1
DEBUG:root:E-Tag: "1bc0d7-9ba1-7d0f9380"
DEBUG:root:Modified: February 21, 2005 05:10 AM
DEBUG:root:URI: http://codeblogs.ximian.com/blogs/evolution/index.rdf
WARNING:root:Cache write failed <cache/codeblogs.ximian.com.blogs.evolution.index.rdf>
Traceback (most recent call last):
File “planet-nightly/planetlib.py”, line 254, in cache_write
c = open(cache_uri, “w”)
IOError: [Errno 2] No such file or directory: 'cache/codeblogs.ximian.com.blogs.evolution.index.rdf’
INFO:root:Processing index.html.tmpl
Traceback (most recent call last):
File “planet-nightly/planet.py”, line 240, in ?
template = TemplateManager().prepare(template_file)
File “planet-nightly/htmltmpl.py”, line 222, in prepare
compiled = self.compile(file)
File “planet-nightly/htmltmpl.py”, line 296, in compile
self._debug).compile(file)
File “planet-nightly/htmltmpl.py”, line 987, in compile
tokens = self.parse(self.read(file))
File “planet-nightly/htmltmpl.py”, line 1037, in read
raise TemplateError, "IO error while reading template ‘%s’: "
htmltmpl.TemplateError: Htmltmpl error: IO error while reading template ‘examples/index.html.tmpl’: (2) No such file or directory
[vex]$

I’ve created a ‘cache’ directory with write permissions for everyone (777), but it does the same thing. Anyone have an idea why this is going on?


#2

It all seems to be failing because it can’t write the files in the first place and then it’s trying to access them. Have you given write permissions for the folders leading up to the cache dir as well?? I’m not sure if you have to put write access on all the folders above cache…


#3

It appears that when I move into the planet directory (with planet.py), it will write out the templates, but the cache problem remains. Tried to put write permissions for everyone in the dir’s above the cache directory and on ‘cache’ itself. Appears it still stubbornly refuses to write.

Would it have anything to do with “suexec” (referred to from here: https://panel.dreamhost.com/kbase/index.cgi?area=144&keyword=cgi), where, it seems, you have to set a folder’s permissions to 755, write permissions only by the owner, for the program to work? While it’s a python app, I’m working from SSH instead of through a browser and am not sure if “suexec” applies there.

Thanks for the help.

-Jon