On Tue, 20 Apr 2010, Mike Orr wrote:

 6. cd Site
 7. paster serve development.ini

OK, the problem is the project name 'Site'. You can't create a project
with the same name as a standard Python module.  I have only seen it
with 'Test', but it looks like 'Site' has the same problem.

The problem is that with a name like 'Test', Paster naively creates a
package named 'test'.  Then when "paster serve" imports it, it gets
the stdlib module instead, which of course doesn't contain
"config.middleware".

The name 'Site' has an additional level of confusion because the
virtualenv defines its own 'site.py'.

If the book actually has a project named 'Site', I can forward a bug
to the author.

No, that was my fault.

Thanks very much for your quick diagnosis---I had *no* idea where
to start on this one!

Best regards,
John Shipman ([email protected]), Applications Specialist, NM Tech Computer Center,
Speare 119, Socorro, NM 87801, (575) 835-5735, http://www.nmt.edu/~john
  ``Let's go outside and commiserate with nature.''  --Dave Farber

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