[zope2-tracker] [Bug 506354] [NEW] Zope2 2.12.2 conflicts with zope.formlib 4.0

Jürgen Herrmann jh at xlhost.de
Tue Jan 12 06:04:54 EST 2010


Public bug reported:

on freshly easy_installed zope2.12.2 i get the following traceback on
startup:

Traceback (most recent call last):
  File "/home/bliss/zope/virtualenv/bin/runzope", line 8, in <module>
    load_entry_point('Zope2==2.12.2', 'console_scripts', 'runzope')()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Zope2/Startup/run.py", line 21, in run
    starter.prepare()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Zope2/Startup/__init__.py", line 87, in prepare
    self.startZope()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Zope2/Startup/__init__.py", line 264, in startZope
    Zope2.startup()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Zope2/App/startup.py", line 117, in startup
    OFS.Application.initialize(application)
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/OFS/Application.py", line 251, in initialize
    initializer.initialize()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/OFS/Application.py", line 279, in initialize
    self.install_products()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/OFS/Application.py", line 492, in install_products
    return install_products(app)
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/OFS/Application.py", line 523, in install_products
    folder_permissions, raise_exc=debug_mode)
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/OFS/Application.py", line 671, in install_product
    initmethod(context)
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Products/Five/__init__.py", line 31, in initialize
    zcml.load_site()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Products/Five/zcml.py", line 51, in load_site
    _context = xmlconfig.file(file)
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py", line 653, in file
    context.execute_actions()
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 600, in execute_actions
    for action in resolveConflicts(self.actions):
  File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py", line 1507, in resolveConflicts
    raise ConfigurationConflictError(conflicts)
zope.configuration.config.ConfigurationConflictError: Conflicting configuration actions
  For: ('adapter', (<InterfaceClass zope.formlib.interfaces.IAction>,), <InterfaceClass zope.browserpage.namedtemplate.INamedTemplate>, u'render')
    File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/zope.formlib-4.0-py2.6.egg/zope/formlib/configure.zcml", line 19.2-19.64
        <adapter factory=".form.render_submit_button" name="render" />
    File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Products/Five/formlib/configure.zcml", line 6.2-9.8
        <adapter
            factory=".form.render_submit_button"
            name="render"
            />
  For: ('adapter', (<class 'zope.interface.exceptions.Invalid'>, <InterfaceClass zope.publisher.interfaces.browser.IBrowserRequest>), <InterfaceClass zope.formlib.interfaces.IWidgetInputErrorView>, '')
    File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/zope.formlib-4.0-py2.6.egg/zope/formlib/configure.zcml", line 22.2-25.8
        <adapter
            factory=".errors.InvalidErrorView"
            permission="zope.Public"
            />
    File "/home/bliss/zope/virtualenv/lib/python2.6/site-packages/Zope2-2.12.2-py2.6-linux-i686.egg/Products/Five/formlib/configure.zcml", line 12.2-17.8
        <adapter
            for="zope.interface.Invalid
                 zope.publisher.interfaces.browser.IBrowserRequest"
            factory=".errors.InvalidErrorView"
            permission="zope.Public"
            />


removing the two registrations in Products/Five/formlib/configure.zcml solves the problem.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
Zope2 2.12.2 conflicts with zope.formlib 4.0
https://bugs.launchpad.net/bugs/506354
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list