my bulkload_client.py command is working problem is:

tools\bulkload_client.py --filename=c:/celebrities.txt --
kind=Celebrities --url=http://famousandspicy.appspot.com/load

above command is working fine and data is imoporting.

but once i run
tools\bulkload_client.py --filename=c:/photos.txt --kind=Photos --
url=http://famousandspicy.appspot.com/load
i got  following error

INFO     2008-11-19 19:57:05,983 bulkload_client.py] Starting import;
maximum 10 entities per post
INFO     2008-11-19 19:57:05,983 bulkload_client.py] Importing 10
entities in 5379 bytes
ERROR    2008-11-19 19:57:11,890 bulkload_client.py] An error occurred
while importing: Received code 500: Internal Server Error

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your
request.<p>If the problem persists, please <A HREF="http://
www.google.com/support/">report</A> your proble
m and mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>

ERROR    2008-11-19 19:57:11,921 bulkload_client.py] Import failed
bulkload_client.py is

from google.appengine.ext import bulkload

class PhotosLoader(bulkload.Loader):

    def __init__(self):

        fields = [
            ("photoid", str),
            ("celebrity_id", str),
            ("title", str),
            ("source", str),
            ("image_url", str),
            ("img_title_link", str),
            ("description", str),
            ("created_at", str),
            ("updated_at", str)
        ]


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

if __name__ == "__main__":

    bulkload.main(PhotosLoader())

model is

class Photos(db.Model):
    photoid=db.StringProperty()
    celebrity_id=db.StringProperty()
    title = db.StringProperty()
    source = db.StringProperty()
    image_url = db.StringProperty()
    img_title_link = db.StringProperty()
    description = db.StringProperty()
    created_at = db.StringProperty()
    updated_at = db.StringProperty()


what wrong i am doing.

Gampesh






--~--~---------~--~----~------------~-------~--~----~
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