Error in the Planet Gnome scripts



Hey, guys,

So, this is the error I got from "update-planet people -v" when it got
to Seif's feed (I ran that on www.gnome.org):

INFO:planet.runner:Updating feed http://seilo.geekyogre.com/feed/atom
ERROR:planet.runner:Error processing http://seilo.geekyogre.com/feed/atom
ERROR:planet.runner:NameError: global name 'any' is not defined
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/spider.py", line 472, in spiderPlanet
    writeCache(uri, feed_info, data)
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/spider.py", line 166, in writeCache
    scrub.scrub(feed_uri, data)
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/scrub.py", line 136, in scrub
    doc = p.parseFragment(node.value, encoding='utf-8')
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/vendor/html5lib/html5parser.py", line 213, in parseFragment
    self._parse(stream, True, container=container, encoding=encoding)
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/vendor/html5lib/html5parser.py", line 94, in _parse
    self.mainLoop()
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/vendor/html5lib/html5parser.py", line 164, in mainLoop
    self.phase.processStartTag(token)
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/vendor/html5lib/html5parser.py", line 1712, in processStartTag
    self.flushCharacters()
ERROR:planet.runner:  File "/home/users/jdub/bin/venus/planet/vendor/html5lib/html5parser.py", line 1686, in flushCharacters
    if any([item not in spaceCharacters for item in data]):

As far as I can tell, this is just that www.gnome.org has Python 2.4.3,
and that doesn't have that any() function from the last line.

I saw the same error happen for other feeds as well (jasondclinton,
siegel, bani, msevior, etc.), so it's worthwhile to fix this.

I have no clue about Python libraries and such... is there an html5lib
that works with older Pythons, or can we update the Python version on
www.g.o?

  Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]