I've been getting the same problems when trying to import my csv
backup to my local development datastore.  I've had success with using
a live app engine instance, but am having errors with my development
datastore.

I've been running the following command:
appcfg.py upload_data --url=http://localhost:8888/remote_api --
kind=Deal  --filename=Deal.csv --config_file=dealsconfig.yml --
application=dealsexample

I end up with this error:
/usr/local/bin/appcfg.py:42: DeprecationWarning: the sha module is
deprecated; use the hashlib module instead
  os.path.join(DIR_PATH, 'lib', 'django'),
/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/tools/dev_appserver_login.py:33:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Uploading data records.
[INFO    ] Logging to bulkloader-log-20101107.012940
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
[INFO    ] Opening database: bulkloader-progress-20101107.012940.sql3
Please enter login credentials for localhost
Email: [email protected]
Password for [email protected]:
[INFO    ] Connecting to localhost:8888/remote_api
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File "/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/tools/bulkloader.py", line 3175, in
Run
    self.request_manager.Authenticate()
  File "/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/tools/bulkloader.py", line 1187, in
Authenticate
    remote_api_stub.MaybeInvokeAuthentication()
  File "/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
line 539, in MaybeInvokeAuthentication
    datastore_stub._server.Send(datastore_stub._path, payload=None)
  File "/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/tools/appengine_rpc.py", line 341,
in Send
    f = self.opener.open(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 389, in open
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 502, in http_response
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 427, in error
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 361, in _call_chain
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 510, in http_error_default
HTTPError: HTTP Error 404: Not Found
[INFO    ] Authentication Failed


I am on a Mac with App Engine SDK 1.3.8.  I've been messing around
with this for hours to no avail.  I've tried tips from
http://stackoverflow.com/questions/1260835/which-credentials-should-i-put-in-for-google-app-engine-bulkloader-at-development
but no luck.

Any suggestions for loading into the local datastore using java and
the remote_api servlet?  This would be really helpful for testing.

Thank you!
-Sam Edwards
http://handstandsam.com


On Oct 21, 4:13 am, cYr4X <[email protected]> wrote:
> Hi,
>
> Currently, I successfully download and upload data into my Java
> Application on Google App Engine in production environment using the
> python BulkUploader (I followed this nice tutorial 
> :http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...)
>
> But I'm facing a problem using the same process to import data in my
> local environment.
>
> The Google App Engine's documentation says that we need to run the
> following command in order to upload data inlocalhost:
>
> appcfg.pyupload_data--config_file=album_loader.py --
> filename=album_data.csv --kind=Album --url=http://localhost:8080/
> remote_api <app-directory>
>
> where <app-directory> contains my app.yaml.
>
> But when i ran this command, appcfg.py has returned the following
> error :
>
> Unable to assign value 'java' to attribute 'runtime':
> Value 'java' for key runtime does not match expression '^python$'
>
> Is it possible to bulkupload data in Local Database of a Java
> Application using the Python Bulkloader?
>
> Best Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.

Reply via email to