Hello,

I am new to App Engine.  I know this problem has come up in other
forums but none of the solutions I have tried have worked for me so
far.  I am trying to upload a simple CSV file with the world's
countries to no avail.  The very first time I tried it, I was prompted
for my email address and password but the CSV still didn't upload.
Since then I have been getting this error message:

python appcfg.py upload_data --config_file=countryloader.py --
filename=creativepragmatic/countries.csv --kind=Country mydomain
appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
the hashlib module instead
  DIR_PATH,
Uploading data records.
[INFO    ] Logging to bulkloader-log-20090804.113518
[INFO    ] Opening database: bulkloader-progress-20090804.113518.sql3
[INFO    ] Connecting to /remote_api
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File "/home/username/Apps/google_appengine/google/appengine/tools/
bulkloader.py", line 3644, in Run
    request_manager.Authenticate()
  File "/home/username/Apps/google_appengine/google/appengine/tools/
bulkloader.py", line 1464, in Authenticate
    self.rpc_server.Send(self.url_path, payload=None)
  File "/home/username/Apps/google_appengine/google/appengine/tools/
appengine_rpc.py", line 344, in Send
    f = self.opener.open(req)
  File "/usr/lib/python2.6/urllib2.py", line 389, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 427, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 510, in
http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
[INFO    ] Authentication Failed



This is app.yml:

application: mydomain
version: 1
runtime: python
api_version: 1

handlers:
 - url: /remote_api
   script: /home/username/Apps/google_appengine/google/appengine/ext/
remote_api/handler.py
   login: admin

 - url: /.*
   script: mydomain.py



This is my models.py code:

from google.appengine.ext import db

class Country(db.Model):
  code = db.StringProperty()
  name = db.StringProperty()



This is my countryloader.py code:

import datetime
from google.appengine.ext import db
from google.appengine.tools import bulkloader
from models import Country

class CountryLoader(bulkloader.Loader):
  def __init__(self):
    bulkloader.Loader.__init__(self, 'Country',
                               [('code', str),
                                ('name', str),
                               ])

loaders = [CountryLoader]



I don't know if any of you experts have encountered anything similar
but any help would be appreciated.

Orville

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