python - dev_appserver.py no such file or directory -
i trying enable sending email in development. need run server. in directory called 'trade' application located.(see pwd , ls)
kenzos-macbook-pro:trade kenzotakahashi$ pwd /users/kenzotakahashi/desktop/main/webdevelopment/project/trade kenzos-macbook-pro:trade kenzotakahashi$ ls app.yaml main.pyc model.pyc util.py main.py model.py templates util.pyc
but got error.
kenzos-macbook-pro:trade kenzotakahashi$ dev_appserver.py trade traceback (most recent call last): file "/usr/local/bin/dev_appserver.py", line 184, in <module> _run_file(__file__, globals()) file "/usr/local/bin/dev_appserver.py", line 180, in _run_file execfile(script_path, globals_) file "/users/kenzotakahashi/desktop/main/webdevelopment/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 727, in <module> main() file "/users/kenzotakahashi/desktop/main/webdevelopment/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 720, in main dev_server.start(options) file "/users/kenzotakahashi/desktop/main/webdevelopment/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 554, in start options.yaml_files) file "/users/kenzotakahashi/desktop/main/webdevelopment/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 556, in __init__ module_configuration = moduleconfiguration(yaml_path) file "/users/kenzotakahashi/desktop/main/webdevelopment/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 82, in __init__ self._yaml_path) file "/users/kenzotakahashi/desktop/main/webdevelopment/googleappenginelauncher.app/contents/resources/googleappengine-default.bundle/contents/resources/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 271, in _parse_configuration open(configuration_path) f: ioerror: [errno 2] no such file or directory: 'trade' kenzos-macbook-pro:trade kenzotakahashi$
here app.yaml
application: trade version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /static static_dir: static - url: /.* script: main.app libraries: - name: jinja2 version: latest - name: pil version: "1.1.7"
i know there no file called 'trade' google document says "dev_appserver.py myapp" thought 'trade' myapp name. tried dev_appserver.py 'main.py', 'main.app', 'main' none of them worked. doing wrong?
you need specify path when run dev_appserver.py
. if running app server inside of trade
directory, run either
dev_appserver.py .
or
dev_appserver.py ../trade
another way run cd ..
you're in directory contains trade
, run
dev_appserver.py trade
Comments
Post a Comment