Reputation:
first day with google app engine.
my yaml file includes the following:
application: testProgram
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
script: main.py
libraries:
- name: webapp2
version: "2.5.2"
my python file includes the following (just for giggles):
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)
the error I am getting is the following:
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
so it is complaining about the naming of my file? That can't be right? I any ideas?
Upvotes: 3
Views: 571
Reputation: 4287
It is most likely complaining about your applicationId, look at the regex, it accepts lowercased chars only.
Change your applicationId to "testprogram" or "test-program"
Upvotes: 1