My app.yaml is

handlers:
- url: /load
  script: loader.py
  login: admin
- url: /.*
  script: main.py

loader.py is

from google.appengine.ext import bulkload

class InventoryLoader(bulkload.Loader):
    def __init__(self):
        fields = [
            ("name", str),
            ("quantity", int)
        ]

        bulkload.Loader.__init__(self, "Inventory", fields)

if __name__ == "__main__":
    bulkload.main(InventoryLoader())

my inventory.csv is in the c:/ and i fire a command that is

C:\Program Files\google_appengine>tools\bulkload_client.py --
filename=c:\inventory.txt --king=Inventory --url=http://
famousandspicy.appspot.com/load

after getting error i fired another command which i got from the
google search

C:\Program Files\google_appengine>tools\bulkload_client.py --
filename=c:\inventory.txt --king=Inventory --url=http://
famousandspicy.appspot.com/load --cookie='ACSID=AJKiYc....[...]..w51g'

but i am not lucky this time also.


please help me out

Thanks
Gampesh

On Nov 18, 3:31 am, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What information is in the logs for the posts from the client?  What does
> the App Engine handler look like for the data?  What does your app.yaml look
> like?
>
> -Marzia
>
> On Sun, Nov 16, 2008 at 11:57 PM, Gampesh <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I tried to upload abc.txt and abc.csv but it not uploaded it gives me
> > following error.
>
> > INFO     2008-11-17 13:16:41,967 bulkload_client.py] Starting import;
> > maximum 10 entities per post
> > INFO     2008-11-17 13:16:41,967 bulkload_client.py] Importing 4
> > entities in 29 bytes
> > ERROR    2008-11-17 13:16:43,437 bulkload_client.py] An error occurred
> > while importing: Received code 302: Found
>
> > 302 Moved
> > The document has moved
> > here.
> > ERROR 2008-11-17 13:16:43,453 bulkload_client.py] Import failed
>
> > what is wrong in this.
--~--~---------~--~----~------------~-------~--~----~
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-appengine@googlegroups.com
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