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

  • Home
  • SEARCH
  • 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 8662125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:39:34+00:00 2026-06-12T16:39:34+00:00

I’m having problems with Webapp2. When I put handlers for URLs that point to

  • 0

I’m having problems with Webapp2. When I put handlers for URLs that point to different python files in the app.yaml I get the following error:

ERROR    2012-10-06 16:44:57,759 wsgi.py:203] 
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 195, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 250, in _LoadHandler
    __import__(cumulative_path)
ImportError: No module named application

My app.yaml:

application: [[app's name]]
version: 1
runtime: python27
api_version: 1
threadsafe: yes

inbound_services:
- mail

handlers:

- url: /send
  script: email.application

- url: /_ah/mail/update@sitdown-standup.appspotmail.com.*
  script: email.application

- url: /.*
  script: SDSUmodels.application

libraries:
- name: webapp2
  version: "2.5.1"

SDSUmodels.py ends with:

application = webapp2.WSGIApplication([('/info', MakeBasicInfo)], 
                                   debug=True)`

and email.py ends with:

application = webapp2.WSGIApplication([('/request', Request_update),
                                   ('/send', Send_report),
                                   (Receive_email.mapping())], 
                                   debug=True)`

When I remove these lines

- url: /send
  script: email.application

from app.yaml, the error stops, but this leaves me without a way to point a URL towards a particular file.

I can see some alternative ways of handling this in this question but I was wondering why this approach isn’t working. I’ve done this previously with the old webapp version in a different project and it’s worked – details below.

app.yaml:

application: [[other app's name]]
version: 1
runtime: python
api_version: 1

handlers:
- url: /stylesheets
  static_dir: stylesheets

- url: /twitter
  script: twitter.py

- url: /_ah/mail/kindle@shelvdtracker.appspotmail.com.*
  script: kindle.py

- url: /.*
  script: web.py

inbound_services:
- mail

twitter.py ends with:

application = webapp.WSGIApplication(
                                     [('/twitter', Process_new_DM)],
                                     debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
  • 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-12T16:39:35+00:00Added an answer on June 12, 2026 at 4:39 pm

    There is a standard library named email as well; it is being loaded before your local module is being found.

    Rename the module to something else and it’ll work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have a bunch of posts stored in text files formatted in yaml/textile (from
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I've tracked down a weird MySQL problem to the two different ways I was

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.