[Zope-dev] ComponentLookupError

2009-05-19 Thread Tim Cook
I'm getting this traceback:
==
serving on http://127.0.0.1:8080
2009-05-17 11:56:42,332 ERROR [SiteError] http://localhost:8080
Traceback (most recent call last):
  File
/home/tim/.buildout/eggs/zope.publisher-3.7.0-py2.5.egg/zope/publisher/publish.py,
 line 127, in publish
publication.beforeTraversal(request)
  File
/home/tim/.buildout/eggs/zope.app.publication-3.5.3-py2.5.egg/zope/app/publication/zopepublication.py,
 line 85, in beforeTraversal
principal = auth.authenticate(request)
  File
/home/tim/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py,
 line 58, in authenticate
if p.validate(password):
  File
/home/tim/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py,
 line 190, in validate
pwManager = self.__getPasswordManager()
  File
/home/tim/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py,
 line 184, in __getPasswordManager
return getUtility(IPasswordManager, self.__pwManagerName)
  File
/home/tim/.buildout/eggs/zope.component-3.6.0-py2.5.egg/zope/component/_api.py,
 line 171, in getUtility
raise ComponentLookupError(interface, name)
ComponentLookupError: (InterfaceClass
zope.password.interfaces.IPasswordManager, u'SHA1')


Though everything seems to me to be okay.  This was originally a
grokproject based application and uses grok 1.0a3 but I have been
incrementally/painfully changing the versions of components to get it to
run with ZODB3.9.0b1  

The server starts but when I try to access http://localhost:8080 I get
the above error.

The principal in site.zcml looks like this:

  principal id=zope.manager
 title=Manager
 login=admin

password=17e15cddd033e22ae348aeb5660fc2140aec35850c4da997
 description=OSHIP Developer
 password_manager=SHA1
 /


Any ideas where to start on this?

Thanks,
Tim








-- 
Timothy Cook, MSc
Health Informatics Research  Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == timothy.cook 
**
*You may get my Public GPG key from  popular keyservers or   *
*from this link http://timothywayne.cook.googlepages.com/home*
**


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ComponentLookupError

2009-05-19 Thread Michael Howitz
Am 19.05.2009 um 16:53 schrieb Tim Cook:
[...]
 /home/tim/.buildout/eggs/zope.component-3.6.0-py2.5.egg/zope/ 
 component/_api.py, line 171, in getUtility
raise ComponentLookupError(interface, name)
 ComponentLookupError: (InterfaceClass
 zope.password.interfaces.IPasswordManager, u'SHA1')


Did you include zope.password's configure.zcml? This is where the  
password manager utilities are defined.

Yours sincerely,
-- 
Michael Howitz · m...@gocept.com · software developer
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
Zope and Plone consulting and development

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )