I'm encountering the same problem, under slightly different conditions
that lead me to think this is a bug, possibly with
paste.deploy.loadwsgi.
I'm using ==dev release of pastescript and pastedeploy. I've got a
pair of .ini files much like Laurent, with the only difference between
them being the filter-with and matching [filter:proxy-prefix] section
in the one file.
When I run "paster setup-app withprefix.ini" I get the same error
message about "section 'main' is not the application". When I run the
withoutprefix.ini file, no such problem.
A quick step through getcontext() (using pdb) in loadwsgi.py suggests
to me that something is broken, but I'm lost in the code (new to paste
etc) and know it will take hours to understand enough to track this
down. Roughly speaking, it looks like the code in getcontext() is
returning the filter_with_context instead of the regular app context,
and the caller way up in
paste.script.appinstall.SetupCommand.command() is bothered that the
returned context doesn't have a .distribution attribute and spits out
that error.
That much I can see, but since I don't even know what a "context" is
here...
On Jul 11, 1:53 pm, Ian Bicking <[EMAIL PROTECTED]> wrote:
> You need to point at the section that has your application
> configuration. So if you configuration is in [app:foobar], you have to
> change to appconfig('...#foobar') in your test file (in
> tests/__init__.py, I think).
I would think the way I'm running it, with paster setup-app, means I'm
not in control of what is being pointed at, but I certainly have an
[app:main] which *is* my application, thus I suspect buggishness.
By the way, this affects only setup-app for me. I can run paster
serve just fine with the withprefix.ini file, so my workaround is to
do "paster setup-app withoutprefix.ini", then "paster serve
withprefix.ini".
-Peter
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---