How can I use repoze.who version 2.0b with TG2

13 views
Skip to first unread message

oak

unread,
Jul 27, 2011, 6:54:37 AM7/27/11
to TurboGears
Hi All,

I would like to use the api function of repoze.who.api which is only
available in repoze.who version 2.0+.
But TG2 support only repoze.who version >=1.0 and <=1.99.

I tried to install repoze.who version 2.0b1 by running "python
setup.py install" from the source code.
But I failed to start paster serve developement.ini command with this
error

resolve pkg_resources.VersionConflict: (repoze.who 2.0b1 (/home/oak/
tg2env/lib/python2.5/site-packages/repoze.who-2.0b1-py2.5.egg),
Requirement.parse('repoze.who>=1.0,<=1.99')).

I know that it is not good to use the package that is not supported by
TG. But I really need this api function.

Thank you in advance.

NiL

unread,
Jul 28, 2011, 7:47:00 AM7/28/11
to turbo...@googlegroups.com
Hi,

I run TG2 with repoze.who = 2.0a4, haven't tried the b1 yet

change your setup.py to lift the constraint on repoze.who version (and redo setup.py develop, or change in .egg-info)

I have configured who with a who.ini file

the main difference running repoze.who 2.0 is that an identifier can't be an authenticator anymore, so you need to slightly change the configuration

http://turbogears.org/2.1/docs/main/Auth/whoini.html

http://docs.repoze.org/who/2.0/changes.html#id2

HTH
Reply all
Reply to author
Forward
0 new messages