Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:41:41+00:00 2026-06-06T15:41:41+00:00

First, let me just say that I have searched for information on this topic;

  • 0

First, let me just say that I have searched for information on this topic; there are a number of stackoverflow posts that all reference the same blog post from 2008:

http://boodebr.org/main/python/cherrypy-under-google-appserver#comment-51142

I understand that the new CherryPy version no longer requires the patch this blog post mentions. I have the cherrypy folder in the root of my GAE app – and I don’t get an error when I import it in my program – but beyond the “import cherrypy” line, I can’t get it to work. I’m not sure how to change the app.yaml file to properly reflect that I am using cherrypy, and not webbapp2 (or if that is important).

Is someone aware of an updated tutorial that could walk me through CherryPy/GAE? Or, could someone be so kind as to post the simple hello world program that will work using cherrypy in GAE?

Edit: If it helps, here’s the code I have in main.py right now – it returns two 404 errors from cherrypy.

import cherrypy
import wsgiref.handlers 

class Root:
def index(self):
    return "Hello, CherryPy!"


app = cherrypy.tree.mount(Root(), "/")
wsgiref.handlers.CGIHandler().run(app)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:41:42+00:00Added an answer on June 6, 2026 at 3:41 pm

    I’ve a website running in GAE with cherrypy, it is very straight forward, you code is correct but you are not exposing the index method that explain the 404.

    Anyway you should use the run_wsgi_app that GAE provides, so your code will look like this:

    import cherrypy
    from google.appengine.ext.webapp.util import run_wsgi_app
    
    class Root(object):
    
        @cherrypy.expose
        def index(self):
            return 'Hello CherryPy!'
    
    app = cherrypy.tree.mount(Root(), '/')
    run_wsgi_app(app)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First let me say that I have been working on this issue for about
First of all let me just say that I am new to nHibernate so
First of all, let me just say that I'm using the PHP framework Yii,
First of, let me just say that I know similar questions have been asked
First let me say I have read this useful article thoroughly and am using
First let me say that I did see this article: How to remove AspxAutoDetectCookieSupport
(Since this is my first SO question, let me just say I hope it's
first of all please let me say that I am quite new to objective
let's say I have an HTML structure like this: <div class=first> <div class=sub-1> <div
Ok. First let me say that I just started learning jQuery and I've taken

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.