Could not find app.yaml in "%s"



j@ime:~/myapp$ dev_appserver.py myapp
Traceback (most recent call last):
  File "/usr/local/bin/google_appengine/dev_appserver.py", line 171, in 
    run_file(__file__, globals())
  File "/usr/local/bin/google_appengine/dev_appserver.py", line 167, in run_file
    execfile(script_path, globals_)
  File "/usr/local/bin/google_appengine/google/appengine/tools/dev_appserver_main.py", line 747, in 
    sys.exit(main(sys.argv))
  File "/usr/local/bin/google_appengine/google/appengine/tools/dev_appserver_main.py", line 624, in main
    root_path, {}, default_partition=default_partition)
  File "/usr/local/bin/google_appengine/google/appengine/tools/dev_appserver.py", line 3355, in LoadAppConfig
    'Could not find app.yaml in "%s".' % (root_path,))
google.appengine.tools.dev_appserver.AppConfigNotFoundError: Could not find app.yaml in "myapp".

To fix this, i cd back to root, and again, ran dev_appserver.py myapp/
Allow dev_appserver to check for updates on startup? (Y/n): y
dev_appserver will check for updates on startup.  To change this setting, edit /home/j/.appcfg_nag
INFO     2012-11-09 04:12:38,938 appcfg.py:585] Checking for updates to the SDK.
INFO     2012-11-09 04:12:42,031 appcfg.py:619] This SDK release is newer than the advertised release.
WARNING  2012-11-09 04:12:42,031 dev_appserver.py:3560] The datastore file stub is deprecated, and
will stop being the default in a future release.
Append the --use_sqlite flag to use the new SQLite stub.

You can port your existing data using the --port_sqlite_data flag or
purge your previous test data with --clear_datastore.

WARNING  2012-11-09 04:12:42,032 datastore_file_stub.py:518] Could not read datastore data from /tmp/dev_appserver.datastore
WARNING  2012-11-09 04:12:42,033 simple_search_stub.py:950] Could not read search indexes from /tmp/dev_appserver.searchindexes
INFO     2012-11-09 04:12:42,202 dev_appserver_multiprocess.py:655] Running application dev~helloworld on port 8080: http://localhost:8080
INFO     2012-11-09 04:12:42,203 dev_appserver_multiprocess.py:657] Admin console is available at: http://localhost:8080/_ah/admin
INFO     2012-11-09 04:13:09,607 __init__.py:453] building _go_app
INFO     2012-11-09 04:13:10,170 __init__.py:429] running _go_app, HTTP port = 55273, API port = 34087
INFO     2012-11-09 04:13:10,292 dev_appserver.py:3092] "GET / HTTP/1.1" 200 -
INFO     2012-11-09 04:13:10,608 dev_appserver.py:3092] "GET /favicon.ico HTTP/1.1" 200 -
INFO     2012-11-09 04:13:10,615 dev_appserver.py:3092] "GET /favicon.ico HTTP/1.1" 200 -

Opening a new tab, on the addressbar, type in localhost:8080/, and I get Hello World.

1 comment: