silly question but, do you have an __init__.py in your lib/auth directory?


On Thu, Sep 10, 2009 at 2:40 PM,
<[email protected]<travis%[email protected]>
> wrote:

> Hello all,
>
> I'm trying to follow the instructions here:
>
>
> http://wiki.pylonshq.com/display/pylonscookbook/Authentication+and+Authorization+with+%60repoze.who%60
>
> However, when I try to paster serve --reload development.ini, I get
> the following errors:
>
> /net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/configuration.py:26:
> RuntimeWarning: Unable to load template engine entry point: 'toscawidgets =
> tw.core.engine_plugin:ToscaWidgetsTemplatePlugin': Traceback (most recent
> call last):
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py",
> line 610, in <module>
>    Engine = entry_point.load()
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py",
> line 1912, in load
>    if require: self.require(env, installer)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py",
> line 1925, in require
>    working_set.resolve(self.dist.requires(self.extras),env,installer))
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py",
> line 524, in resolve
>    raise DistributionNotFound(req)  # XXX put more info here
> DistributionNotFound: DecoratorTools
>
>  import pylons.templating
> Traceback (most recent call last):
>  File "/net/nfs/home/vax/save/pylons/env/bin/paster", line 8, in <module>
>    load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py",
> line 84, in run
>    invoke(command, command_name, options, args[1:])
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py",
> line 123, in invoke
>    exit_code = runner.run(args)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py",
> line 218, in run
>    result = self.command()
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/serve.py",
> line 276, in command
>    relative_to=base, global_conf=vars)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/serve.py",
> line 313, in loadapp
>    **kw)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py",
> line 204, in loadapp
>    return loadobj(APP, uri, name=name, **kw)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py",
> line 225, in loadobj
>    return context.create()
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py",
> line 625, in create
>    return self.object_type.invoke(self)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg/paste/deploy/loadwsgi.py",
> line 110, in invoke
>    return fix_call(context.object, context.global_conf,
> **context.local_conf)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg/paste/deploy/util/fixtypeerror.py",
> line 57, in fix_call
>    val = callable(*args, **kw)
>  File "/home/vax/save/pylons/NetMon/netmon/config/middleware.py", line 50,
> in make_app
>    app = make_who_with_config(app, global_conf,
> app_conf['who.config_file'], app_conf['who.log_file'],
> app_conf['who.log_level'])
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/repoze.who-1.0.10-py2.5.egg/repoze/who/config.py",
> line 140, in make_middleware_with_config
>    parser.parse(open(config_file))
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/repoze.who-1.0.10-py2.5.egg/repoze/who/config.py",
> line 113, in parse
>    IAuthenticator,
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/repoze.who-1.0.10-py2.5.egg/repoze/who/config.py",
> line 60, in _parsePluginSequence
>    plugin = self._getPlugin(plugin_name, iface)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/repoze.who-1.0.10-py2.5.egg/repoze/who/config.py",
> line 47, in _getPlugin
>    obj = self._makePlugin(name, iface)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/repoze.who-1.0.10-py2.5.egg/repoze/who/config.py",
> line 38, in _makePlugin
>    obj = _resolve(name)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/repoze.who-1.0.10-py2.5.egg/repoze/who/config.py",
> line 20, in _resolve
>    return EntryPoint.parse('x=%s' % name).load(False)
>  File
> "/net/nfs/home/vax/save/pylons/env/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py",
> line 1913, in load
> ImportError: No module named auth.repoze_auth
> Starting subprocess with file monitor
>
> Does anyone have any suggestions on how to deal with this?
>
> It looks to my untrained eye that I need to install ToscaWidgets, and
> maybe do something to load my lib/auth/repoze_auth.py file.  If that's
> right, can anyone tell me how to do this?
>
> Thanks!
> Travis
> --
> Obama Nation | My emails do not have attachments; it's a digital signature
> that your mail program doesn't understand. |
> http://www.subspacefield.org/~travis/<http://www.subspacefield.org/%7Etravis/>
> If you are a spammer, please email [email protected] to get
> blacklisted.
>



-- 
Thomas G. Willis

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to