I moved the remote_api handler to the top of my app.yaml file, but I
got the same appcfg.py error.

Just to clarify, when I call

> C:\Program Files (x86)\Google\google_appengine> python appcfg.py upload_data 
> --config_file=DataStoreLoader.py --filename=stimulus_set.csv --kind=DataStore 
> face-eval --has_header

I am calling appcfg.py with the config_file in my <app-directory>,
which is face-eval in this case (a subdirectory in google_appengine).
Also, the file that I want to uplpoad, stimulus_set.csv is also in the
face-eval app directory, along with the DataStoreLoader class.

The $PYTHON_LIB variable is at the head of the directory structure
pointing the handler in app.yaml. I'm not sure if that variable is
being interpreted correctly, causing the problem.

I appreciate your help.



On Mar 1, 7:01 pm, Eli Jones <eli.jo...@gmail.com> wrote:
> Is the remote_api handler at the very top of your app.yaml?
>
> if there is something like:
>
> - url: /.*
>   script: myscript
>
> Above the remote_api handler.. then it won't work.On Mon, Mar 1, 2010 at 8:43 
> PM, pkhoosh <pkho...@gmail.com> wrote:
> > I am trying to upload a csv file to a data store. I uploaded my
> > app.yaml file with the following:
>
> > - url: /remote_api
> >  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
> >  login: admin
>
> > I wrote a python handler in my application directory
> > (DataStoreLoader.py).
>
> > However, I get the following when I upload:
>
> > C:\Program Files (x86)\Google\google_appengine>python appcfg.py
> > upload_data --config_file=DataStoreLoader.py --
> > filename=stimulus_set.csv --kind=DataStore face-eval --has_header
>
> > Application: face-eval; version: 1.
> > Usage: appcfg.py [options] upload_data <directory>
>
> > appcfg.py: error: You must have
> > google.appengine.ext.remote_api.handler assigned
> >  to an endpoint in app.yaml, or provide the url of the handler via the
> > 'url' opt
> > ion.
>
> > Any help?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to