Personal tools
You are here: Home Documentation Error References AttributeError: manage_addTool
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

AttributeError: manage_addTool

Warning: This item is marked as outdated.

This Error Reference applies to: Plone 2.1.x, Plone 2.0.x
This Error Reference is intended for: Any audience.

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
by Mikko Ohtamaa last modified January 19, 2006 - 15:56
Contributors: Mikko Ohtamaa
All content is copyright Plone Foundation and the individual contributors.

this's not the resolvent

Posted by kmsdoc at August 15, 2006 - 16:52

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_addTool in 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_addTool method was disapeared.

Note that:all these two installation were new,no other tools,it was a clear plone installation.

Any ideas?

Temporary?

Posted by Mikko Ohtamaa at August 15, 2006 - 22:05

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

Posted by deep at September 25, 2006 - 08:36
the very same problem with the Plone 2.5 and zope2.9 , and i try another diffierent os and diffierent version ,but , i have the same errer ,Google or yahoo ,but no one would solution ?why ?who can help to do this /?

faulty import

Posted by Harald Friessnegger at December 12, 2006 - 14:58
i had the very same error today. even more strange: it worked on some machines using the same database and zope-version and on one machine (the production server) it didn't.

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

Posted by David Bain at March 19, 2007 - 12:59
Just to confirm that the same manage_addTool error happened to me when I had a faulty import.

I was only able to trace this in debug mode `{client}/bin/zopectl fg debug`

note to self: "always develop in debug mode"

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by