I've been trying to follow the tutorial at
http://wiki.pylonshq.com/display/pylonscookbook/Authentication+and+Authorization+with+%60repoze.who%60
and after adding the specified lines to PRJ/config/middleware.py I get
the following error when trying to run the server: ImportError: No
module named repoze.who.config (full stack trace below). I get no
complaints when I import that package in the interpreter, though, and
even when I import middleware.py. I also tried following a different
tutorial here:
http://truefalsemaybe.com/2008/06/authorization-in-pylons-with-repozewho-part-1-htaccess/
- but with the same results, albeit with a different repoze module for
the complaint. I am, needless to say, very confused. Can anyone tell
me what I'm doing wrong?
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/bin/paster",
line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/
command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/
command.py", line 123, in invoke
exit_code = runner.run(args)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/
command.py", line 218, in run
result = self.command()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/
serve.py", line 276, in command
relative_to=base, global_conf=vars)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/
serve.py", line 313, in loadapp
**kw)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 204, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 224, in loadobj
global_conf=global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 278, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 409, in get_context
section)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 431, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 361, in get_context
global_conf=global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 285, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 561, in get_context
object_type, name=name)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/
loadwsgi.py", line 587, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py",
line 1913, in load
File "~/Projects/Python/Pylons/Aerie/aerie/config/middleware.py",
line 12, in <module>
from repoze.who.config import make_middleware_with_config as
make_who_with_config
ImportError: No module named repoze.who.config
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.