Error parsing yaml file: mapping values are not allowed here

后端 未结 7 1801
清歌不尽
清歌不尽 2021-01-30 15:53

I want to upload an app to Google App Engine:

I get this

Error parsing yaml file:
mapping values are not allowed here
  in \"/home/antonio/Desktop/ATI/cl         


        
7条回答
  •  故里飘歌
    2021-01-30 16:10

    Or, if spacing is not the problem, it might want the parent directory name rather than the file name.

    Not $ dev_appserver helloapp.py
    But $ dev_appserver hello/

    For example:

    Johns-Mac:hello john$ dev_appserver.py helloworld.py
    Traceback (most recent call last):
      File "/usr/local/bin/dev_appserver.py", line 82, in 
        _run_file(__file__, globals())
    ...
      File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/yaml_listener.py", line 212, in _GenerateEventParameters
        raise yaml_errors.EventListenerYAMLError(e)
    google.appengine.api.yaml_errors.EventListenerYAMLError: mapping values are not allowed here
      in "helloworld.py", line 3, column 39
    

    Versus

    Johns-Mac:hello john$ cd ..
    Johns-Mac:fbm john$ dev_appserver.py hello/
    INFO     2014-09-15 11:44:27,828 api_server.py:171] Starting API server at: http://localhost:61049
    INFO     2014-09-15 11:44:27,831 dispatcher.py:183] Starting module "default" running at: http://localhost:8080
    

提交回复
热议问题