yaml exception in google app server "unable to add testProject to attribute application" regex issue?
<p>first day with google app engine.</p>

<p>my yaml file includes the following:</p>

<pre><code>application: testProgram
version: 1
runtime: python
api_version: 1

handlers:
- url: /.*
  script: main.py

libraries:
- name: webapp2
  version: "2.5.2"
</code></pre>

<p>my python file includes the following (just for giggles):</p>

<pre><code>import webapp2


class MainPage(webapp2.RequestHandler):
    def get(self):
        self.reponse.headers['Content-Type'] = 'text/plain'
        self.response.out.write("Hurray for cake!")


app = webapp2.WSGIApplication([('/', MainPage)],debug=True)
</code></pre>

<p>the error I am getting is the following:</p>

<pre><code>ile "/home/rickus/google_appengine/google/appengine/api/yaml_listener.py", line 178, in _HandleEvents
    raise yaml_errors.EventError(e, event_object)
google.appengine.api.yaml_errors.EventError: Unable to assign value 'testProgram' to attribute 'application':
Value 'testProgram' for application does not match expression '^(?:(?:[a-z\d\-]{1,100}\~)?(?:(?!\-)[a-z\d\-\.]{1,100}:)?(?!-)[a-z\d\-]{0,99}[a-z\d])$'
  in "testProgram/app.yaml", line 1, column 14
</code></pre>

<p>so it is complaining about the naming of my file? That  can't be right? I any ideas?</p>

<p>It is most likely complaining about your applicationId, look at the regex, it accepts lowercased chars only.</p>

<p>Change your applicationId to "testprogram" or "test-program"</p>

python google-app-engine yaml