[Zope3-dev] Bug in "Zope Configuration Error" tracebacks

Guido van Rossum guido@python.org
Tue, 28 May 2002 10:33:33 -0400


I'm trying to get the JobBoardEx demo running again.  There's a
problem in the configuration file (of course :-), but the traceback
doesn't help me tracking it down: the line numbers in the zcml files
(the only clues I have) are wrong.  Here's the full traceback, with
some annotations:

========================================================================
Zope Configuration Error
========================================================================
Traceback (innermost last):
  Module Zope.Configuration, line 28, in config
  Module Zope.Configuration.xmlconfig, line 220, in __init__
  Module Zope.Configuration.xmlconfig, line 186, in xmlconfig
  Module xml.sax.expatreader, line 90, in parse
  Module xml.sax.xmlreader, line 123, in parse
  Module xml.sax.expatreader, line 143, in feed
  Module xml.sax.expatreader, line 240, in start_element_ns
  Module Zope.Configuration.xmlconfig, line 91, in startElementNS
   - /home/guido/projects/Zope3/site.zcml
   - Line 42, Column 0
   - Message: __init__() got an unexpected keyword argument 'methods'

# site.zcml has only 32 lines!

  Module Zope.Configuration.meta, line 59, in begin
  Module Zope.Configuration.meta, line 43, in _exe
  Module Zope.Configuration.xmlconfig, line 248, in include
  Module Zope.Configuration.xmlconfig, line 186, in xmlconfig
  Module xml.sax.expatreader, line 90, in parse
  Module xml.sax.xmlreader, line 123, in parse
  Module xml.sax.expatreader, line 143, in feed
  Module xml.sax.expatreader, line 240, in start_element_ns
  Module Zope.Configuration.xmlconfig, line 91, in startElementNS
   - /home/guido/projects/Zope3/products.zcml
   - Line 19, Column 0
   - Message: __init__() got an unexpected keyword argument 'methods'

# products.zcml has only 19 lines!

  Module Zope.Configuration.meta, line 59, in begin
  Module Zope.Configuration.meta, line 43, in _exe
  Module Zope.Configuration.xmlconfig, line 248, in include
  Module Zope.Configuration.xmlconfig, line 186, in xmlconfig
  Module xml.sax.expatreader, line 90, in parse
  Module xml.sax.xmlreader, line 123, in parse
  Module xml.sax.expatreader, line 143, in feed
  Module xml.sax.expatreader, line 240, in start_element_ns
  Module Zope.Configuration.xmlconfig, line 91, in startElementNS
   - /home/guido/projects/Zope3/lib/python/ZopeProducts/JobBoardEx/JobList.zcml
   - Line 220, Column 0
   - Message: __init__() got an unexpected keyword argument 'methods'

JobList.zcml has only 135 lines!

  Module Zope.Configuration.meta, line 59, in begin
  Module Zope.Configuration.meta, line 43, in _exe
TypeError: __init__() got an unexpected keyword argument 'methods'

Help!!!

--Guido van Rossum (home page: http://www.python.org/~guido/)