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

Guillermo Latorre guillermo at hachemuda.com
Sat Aug 25 04:07:46 EST 2007


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)

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
-------------- next part --------------
[chiclet]$ ls
AUTHORS  TODO      expunge.py       footer.html         mememe.pluginc  planetubuntu.es  tests
LICENCE  cache     feedlist2.opml   header.html         output          runtests.py      themes
README   docs      feedlist2.opml~  html2xhtml.pluginc  planet          spider.py        xhtml2html.pluginc
THANKS   examples  filters          index.atom          planet.py       splice.py
[chiclet]$ python planet.py planetubuntu.es/planetubuntu.ini
INFO:planet.runner:Socket timeout set to 20 seconds
INFO:planet.runner:Building work queue
INFO:planet.runner:Feed http://magarto.com/blog/feed/ unchanged
INFO:planet.runner:Updating feed http://alaingonza.com/feed/
ERROR:planet.runner:Skipping filter '/home/.gnocchi/guille7/planetubuntu.es/filters/excerpt.py' after failing to load 'py': No module named subprocess
ERROR:planet.runner:Error processing http://alaingonza.com/feed/
ERROR:planet.runner:AttributeError: 'module' object has no attribute 'run'
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 433, in spiderPlanet
    writeCache(uri, feed_info, data)
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 208, in writeCache
    output = shell.run(filter, output, mode="filter")
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/__init__.py", line 62, in run
    return module.run(template_resolved, doc, None, options)
INFO:planet.runner:Feed http://feeds.feedburner.com/hachemuda/DhdS unchanged
INFO:planet.runner:Feed http://feeds.feedburner.com/Ubuntips unchanged
INFO:planet.runner:Updating feed http://ubuntulife.net/wordpress/?feed=rss2
ERROR:planet.runner:Error processing http://ubuntulife.net/wordpress/?feed=rss2
ERROR:planet.runner:AttributeError: 'module' object has no attribute 'run'
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 433, in spiderPlanet
    writeCache(uri, feed_info, data)
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 208, in writeCache
    output = shell.run(filter, output, mode="filter")
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/__init__.py", line 62, in run
    return module.run(template_resolved, doc, None, options)
INFO:planet.runner:Feed http://www.cesarius.net/feed unchanged
INFO:planet.runner:Feed http://feeds.feedburner.com/DesdeUbuntuParaElMundo unchanged
INFO:planet.runner:Loading cached data
sh: line 1: xsltproc: command not found
sh: line 1: xsltproc: command not found
Traceback (most recent call last):
  File "planet.py", line 68, in ?
    splice.apply(doc.toxml('utf-8'))
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/splice.py", line 118, in apply
    output_file = shell.run(template_file, doc)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/__init__.py", line 66, in run
    module.run(template_resolved, doc, output_file, options)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/tmpl.py", line 246, in run
    template = manager.prepare(script)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 187, in prepare
    compiled = self.update(precompiled)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 216, in update
    updated = self.compile(template.file())
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 237, in compile
    self._debug).compile(file)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 928, in compile
    tokens = self.parse(self.read(file))
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 978, in read
    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
[chiclet]$ python planet.py planetubuntu.es/planetubuntu.ini
INFO:planet.runner:Socket timeout set to 20 seconds
INFO:planet.runner:Building work queue
INFO:planet.runner:Feed http://magarto.com/blog/feed/ unchanged
INFO:planet.runner:Updating feed http://alaingonza.com/feed/
ERROR:planet.runner:Skipping filter '/home/.gnocchi/guille7/planetubuntu.es/filters/excerpt.py' after failing to load 'py': No module named subprocess
ERROR:planet.runner:Error processing http://alaingonza.com/feed/
ERROR:planet.runner:AttributeError: 'module' object has no attribute 'run'
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 433, in spiderPlanet
    writeCache(uri, feed_info, data)
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 208, in writeCache
    output = shell.run(filter, output, mode="filter")
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/__init__.py", line 62, in run
    return module.run(template_resolved, doc, None, options)
INFO:planet.runner:Feed http://feeds.feedburner.com/hachemuda/DhdS unchanged
INFO:planet.runner:Feed http://feeds.feedburner.com/Ubuntips unchanged
INFO:planet.runner:Updating feed http://ubuntulife.net/wordpress/?feed=rss2
ERROR:planet.runner:Error processing http://ubuntulife.net/wordpress/?feed=rss2
ERROR:planet.runner:AttributeError: 'module' object has no attribute 'run'
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 433, in spiderPlanet
    writeCache(uri, feed_info, data)
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/spider.py", line 208, in writeCache
    output = shell.run(filter, output, mode="filter")
ERROR:planet.runner:  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/__init__.py", line 62, in run
    return module.run(template_resolved, doc, None, options)
INFO:planet.runner:Feed http://www.cesarius.net/feed unchanged
INFO:planet.runner:Feed http://feeds.feedburner.com/DesdeUbuntuParaElMundo unchanged
INFO:planet.runner:Loading cached data
sh: line 1: xsltproc: command not found
sh: line 1: xsltproc: command not found
Traceback (most recent call last):
  File "planet.py", line 68, in ?
    splice.apply(doc.toxml('utf-8'))
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/splice.py", line 118, in apply
    output_file = shell.run(template_file, doc)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/__init__.py", line 66, in run
    module.run(template_resolved, doc, output_file, options)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/shell/tmpl.py", line 246, in run
    template = manager.prepare(script)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 187, in prepare
    compiled = self.update(precompiled)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 216, in update
    updated = self.compile(template.file())
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 237, in compile
    self._debug).compile(file)
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 928, in compile
    tokens = self.parse(self.read(file))
  File "/home/.gnocchi/guille7/planetubuntu.es/planet/vendor/htmltmpl.py", line 978, in read
    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
[chiclet]$ 


More information about the devel mailing list