KeyError: ... updated type, in planet

Marc Girod marc.girod at gmail.com
Wed Aug 8 07:47:29 EDT 2007


Hello,

I am using Planet 2.0 to generate RSS feeds from wiki pages.
On some of my wikis, I get an error such as:

ionawikis> sudo python2.5 /root/planet/planet.py -v ./tstconfig.ini
DEBUG:planet.runner:Socket timeout set to 20 seconds
INFO:planet.runner:Loading cached data
Traceback (most recent call last):
  File "/root/planet/planet.py", line 211, in <module>
    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.5/bsddb/__init__.py", line 223, in
__getitem__
    return _DeadlockWrap(lambda: self.db[key])  # self.db[key]
  File "/usr/lib/python2.5/bsddb/dbutils.py", line 62, in DeadlockWrap
    return function(*_args, **_kwargs)
  File "/usr/lib/python2.5/bsddb/__init__.py", line 223, in <lambda>
    return _DeadlockWrap(lambda: self.db[key])  # self.db[key]
KeyError: 'http://wiki.iona.com/icde-wiki/MarcLog/
June2007#20070611094814 updated type'


I am not proficient in Python.
I understand that a certain key is missing in some dictionary,
but this is not sufficient for me to fix the problem.

Could somebody put me on the trail?

Thanks!
Marc




More information about the Python-list mailing list