Some problems with the excerpt filter and errors executing planet.py

Sam Ruby rubys at intertwingly.net
Sat Aug 25 06:25:36 EST 2007


Guillermo Latorre wrote:
> Hi to everyone, 
> I have worked in a planet using Venus and now I have a problem with the
> excerpt filter, so I hope you'll give me a hand...
> 
> I have the planet working in local on my computer. I want to show only
> excerpt of the post, and I get it fine with all feeds except with some
> entries. They show only the title, with no excerpt, and I don't know
> why...
> 
> Here is the address of the planet:
> http://www.planetubuntu.es/planetubuntu.es/
> 
> And the feeds which it does not show well are:
>     - Ubuntips (http://feeds.feedburner.com/Ubuntips)
>     - Hachemuda (http://feeds.feedburner.com/hachemuda/DhdS)

I'll take a look at those in a bit, but meanwhile, I've commented below 
on your server problems.

> And now I have uploaded all the venus directory to my web server. I
> login to the server with ssh and execute the same command, but get some
> errors that I don't know what do they mean. Even the last error shows a
> path of my local computer, and I have changed all the paths to upload
> the code to the server... :(
> 
> I attach a text file with the errors. 
> 
> I hope you could help me.
> 
> Thank you very much, 
> 
> Guille
> 
> ------------------------------------------------------------------------
> 
> ERROR:planet.runner:Skipping filter '/home/.gnocchi/guille7/planetubuntu.es/filters/excerpt.py' after failing to load 'py': No module named subprocess

The subprocess module was created in Python 2.4:

http://docs.python.org/lib/module-subprocess.html

Or to put it another way, you are using a feature of Venus that requires 
Python 2.4 to execute.

> sh: line 1: xsltproc: command not found

If you are using a template which ends in .xslt, you will either need to 
install xsltproc or python-libxslt1.

>     raise TemplateError, "IO error while reading template '%s': "\
> htmltmpl.TemplateError: Htmltmpl error: IO error while reading template '/home/guille/Desktop/venus/themes/classic_fancy/index.html.tmpl': (2) No such file or directory

Delete the .htmlc file that was generated, and rerun.

- Sam Ruby


More information about the devel mailing list