AttributeError: manage_addTool
This Error Reference applies to:
Plone 2.1.x, Plone 2.0.x
This Error Reference is intended for:
Any audience.
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
Temporary?
I remember that I would have been hit by the very same problem with the Plone 2.5. But I cannot repeat it anymore. Google reveals that other have been suffering from this too. Maybe you can post the solution here after finding out it?
i have this error the very same problem
faulty import
here is what id did:
* startup the server in foreground mode
* i found a faulty import in the tools code (i imported
another product that was installed on the test machines, but not on the production server)
* i removed the unneeded import (copy-paste error)
* manage_addTool was available
so setting debug=True in zope.conf or starting up in fg might help you to spot out any incorrect import statements.
Faulty import within the product
I was only able to trace this in debug mode `{client}/bin/zopectl fg debug`
note to self: "always develop in debug mode"
this's not the resolvent
i installed two plone 2.5 instances in my window2003 os.all are new,no other tools be installed yet.
but one could install MySite,and another couldn't.
the error info is just as above:AttributeError:manage_addTool.it occured in the method named
setupTools,stoped at this sentence:addTool = self.manage_addProduct['MySite'].manage_addTool
I traced into these two installations,i found that:
One:could install MySite
in Debug Probe,i did this:
>>>p = self.manage_addProduct['MySite']
>>>dir(p)
[
Destination,DestinationURL,DestinationURL__roles__,Destination__roles__,__class__,__delattr__,__dict__,__doc__,__getattr__,__getattribute__,__getnewargs__,__getstate__,__hash__,__init__,__module__,__new__,__of__,__reduce__,__reduce_ex__,__repr__,__setattr__,__setstate__,__str__,__weakref__,_d,_getOb,_owner,_product,_setObject,addDeadline,addDeadline__roles__,addOutsourcing,addOutsourcing__roles__,contentinit,contentinit__roles__,factory_type_information,factory_type_information__roles__,manage_addContent,manage_addContentForm,manage_addContentForm__roles__,manage_addContent__roles__,manage_addTool,manage_addToolForm,manage_addToolForm__roles__,manage_addTool__roles__,manage_main,this,this__roles__,toolinit, 'toolinit__roles__']You can find that there is a method named
manage_addToolin it.but for the failed installation.the result of dir(p) is this:[
Destination,DestinationURL,DestinationURL__roles__,Destination__roles__,__class__,__delattr__,__dict__,__doc__,__getattr__,__getattribute__,__getnewargs__,__getstate__,__hash__,__init__,__module__,__new__,__of__,__reduce__,__reduce_ex__,__repr__,__setattr__,__setstate__,__str__,__weakref__,_d, '_getOb']i don't konw why the
manage_addToolmethod was disapeared.Note that:all these two installation were new,no other tools,it was a clear plone installation.
Any ideas?