KeyError's for various wiki feeds
Marc Girod
mgirod at iona.com
Thu Jul 5 23:18:38 EST 2007
Hello,
I am using Planet to generate RSS feeds from recent events in several
wikis.
Recently, I have started to get errors in several (3) of them.
Here is one case (the tstconfig.ini selects only one failing wiki):
$ sudo python -d /root/planet/planet.py ./tstconfig.ini
Traceback (most recent call last):
File "/root/planet/planet.py", line 211, in ?
main()
File "/root/planet/planet.py", line 195, in main
my_planet.run(planet_name, planet_link, template_files, offline)
File "/root/planet/planet/__init__.py", line 300, in run
channel = Channel(self, feed_url)
File "/root/planet/planet/__init__.py", line 588, in __init__
self.cache_read_entries()
File "/root/planet/planet/__init__.py", line 638, in cache_read_entries
item = NewsItem(self, key)
File "/root/planet/planet/__init__.py", line 933, in __init__
self.cache_read()
File "/root/planet/planet/cache.py", line 74, in cache_read
self._type[key] = self._cache[cache_key + " type"]
File "/usr/lib/python2.4/bsddb/__init__.py", line 219, in __getitem__
return self.db[key]
KeyError: 'http://wiki.iona.com/icde-wiki/MarcLog/June2007#20070611094814 updated type'
As far as I understand, I am still using v1.0:
$ sudo cksum /root/planet/planet.py
3175768676 7397 /root/planet/planet.py
However, I found that v2.0 was installed last summer, and it seems to
give the same error (modulo line numbers):
sudo python -d /root/planet-2.0/planet.py ./tstconfig.ini
Traceback (most recent call last):
File "/root/planet-2.0/planet.py", line 167, in ?
main()
File "/root/planet-2.0/planet.py", line 160, in main
my_planet.run(planet_name, planet_link, template_files, offline)
File "/root/planet-2.0/planet/__init__.py", line 240, in run
channel = Channel(self, feed_url)
File "/root/planet-2.0/planet/__init__.py", line 527, in __init__
self.cache_read_entries()
File "/root/planet-2.0/planet/__init__.py", line 569, in cache_read_entries
item = NewsItem(self, key)
File "/root/planet-2.0/planet/__init__.py", line 845, in __init__
self.cache_read()
File "/root/planet-2.0/planet/cache.py", line 74, in cache_read
self._type[key] = self._cache[cache_key + " type"]
File "/usr/lib/python2.4/bsddb/__init__.py", line 219, in __getitem__
return self.db[key]
KeyError: 'http://wiki.iona.com/icde-wiki/MarcLog/June2007#20070611094814 updated type'
The other errors I got were:
KeyError: 'http://wiki.iona.com/cs-wiki/Mainframe_Iteration_beginning_-_05/08/07_-_05/18/07#20070518164929 wiki_diff'
and
KeyError: 'http://wiki.iona.com/orbix-wiki/DublinDeskMove#20070413132003 wiki_version'
I am using Python 2.4.3 (but don't know it myself--I recently took
over the maintenance of this site).
Is this a known problem (I found similar reports in the web about one
year ago, but I believe the problem then should have been fixed in
2.0).
How can I debug this further?
Thanks!
Marc
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
More information about the devel
mailing list