List Info

Thread: No response from CP2.2




No response from CP2.2
user name
2006-05-31 14:23:22
Sylvain Hellegouarch a écrit :

> (...)
> The difference you see comes from the fact that in CP3
you now need to call:
> cherrypy.server.start()
> cherrypy.engine.start()
> (...)
> I would strongly advise to come back to CP 2.2.1 if you
don't want to
> spend time upgrading your application. Although to be
honest, if you don't
> use filters then moving to CP3.0 should be very easy.

I don't use filter, so for me upgrading do CP3.0 it's
OK... except if
python 2.4 is needed !

I've modified my test in :

class Root(object):
    def index(self):
         return 'test'
    index.exposed = True

setting = { 'autoreload.on':False }

cherrypy.tree.mount(Root(), "")
cherrypy.config.update(setting)
cherrypy.server.start()
cherrypy.engine.start()

I hope I can soon use again the autoreload function, now I
have :
...lot of stuff
31/May/2006:16:23:30 CONFIG INFO   server.thread_pool: 10
31/May/2006:16:23:35 HTTP INFO Port 8080 not free on
'localhost'
Traceback (most recent call last):
  File "test2.py", line 13, in ?
    cherrypy.server.start() #server=None)
  File
"/usr/local/lib/python2.3/site-packages/cherrypy/_cpse
rver.py",
line 32, in start
    wait_for_free_port(host, port)
  File
"/usr/local/lib/python2.3/site-packages/cherrypy/_cpse
rver.py",
line 157, in wait_for_free_port
    raise cherrypy.NotReady("Port not free.")
cherrypy._cperror.NotReady: Port not free.
31/May/2006:16:23:35 ENGINE INFO SystemExit raised: shutting
down
autoreloader
...lot of stuff

Thanks and best regards
François


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )