-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/10/2012 06:41 PM, Chimezie Ogbuji wrote: > Hello, I'm trying to follow instructions  on using repoze.who 2.0 > as WSGI middleware from a configuration. After installing repoze.who > 2.0 from a fresh copy from the git repository , I found I was > unable to even import make_middleware_with_config without getting a > Zope-related error. > > I was under the impression that repoze.who did not require Zope. The > error I'm getting is from when I try > > from repoze.who.config import make_middleware_with_config > > The traceback is: > > Traceback (most recent call last): ..snip.. File > "repoze/who/config.py", line 8, in <module> from repoze.who.api import > APIFactory File "repoze/who/api.py", line 16, in <module> class > APIFactory(object): File > "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/zope/interface/declarations.py", > > line 495, in __call__ > raise TypeError("Can't use implementer with classes. Use one of " > TypeError: Can't use implementer with classes. Use one of the > class-declaration functions instead. > > I tried searching google and mailing lists for any mention of this, > but couldn't find anything there or in the documentation for that > matter. Can anyone tell me what I'm doing wrong?
You need a newer version of zope.interface (3.6 or later). I recommend using a virtuaenv, so that whatever put the version you have doesn't break. E.g.:: $ /path/to/virtualenv --no-site-packages /path/to/your/project $ /path/to/your/project/bin/easy_install repoze.who Tres - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/V6WsACgkQ+gerLs4ltQ4X2QCgnk/41oIrol4rQgg4yVt0eJBW NyUAn1pK9PKRvrqGqnZcnJq/IYMBKubK =8FHj -----END PGP SIGNATURE----- _______________________________________________ Repoze-dev mailing list Repozeemail@example.com http://lists.repoze.org/listinfo/repoze-dev