Hi, I've been looking around the foomatic-gui code and have a small idea on where the problem is, it has nothing to do with foomatic-db (seems).
On foomatic.py (shipped by python-foomatic) line 249 there's a
try/except block which catches *any* exception when parsing foomatic's
database.
If you take out the try/except printconf will end with a nice exception
Traceback (most recent call last):
File "printconf", line 95, in <module>
printdb = foomatic.foomatic.get_printer_db()
File "/home/marc/debian/foomatic-gui-0.7.7/foomatic/foomatic.py",
line 250, in get_printer_db
parse_foomatic('foomatic-configure -q -O 2>/dev/null', handler)
File "/home/marc/debian/foomatic-gui-0.7.7/foomatic/foomatic.py",
line 237, in parse_foomatic
xml.sax.parseString(data, handler)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/__init__.py",
line 47, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py",
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/xmlreader.py",
line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py",
line 315, in end_element
self._cont_handler.endElement(name)
File "/home/marc/debian/foomatic-gui-0.7.7/foomatic/foomatic.py",
line 149, in endElement
self.autodetect[name] = self._block
AttributeError: FoomaticOverviewHandler instance has no attribute
'autodetect'
That one is the real problem, now somebody who understands the
foomatic.py code can try to fix that (and make the try/except a bit more
explicit).
--
http://www.marcfargas.com -- will be finished some day.
signature.asc
Description: Esta parte del mensaje está firmada digitalmente

