简体   繁体   中英

Error uploading application Python Google App Engine

I have been trying to upload python Google app engine folder using windows command prompt. I have the app.yaml as well as a python file in the folder. But when I pass the following command in the Command Prompt:

appcfg.py --oauth2 update C:/Path/to/the/folder

I get this error.

appcfg.py: error: Directory does not contain an Project.yaml configuration file.

Where am I wrong and how should I proceed?

This is my app.yaml file:

application: myappid
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /.*
  script: sampleapp.app

libraries:
- name: lxml
  version: "latest"

Check your shell syntax. I had this error message also, by not referencing the right project folder. Note the ending slash:

appcfg.py --oauth2 update C:/Path/to/the/folder/

First, the ending slash is necessary and you have to type the absolute path after "update"

there is another method,use pycharm(my project is in python) and click "Tools", find google app engine, then click "upload App....", make sure your application id in yaml file is correct. The IDE will take care of these stuff.

This problem took me a while to solve. Hope it can help~

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM