dgruano / course-builder

Automatically exported from code.google.com/p/course-builder
0 stars 0 forks source link

Error in downloading data with etl.sh #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. sh scripts/etl.sh download datastore /ns_first activerecruting-module 
activerecruting-module.appspot.com --archive_path downloaded_data.zip 
--datastore_types Student
2.
3.

What is the expected output? What do you see instead?
Ensuring runtime folder /Users/chenaihua/coursebuilder_resources/runtime
Using GAE from 
/Users/chenaihua/coursebuilder_resources/runtime/google_appengine_1_9_17
Using webtest-2.0.14 from 
/Users/chenaihua/coursebuilder_resources/runtime/webtest
Using six-1.5.2 from /Users/chenaihua/coursebuilder_resources/runtime/six
Using beautifulsoup4-4.3.2 from 
/Users/chenaihua/coursebuilder_resources/runtime/beautifulsoup4
Using selenium-2.35.0 from 
/Users/chenaihua/coursebuilder_resources/runtime/selenium
Using node-0.10.1 from /Users/chenaihua/coursebuilder_resources/runtime/node
Using phantomjs-1.9.0 from 
/Users/chenaihua/coursebuilder_resources/runtime/phantomjs
Using karma_lib-1.5.2 from 
/Users/chenaihua/coursebuilder_resources/runtime/karma_lib
Using logilab/pylint-1.4.0 from 
/Users/chenaihua/coursebuilder_resources/runtime/logilab/pylint
Using logilab/astroid-1.3.2 from 
/Users/chenaihua/coursebuilder_resources/runtime/logilab/astroid
Using logilab/logilab/common-0.62.0 from 
/Users/chenaihua/coursebuilder_resources/runtime/logilab/logilab/common
Using third party Python packages from 
/Users/chenaihua/coder/git_repos/coursebuilder18/lib
Warning: extraneous CB distribution runtime library file 
/Users/chenaihua/coder/git_repos/coursebuilder18/lib/README
Using yui-3.6.0 from /Users/chenaihua/coursebuilder_resources/runtime/yui
ERROR:root:Failed to load properties from a database: app must not be empty..
INFO:coursebuilder.tools.etl:Mode is download
INFO:coursebuilder.tools.etl:Target is url /ns_first from application_id 
activerecruting-module on server activerecruting-module.appspot.com
Traceback (most recent call last):
  File "/Users/chenaihua/coder/git_repos/coursebuilder18/tools/etl/etl.py", line 1602, in <module>
    main(create_configured_args_parser(sys.argv).parse_args())
  File "/Users/chenaihua/coder/git_repos/coursebuilder18/tools/etl/etl.py", line 1588, in main
    parsed_args.application_id, parsed_args.server).establish()
  File "/Users/chenaihua/coder/git_repos/coursebuilder18/tools/etl/remote.py", line 143, in establish
    remote_api_stub.MaybeInvokeAuthentication()
  File "/Users/chenaihua/coursebuilder_resources/runtime/google_appengine_1_9_17/google/appengine/ext/remote_api/remote_api_stub.py", line 889, in MaybeInvokeAuthentication
    datastore_stub._server.Send(datastore_stub._path, payload=None)
  File "/Users/chenaihua/coursebuilder_resources/runtime/google_appengine_1_9_17/google/appengine/tools/appengine_rpc.py", line 424, in Send
    f = self.opener.open(req)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
TypeError: do_open() got an unexpected keyword argument 'context'

What version of the product are you using? On what operating system?
Course builder 1.8. Latest GAE launcher on Mac 10.10.3.

Please provide any additional information below.

It looks the problem is caused by authentication error. But I didn't see any 
prompt for username/passwod.

Original issue reported on code.google.com by aihuacvi...@gmail.com on 28 May 2015 at 6:14