CherryPy on PythonAnywhere

166 views
Skip to first unread message

liam...@gmail.com

unread,
Oct 11, 2012, 7:01:04 AM10/11/12
to cherryp...@googlegroups.com
Hi All,

Can anyone help with the basic to get a cherrypy app running on
pythonanywhere.com ?

The only references I could find for creating a cherrypy wsgi server on
pythonanywhere is here:

https://www.pythonanywhere.com/forums/topic/199/
https://www.pythonanywhere.com/forums/topic/95/

They both refer to this older cherrypy link which has the sample code:

http://tools.cherrypy.org/wiki/ModWSGI

When I use this example as wsgi.py on pythonanywhere, I get this error:

------------------ snip ----------------------
Unrecoverable error in the server.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.2-
py2.7.egg/cherrypy/_cprequest.py", line 571, in run
self.script_name = self.app.script_name
File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.2-
py2.7.egg/cherrypy/_cptree.py", line 83, in _get_script_name
return cherrypy.serving.request.wsgi_environ['SCRIPT_NAME'].rstrip("/")
KeyError: 'SCRIPT_NAME'
------------------ snip ----------------------

Has anyone run a cherrypy app on pythonanywhere before, and have any advice on
how to get it done?

Or anyone know of another python hosting environment to run a small proof of
concept cherrypy app on?

Thanks,
Tom

Sylvain Hellegouarch

unread,
Oct 11, 2012, 7:57:56 AM10/11/12
to cherryp...@googlegroups.com
Hi Tom,



Or anyone know of another python hosting environment to run a small proof of
concept cherrypy app on?

I've never used PythonAnywhere so I cannot really help, but you can look at WebFaction for a good web host supporting Python and CherryPy.

--
- Sylvain
http://www.defuze.org
http://twitter.com/lawouach

liam...@gmail.com

unread,
Oct 11, 2012, 8:17:44 AM10/11/12
to cherryp...@googlegroups.com, Sylvain Hellegouarch
Hi Sylvain,

On Thursday 11 October 2012 13:57:56 Sylvain Hellegouarch wrote:
> Hi Tom,
>
> > Or anyone know of another python hosting environment to run a small proof
> > of
> > concept cherrypy app on?
>
> I've never used PythonAnywhere so I cannot really help, but you can look at
> WebFaction for a good web host supporting Python and CherryPy.

I had a very quick look at Webfaction but was not sure if they supported
CherryPy. I'll have a closer look now, thanks.


Cheers,
Tom



Sylvain Hellegouarch

unread,
Oct 11, 2012, 8:42:20 AM10/11/12
to liam...@gmail.com, cherryp...@googlegroups.com

I had a very quick look at Webfaction but was not sure if they supported
CherryPy. I'll have a closer look now, thanks.



They do. Mostly because they support Python out of the box and let you compile and deploy your own tools if need be :) 
Reply all
Reply to author
Forward
0 new messages