Hi there,

I think it's a bug from the session filter of CherryPy 2.1

try to add to the sessionfilter.py file on line 204:

global cherrypy
import cherrypy

Then try again.

- Sylvain

Selon Jared Kuolt <[EMAIL PROTECTED]>:

>
> Does it happen every time you start the project?
>
> On 12/12/05, Graham Ashton <[EMAIL PROTECTED]> wrote:
> >
> > Hi. I'm trying to install TG on my Ubuntu (breezy) box. I followed the
> > instructions on the download page:
> >
> >   sudo python ez_setup.py -f
> > http://www.turbogears.org/download/index.html --script-dir
> > /usr/local/bin TurboGears
> >
> > I then created a new project:
> >
> >   tg-admin fruitbat
> >   cd fruitbat
> >   python fruitbat-start.py
> >
> > The server then starts up, but as soon as I access the URL I get a
> > traceback:
> >
> > 2005/12/12 11:58:22 HTTP INFO Serving HTTP on http://localhost:8080/
> > 2005/12/12 11:58:25  INFO Traceback (most recent call last):
> >   File
> >
>
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
> > line 285, in run
> >     applyFilters('onEndResource')
> >   File
> >
>
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
> > line 641, in applyFilters
> >     method()
> >   File
> >
>
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/lib/filter/sessionfilter.py",
> > line 205, in onEndResource
> >     sess = cherrypy.request._session
> > NameError: global name 'cherrypy' is not defined
> >
> > 127.0.0.1 - - [2005/12/12 11:58:25] "GET / HTTP/1.1" 500 1236
> >
> > I imagine there's something fishy going on with my install, given that
> > CherryPy 2.1.0 is deemed stable.
> >
> > Is it a known issue?
> >
> > Graham
> >
> >
>
>
> --
> [EMAIL PROTECTED]
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Reply via email to