Attention

This document was written for an unsupported version of Plone, Plone 2.1.x, and was last updated 1632 days ago.

For more information, see the version support policy.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

AttributeError: manage_addTool

by Mikko Ohtamaa last modified Dec 30, 2008 03:08 PM
AttributeError: manage_addTool exception is thrown when trying to quick install a new product

The previous installation of a tool in the product package has failed and left Plone to inconsistent state. Manually remove all tool entries added by this product from Plone root in Zope Management Interface (do not remove any other tools). Then try reinstall the product. Also, one might need to update portal_catalog (portal_catalog -> Advanced -> Update Catalog) after removing tool entries.

Sample stacktrace:

2006-01-19 12:53:34
failed:
Traceback (most recent call last):

 File "/opt/Zope/Products/CMFQuickInstallerTool/QuickInstallerTool.py",
line 311, in installProduct
   res=install(portal)

 File
"/opt/Zope-2.8/lib/python/Products/ExternalMethod/ExternalMethod.py",
line 225, in __call__
   try: return f(*args, **kw)

 File "/opt/Zope/Products/[PROJECTNAME]/Extensions/Install.py", line 410,
in install
   setupTools(self, out)

 File "/opt/Zope/Products/[PROJECTNAME]/Extensions/Install.py", line 88, in
setupTools

portal.manage_addProduct[PROJECTNAME].manage_addTool(UsabilityTool.meta_type)

AttributeError: manage_addTool