Tori failed to start with CherryPy 3.2
Reported by juti_n (at yahoo) | March 26th, 2011 @ 02:10 AM | in Yotsuba 3.1
Affected Version:
Yotsuba 3.0+ / Tori 1.0+
Description:
Tori fails to start a standalone server with CherryPy 3.2 stable.
Reproductive Steps:
Follow the tutorial for Tori.
Solution (Proposal):
- Primary: fix it for CherryPy 3.2
- Secondary: change the dependency to CherryPy 3.1.2
Comments and changes to this ticket
-
juti_n (at yahoo) March 29th, 2011 @ 01:28 AM
- State changed from open to resolved
CherryPy 3.2 does not except unicode string for URL mapping but CherryPy 3.1 does.
-
juti_n (at yahoo) March 30th, 2011 @ 04:45 PM
How to trigger
First, before executing (
tori.ServerInterface.standalone
(alias tocherrypy.quickstart
), set up adict
.routing = { u'/': { 'tools.sessions.on': True, 'tools.sessions.timeout': 10, 'tools.sessions.storage_type': 'file', 'tools.sessions.storage_path': path['session'] } }
Then, run the following.
tori.ServerInterface.standalone(DocumentRoot(), '/', config=routing) # Equivalent to cherrypy.quickstart(DocumentRoot(), '/', config=routing)
You will see that the process stop right away.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Library and Software Development Framework to enable fast and free-style development and deployment in Python