Hi all,
Thought that this had been fixed already, but peapor-0.7.1 fails to run with the error
---
simon@juicebox:~/peapod-0.7.1$ ./peapod.py -d -v
Traceback (most recent call last):
File "./peapod.py", line 2, in <module>
from Peapod.peapod import *
File "/home/simon/peapod-0.7.1/Peapod/peapod.py", line 49, in <module>
from Peapod import OPML
File "/home/simon/peapod-0.7.1/Peapod/OPML.py", line 92, in <module>
class OPMLHandler(saxutils.DefaultHandler):
AttributeError: 'module' object has no attribute 'DefaultHandler'
---
This appears to be a common problem, the patch mentioned in this email shows how to fix the problem
http://article.gmane.org/gmane.linux.debian.devel.bugs.general/424235
---
diff -ru peapod-0.7.1/Peapod/OPML.py peapod-0.7.1-fixed/Peapod/OPML.py
--- peapod-0.7.1/Peapod/OPML.py 2008-03-25 13:14:54.000000000 -0600
+++ peapod-0.7.1-fixed/Peapod/OPML.py 2008-04-23 12:35:36.000000000 -0600
@@ -3,7 +3,7 @@
# $Id: OPML.py,v 1.5 2002/10/17 21:14:49 juri Exp $
from xml.sax import saxutils, make_parser, SAXParseException
-from xml.sax.handler import feature_namespaces, feature_namespace_prefixes
+from xml.sax.handler import feature_namespaces, feature_namespace_prefixes, ContentHandler
from xml.sax.saxutils import XMLGenerator
from xml.sax.xmlreader import AttributesImpl
from StringIO import StringIO
@@ -89,7 +89,7 @@
def roots(self):
return self._roots
-class OPMLHandler(saxutils.DefaultHandler):
+class OPMLHandler(ContentHandler):
def __init__(self):
self._outlines = OutlineList()
self._opml = None
---
Cheers,
Mungewell.
Logged In: YES
user_id=39509
Originator: YES
should probably learn to type someday.... should be Ubuntu 8.04!!