Hi everyone,

Well I'm glad bgood was able to get his issue solved! In the meantime,
I'm still having a bit of trouble with appcfg.py and the download_data
function.

To recap:

I followed Nick Johnson's suggestion for Java developers and created a
simple python version of my application for the purpose of using
python tools to interact with my datastore.

I'm trying to download data in csv format from my datastore. I just
upgraded to the latest version of the python tools (1.2.6.542). It's
not working -- I am told there is a syntax error in my app.yaml file.
However I'm able to upload my app fine and use bulkloader.py directly
with success. Here's the exact command I'm using with appcfg.py and a
link to my configuration file. I'm on OSX v10.6.

appcfg.py download_data --kind=Video_ --url=http://
upload.latest.idolornot-dev.appspot.com/remote_api --
filename=videos.csv --config_file=../idolornot-dev-empty/app.yaml ../
idolornot-dev-empty/

http://jeffinmotion.com/work/appengine/appcfg_issue/app.yaml

The error:
Application: idolornot-dev; version: upload.
Downloading data records.
[INFO    ] Logging to bulkloader-log-20091015.135351
Traceback (most recent call last):
  File "/usr/local/bin/appcfg.py", line 60, in <module>
    run_file(__file__, globals())
  File "/usr/local/bin/appcfg.py", line 57, in run_file
    execfile(script_path, globals_)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appcfg.py", line 2548, in <module>
    main(sys.argv)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appcfg.py", line 2539, in main
    result = AppCfgApp(argv).Run()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appcfg.py", line 1640, in Run
    self.action(self)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appcfg.py", line 2427, in __call__
    return method()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appcfg.py", line 2293, in PerformDownload
    run_fn(args)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appcfg.py", line 2215, in RunBulkloader
    sys.exit(bulkloader.Run(arg_dict))
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 3894, in Run
    return _PerformBulkload(arg_dict)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 3717, in _PerformBulkload
    LoadConfig(config_file)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 3467, in LoadConfig
    ('', 'r', imp.PY_SOURCE))
  File "../idolornot-dev-empty/app.yaml", line 1
    application: idolornot-dev
               ^
SyntaxError: invalid syntax


Any ideas?

Jeff

On Oct 1, 1:16 am, bgood <[email protected]> wrote:
> Takashi, you rock!  Thanks so much, that solved it
>
> On Sep 30, 8:13 pm, Takashi Matsuo <[email protected]> wrote:
>
>
>
> > Hi bgood,
>
> > Perhaps you can try specifying app_id explicitly by adding
> > "--app-id='yourappid'".
> > Sorry if it won't work for you.
>
> > Regards,
>
> > --
> > Takashi Matsuo
> > The father of kay framework
>
> > On Thu, Oct 1, 2009 at 4:38 AM, bgood <[email protected]> wrote:
>
> > > I found part of my answer in a previous thread
> > >http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > It seems that the url I was requesting didn't exist - which you can
> > > identify by inspecting the stack trace for the 404.
>
> > > But the --dump option is failing as follows.
>
> > > I am trying to dump the data created in a Java app engine
> > > application.  So, I have two versions of the app - the live java
> > > version and the python version that hosts /remote_api .  (this caused
> > > the url confusion)
>
> > > I succeeded with authenticating a request to the python remote_api (in
> > > version 'bulkload') with this:
>
> > >bulkloader.py --dump --filename=my-new-archive.csv --kind=MyClass --
> > > url=http://bulkload.latest.myappid.appspot.com/remote_api./
>
> > > however, the request failed with the error:
> > > [ERROR   ] Error in Thread-1: app myappid cannot access app
> > > bulkload.latest.myappid's data
>
> > > My app.yaml file looks like this
>
> > > application: myappid
> > > version: bulkload
> > > runtime: python
> > > api_version: 1
>
> > > handlers:
> > > - url: /remote_api
> > >  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
> > >  login: admin
>
> > > Any idea what I am doing wrong?
> > > thanks
> > > -ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to