开发者

Google App Engine: Upload data syntax?

开发者 https://www.devze.com 2022-12-21 20:04 出处:网络
I\'m trying to use appcfg.py to upload to localhost/Google App Engine. I\'ve basically been following these instructions word for word, but now I\'m having trouble.

I'm trying to use appcfg.py to upload to localhost/Google App Engine. I've basically been following these instructions word for word, but now I'm having trouble.

Here is the command I'm trying:

appcfg.py upload_data --app-id=a开发者_JAVA技巧ppname --config_file="path\to\ItemLoader.py" --filename="path\to\data.csv" --kind=Item --url=http://localhost:8080/remote_api <path\to\app>

I get back:

The syntax of this command is incorrect.

What am I doing wrong?

UPDATE: Looks like I'm not actually supposed to include the < > chars around the path to the app. Now I'm getting an error:

appcfg.py: error: no such option: --app-id

UPDATE 2: I took out the --app-id parameter, and now another error:

appcfg.py: error: Expected <directory> argument

So... I do need the brackets?

UPDATE 3: Ok, it accepts the commands with quotes instead of brackets. But the development console at http://localhost:8080/_ah/admin/datastore shows that the Datastore is still empty. The following error was reported:

IOError: [Errno 13] Permission denied: `path\\to\\google\\SDK\\bulkloader-log-20100301.200921'

UPDATE 4: It appears that it was a permissions error with my file system. I granted a bunch of permissions, and now it is complaining about the referenced scripts instead.


Replace:

appcfg.py upload_data --app-id=appname --config_file="path\to\ItemLoader.py" --filename="path\to\data.csv" --kind=Item --url=http://localhost:8080/remote_api

by :

appcfg.py upload_data --application=appname --config_file="path\to\ItemLoader.py" --filename="path\to\data.csv" --kind=Item --url=http://localhost:8080/remote_api

0

精彩评论

暂无评论...
验证码 换一张
取 消