Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created September 18, 2014 15:10
Show Gist options
  • Save singingwolfboy/662bb5b1ef6a35b2c344 to your computer and use it in GitHub Desktop.
Save singingwolfboy/662bb5b1ef6a35b2c344 to your computer and use it in GitHub Desktop.
failing tests on open edx aspen release candidate
db ~/dev/configuration/vagrant/release/openedx (git)-[vagrant-aspen] mastodon
% vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
*******************************************************************
* _ __ __ *
* _ _| |\ \/ / This system is for the use of authorized *
* / -_) _` | > < users only. Usage of this system may be *
* \___\__,_|/_/\_\ monitored and recorded by system personnel. *
* *
* Anyone using this system expressly consents to such monitoring *
* and is advised that if such monitoring reveals possible *
* evidence of criminal activity, system personnel may provide the *
* evidence from such monitoring to law enforcement officials. *
* *
*******************************************************************
Last login: Wed Sep 17 19:59:10 2014 from 10.0.2.2
vagrant@precise64:~$ sudo -H -u edxapp bash
edxapp@precise64:/home/vagrant$ cd /edx/app/edxapp
edxapp@precise64:~$ source edxapp_env
edxapp@precise64:~$ cd edx-platform
edxapp@precise64:~/edx-platform$ paver test
---> pavelib.tests.test
---> pavelib.prereqs.install_prereqs
---> pavelib.utils.test.utils.clean_reports_dir
find /edx/app/edxapp/edx-platform/reports -type f -delete
Setting up for All Tests
Setting up for JS Tests javascript
---> pavelib.utils.test.utils.clean_test_files
git clean -fqdx test_root/logs test_root/data test_root/staticfiles test_root/uploads
find . -type f -name "*.pyc" -delete
rm -rf test_root/log/auto_screenshots/*
rm -rf /tmp/mako_[cl]ms
---> pavelib.assets.compile_coffeescript
node_modules/.bin/coffee --compile `find /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`
js-test-tool run /edx/app/edxapp/edx-platform/lms/static/js_test.yml /edx/app/edxapp/edx-platform/cms/static/js_test.yml /edx/app/edxapp/edx-platform/cms/static/js_test_squire.yml /edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/js/js_test.yml /edx/app/edxapp/edx-platform/common/static/js_test.yml --use-firefox --timeout-sec 600 --xunit-report /edx/app/edxapp/edx-platform/reports/javascript/javascript_xunit.xml --coverage-xml /edx/app/edxapp/edx-platform/reports/javascript/coverage.xml
========================================
Running tests for JS Tests javascript
========================================
WARNING: Could not find file or directory at 'js/src'
WARNING: Could not find file or directory at 'js/fixtures'
WARNING: JSCover is not configured: no coverage reports will be generated.
To configure JSCover:
1) Download the latest version from http://tntim96.github.io/JSCover/
2) Set the JSCOVER_JAR environment variable as the path to JSCover-all.jar
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/bin/js-test-tool", line 9, in <module>
load_entry_point('js-test-tool==0.1.5', 'console_scripts', 'js-test-tool')()
File "/edx/app/edxapp/venvs/edxapp/src/js-test-tool/js_test_tool/tool.py", line 200, in main
args_dict.get('timeout_sec')
File "/edx/app/edxapp/venvs/edxapp/src/js-test-tool/js_test_tool/runner.py", line 290, in build_runner
for name in browser_names]
File "/edx/app/edxapp/venvs/edxapp/src/js-test-tool/js_test_tool/browser.py", line 76, in __init__
self._start_browser()
File "/edx/app/edxapp/venvs/edxapp/src/js-test-tool/js_test_tool/browser.py", line 134, in _start_browser
self._splinter_browser = SplinterBrowser(self._name)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/splinter/browser.py", line 44, in Browser
return driver(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/splinter/driver/webdriver/firefox.py", line 33, in __init__
self.driver = Firefox(firefox_profile)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 49, in __init__
self.binary = FirefoxBinary()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 43, in __init__
self._start_cmd = self._get_firefox_start_cmd()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 154, in _get_firefox_start_cmd
" Please specify the firefox binary location or install firefox")
RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox
Cleaning up after JS Tests javascript
Setting up for Python Tests
---> pavelib.utils.test.utils.clean_test_files
git clean -fqdx test_root/logs test_root/data test_root/staticfiles test_root/uploads
find . -type f -name "*.pyc" -delete
rm -rf test_root/log/auto_screenshots/*
rm -rf /tmp/mako_[cl]ms
Setting up for cms
python -m coverage run --rcfile=cms/.coveragerc `which ./manage.py` cms test --verbosity=1 cms/djangoapps/* common/djangoapps/* cms/lib/* --traceback --settings=test
========================================
Running tests for cms
========================================
nosetests cms/djangoapps/contentstore cms/djangoapps/course_creators cms/djangoapps/models common/djangoapps/cache_toolbox common/djangoapps/config_models common/djangoapps/contentserver common/djangoapps/course_action_state common/djangoapps/course_groups common/djangoapps/course_modes common/djangoapps/dark_lang common/djangoapps/datadog common/djangoapps/django_comment_common common/djangoapps/django_future common/djangoapps/edxmako common/djangoapps/embargo common/djangoapps/external_auth common/djangoapps/geoinfo common/djangoapps/heartbeat common/djangoapps/lang_pref common/djangoapps/microsite_configuration common/djangoapps/monitoring common/djangoapps/monkey_patch common/djangoapps/pipeline_js common/djangoapps/pipeline_mako common/djangoapps/request_cache common/djangoapps/reverification common/djangoapps/service_status common/djangoapps/session_inactivity_timeout common/djangoapps/static_replace common/djangoapps/status common/djangoapps/student common/djangoapps/terrain common/djangoapps/third_party_auth common/djangoapps/track common/djangoapps/user_api common/djangoapps/util common/djangoapps/xmodule_django common/djangoapps/xmodule_modifiers.py cms/lib/__init__.py cms/lib/xblock --id-file /edx/app/edxapp/edx-platform/.testids/cms/noseids --xunit-file /edx/app/edxapp/edx-platform/reports/cms/nosetests.xml --verbosity=1
Creating test database for alias 'default'...
...........---...............................................................
.............................................................................
.............................................................................
......................................................................-......
....................................................................-....-...
.....-.........................................-.............................
...........................................................................--
-----------------------------.................-...............-------.....---
--------------..----.----.-.--...............................................
.----------..-............------------------.................................
..........................-....................-.---..----..-.------.---.----
-------------------------------------------------....--......................
..............-.........-.................--..............--.................
.................----...............................-........................
................-.--.........................................................
...............................................................
-----------------------------------------------------------------------------
1218 tests run in 275.0 seconds.
192 skipped (1026 tests passed)
Destroying test database for alias 'default'...
Cleaning up after cms
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for lms
python -m coverage run --rcfile=lms/.coveragerc `which ./manage.py` lms test --verbosity=1 lms/djangoapps/* common/djangoapps/* lms/lib/* lms/tests.py --traceback --settings=test
========================================
Running tests for lms
========================================
nosetests lms/djangoapps/branding lms/djangoapps/bulk_email lms/djangoapps/certificates lms/djangoapps/circuit lms/djangoapps/class_dashboard lms/djangoapps/course_wiki lms/djangoapps/courseware lms/djangoapps/dashboard lms/djangoapps/debug lms/djangoapps/django_comment_client lms/djangoapps/foldit lms/djangoapps/instructor lms/djangoapps/instructor_analytics lms/djangoapps/instructor_task lms/djangoapps/licenses lms/djangoapps/linkedin lms/djangoapps/lms_migration lms/djangoapps/notes lms/djangoapps/notification_prefs lms/djangoapps/open_ended_grading lms/djangoapps/psychometrics lms/djangoapps/shoppingcart lms/djangoapps/static_template_view lms/djangoapps/staticbook lms/djangoapps/verify_student common/djangoapps/cache_toolbox common/djangoapps/config_models common/djangoapps/contentserver common/djangoapps/course_action_state common/djangoapps/course_groups common/djangoapps/course_modes common/djangoapps/dark_lang common/djangoapps/datadog common/djangoapps/django_comment_common common/djangoapps/django_future common/djangoapps/edxmako common/djangoapps/embargo common/djangoapps/external_auth common/djangoapps/geoinfo common/djangoapps/heartbeat common/djangoapps/lang_pref common/djangoapps/microsite_configuration common/djangoapps/monitoring common/djangoapps/monkey_patch common/djangoapps/pipeline_js common/djangoapps/pipeline_mako common/djangoapps/request_cache common/djangoapps/reverification common/djangoapps/service_status common/djangoapps/session_inactivity_timeout common/djangoapps/static_replace common/djangoapps/status common/djangoapps/student common/djangoapps/terrain common/djangoapps/third_party_auth common/djangoapps/track common/djangoapps/user_api common/djangoapps/util common/djangoapps/xmodule_django common/djangoapps/xmodule_modifiers.py common/djangoapps/xmodule_modifiers.pyc lms/lib/__init__.py lms/lib/__init__.pyc lms/lib/comment_client lms/lib/newrelic_logging lms/lib/xblock lms/tests.py --id-file /edx/app/edxapp/edx-platform/.testids/lms/noseids --xunit-file /edx/app/edxapp/edx-platform/reports/lms/nosetests.xml --verbosity=1
Creating test database for alias 'default'...
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.......XXXFFFFFF.............................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
........................................................................F....
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
..............................................-..............................
................-....-....-.-................................................
.............................................................................
.............................................................................
......................................................--.....................
...............-.........-.................--..............--................
..................................................-..........................
.............................................................................
.............................................................................
........................
-----------------------------------------------------------------------------
1) ERROR: test_check_function_correct (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 870 in test_check_function_correct
self._check_correct(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 826 in _check_correct
respdata = json.loads(resp.content)
/usr/lib/python2.7/json/__init__.py line 326 in loads
return _default_decoder.decode(s)
/usr/lib/python2.7/json/decoder.py line 366 in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
/usr/lib/python2.7/json/decoder.py line 384 in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:51.304995+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/77ee654f6c3a41f98209d6d8c2ae054d", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/77ee654f6c3a41f98209d6d8c2ae054d"}, "time": "2014-09-17T20:10:51.334335+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:51.366050+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:51.398401+00:00", "agent": "", "page": null, "host": "testserver", "session": "7b04ca052f187402a69496b82559c137", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=813, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 813', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_813'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 813', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_813'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_813'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_813'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_813'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_813'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'display_name': 'cfn_problem', 'data': '<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'customgrader.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='customgrader.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'cfn_problem'), data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x10199450>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'cfn_problem'), data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:51.513098+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-cfn_problem_2_1\": [\"0, 1, 2, 3, 4, 5, 'Outside of loop', 6\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
codejail.jail_code: INFO: Executing jailed code i4x-MITx-100-problem-cfn_problem in /tmp/codejail-2IpdkQ, with PID 18406
capa.capa_problem: ERROR: Error while execing script code: def test_csv(expect, ans):
# Take out all spaces in expected answer
expect = [i.strip(' ') for i in str(expect).split(',')]
# Take out all spaces in student solution
ans = [i.strip(' ') for i in str(ans).split(',')]
def strip_q(x):
# Strip quotes around strings if students have entered them
stripped_ans = []
for item in x:
if item[0] == "'" and item[-1]=="'":
item = item.strip("'")
elif item[0] == '"' and item[-1] == '"':
item = item.strip('"')
stripped_ans.append(item)
return stripped_ans
return strip_q(expect) == strip_q(ans)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://MITx/100/problem/cfn_problem: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
2) ERROR: test_check_function_incorrect (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 875 in test_check_function_incorrect
self._check_incorrect(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 835 in _check_incorrect
respdata = json.loads(resp.content)
/usr/lib/python2.7/json/__init__.py line 326 in loads
return _default_decoder.decode(s)
/usr/lib/python2.7/json/decoder.py line 366 in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
/usr/lib/python2.7/json/decoder.py line 384 in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:52.014677+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/804441825a9c4450a1e60ea58f855044", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/804441825a9c4450a1e60ea58f855044"}, "time": "2014-09-17T20:10:52.050192+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:52.078267+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:52.113816+00:00", "agent": "", "page": null, "host": "testserver", "session": "005157589bea2f63e98d43ebb4753919", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=817, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 817', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_817'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 817', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_817'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_817'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_817'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_817'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_817'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'display_name': 'cfn_problem', 'data': '<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'customgrader.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='customgrader.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'cfn_problem'), data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x113ae510>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'cfn_problem'), data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:52.246091+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-cfn_problem_2_1\": [\"Reading my code I see. I hope you like it :)\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.capa_problem: ERROR: Error while execing script code: def test_csv(expect, ans):
# Take out all spaces in expected answer
expect = [i.strip(' ') for i in str(expect).split(',')]
# Take out all spaces in student solution
ans = [i.strip(' ') for i in str(ans).split(',')]
def strip_q(x):
# Strip quotes around strings if students have entered them
stripped_ans = []
for item in x:
if item[0] == "'" and item[-1]=="'":
item = item.strip("'")
elif item[0] == '"' and item[-1] == '"':
item = item.strip('"')
stripped_ans.append(item)
return stripped_ans
return strip_q(expect) == strip_q(ans)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 110, in safe_exec
raise SafeExecException(emsg)
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://MITx/100/problem/cfn_problem: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
3) ERROR: test_check_function_reset (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 880 in test_check_function_reset
self._check_ireset(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 849 in _check_ireset
respdata = json.loads(resp.content)
/usr/lib/python2.7/json/__init__.py line 326 in loads
return _default_decoder.decode(s)
/usr/lib/python2.7/json/decoder.py line 366 in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
/usr/lib/python2.7/json/decoder.py line 384 in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:52.632697+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/64e747713cd043a18c643e90f01dbdd8", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/64e747713cd043a18c643e90f01dbdd8"}, "time": "2014-09-17T20:10:52.665703+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:52.693576+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:52.728414+00:00", "agent": "", "page": null, "host": "testserver", "session": "c8b0e6a0234493d8115085e7c11f6cec", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=821, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 821', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_821'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 821', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_821'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_821'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_821'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_821'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_821'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'display_name': 'cfn_problem', 'data': '<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'customgrader.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='customgrader.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'cfn_problem'), data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='cfn_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1147d290>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'cfn_problem'), data='<problem><script type="loncapa/python">def test_csv(expect, ans):\n # Take out all spaces in expected answer\n expect = [i.strip(\' \') for i in str(expect).split(\',\')]\n # Take out all spaces in student solution\n ans = [i.strip(\' \') for i in str(ans).split(\',\')]\n\n def strip_q(x):\n # Strip quotes around strings if students have entered them\n stripped_ans = []\n for item in x:\n if item[0] == "\'" and item[-1]=="\'":\n item = item.strip("\'")\n elif item[0] == \'"\' and item[-1] == \'"\':\n item = item.strip(\'"\')\n stripped_ans.append(item)\n return stripped_ans\n\n return strip_q(expect) == strip_q(ans)</script><p></p><customresponse cfn="test_csv" expect="0, 1, 2, 3, 4, 5, \'Outside of loop\', 6"><textline/></customresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:52.847786+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-cfn_problem_2_1\": [\"Reading my code I see. I hope you like it :)\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.capa_problem: ERROR: Error while execing script code: def test_csv(expect, ans):
# Take out all spaces in expected answer
expect = [i.strip(' ') for i in str(expect).split(',')]
# Take out all spaces in student solution
ans = [i.strip(' ') for i in str(ans).split(',')]
def strip_q(x):
# Strip quotes around strings if students have entered them
stripped_ans = []
for item in x:
if item[0] == "'" and item[-1]=="'":
item = item.strip("'")
elif item[0] == '"' and item[-1] == '"':
item = item.strip('"')
stripped_ans.append(item)
return stripped_ans
return strip_q(expect) == strip_q(ans)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 110, in safe_exec
raise SafeExecException(emsg)
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://MITx/100/problem/cfn_problem: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_reset", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_reset"}, "time": "2014-09-17T20:10:52.882053+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.capa_problem: ERROR: Error while execing script code: def test_csv(expect, ans):
# Take out all spaces in expected answer
expect = [i.strip(' ') for i in str(expect).split(',')]
# Take out all spaces in student solution
ans = [i.strip(' ') for i in str(ans).split(',')]
def strip_q(x):
# Strip quotes around strings if students have entered them
stripped_ans = []
for item in x:
if item[0] == "'" and item[-1]=="'":
item = item.strip("'")
elif item[0] == '"' and item[-1] == '"':
item = item.strip('"')
stripped_ans.append(item)
return stripped_ans
return strip_q(expect) == strip_q(ans)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 110, in safe_exec
raise SafeExecException(emsg)
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://MITx/100/problem/cfn_problem: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_cfn_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:52.910819+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-cfn_problem_2_1\": [\"0, 1, 2, 3, 4, 5, 'Outside of loop', 6\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.capa_problem: ERROR: Error while execing script code: def test_csv(expect, ans):
# Take out all spaces in expected answer
expect = [i.strip(' ') for i in str(expect).split(',')]
# Take out all spaces in student solution
ans = [i.strip(' ') for i in str(ans).split(',')]
def strip_q(x):
# Strip quotes around strings if students have entered them
stripped_ans = []
for item in x:
if item[0] == "'" and item[-1]=="'":
item = item.strip("'")
elif item[0] == '"' and item[-1] == '"':
item = item.strip('"')
stripped_ans.append(item)
return stripped_ans
return strip_q(expect) == strip_q(ans)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 110, in safe_exec
raise SafeExecException(emsg)
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://MITx/100/problem/cfn_problem: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
4) FAIL: test_computed_correct (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 885 in test_computed_correct
self._check_correct(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 827 in _check_correct
self.assertEqual(respdata['success'], 'correct')
AssertionError: u'Error: ' != 'correct'
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:53.258482+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/919f360204f843c9bff150d7b015f13e", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/919f360204f843c9bff150d7b015f13e"}, "time": "2014-09-17T20:10:53.287926+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:53.319534+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:53.348282+00:00", "agent": "", "page": null, "host": "testserver", "session": "34b596f556a15c7691019b364258e284", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=825, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 825', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_825'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 825', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_825'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_825'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_825'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_825'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_825'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'display_name': 'computed_answer', 'data': '<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'customgrader.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='customgrader.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'computed_answer'), data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x1160c290>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'computed_answer'), data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:53.465379+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-computed_answer_2_1\": [\"a shout in the street\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.responsetypes: DEBUG: answer_ids=['i4x-MITx-100-problem-computed_answer_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={u'i4x-MITx-100-problem-computed_answer_2_1': u'a shout in the street'}
codejail.jail_code: INFO: Executing jailed code i4x-MITx-100-problem-computed_answer_1 in /tmp/codejail-kB3515, with PID 18439
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1593, in get_score
self.execute_check_function(idset, submission)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1621, in execute_check_function
self._handle_exec_exception(err)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1755, in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x11725f38>)
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
5) FAIL: test_computed_incorrect (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 890 in test_computed_incorrect
self._check_incorrect(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 836 in _check_incorrect
self.assertEqual(respdata['success'], 'incorrect')
AssertionError: u'Error: ' != 'incorrect'
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:53.971186+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/6581bdea36964a5badf89a4dd1ac0521", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/6581bdea36964a5badf89a4dd1ac0521"}, "time": "2014-09-17T20:10:54.007324+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:54.039938+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:54.075685+00:00", "agent": "", "page": null, "host": "testserver", "session": "380854572afb846567a14d42d2a042ce", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=829, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 829', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_829'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 829', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_829'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_829'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_829'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_829'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_829'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'display_name': 'computed_answer', 'data': '<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'customgrader.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='customgrader.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'computed_answer'), data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117be990>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'computed_answer'), data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:54.201525+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-computed_answer_2_1\": [\"because we never let them in\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.responsetypes: DEBUG: answer_ids=['i4x-MITx-100-problem-computed_answer_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={u'i4x-MITx-100-problem-computed_answer_2_1': u'because we never let them in'}
codejail.jail_code: INFO: Executing jailed code i4x-MITx-100-problem-computed_answer_1 in /tmp/codejail-r66bfD, with PID 18454
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1593, in get_score
self.execute_check_function(idset, submission)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1621, in execute_check_function
self._handle_exec_exception(err)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1755, in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x118bf128>)
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
6) FAIL: test_computed_reset (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 895 in test_computed_reset
self._check_ireset(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 850 in _check_ireset
self.assertEqual(respdata['success'], 'correct')
AssertionError: u'Error: ' != 'correct'
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:54.706493+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/37444a1eb38d43b6a12663e02b20ffc0", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/37444a1eb38d43b6a12663e02b20ffc0"}, "time": "2014-09-17T20:10:54.739174+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:54.776107+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:54.812963+00:00", "agent": "", "page": null, "host": "testserver", "session": "6e45112dbc4f2d7c188b6599a4b65dd9", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=833, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 833', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_833'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 833', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_833'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_833'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_833'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_833'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_833'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'display_name': 'computed_answer', 'data': '<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'customgrader.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='customgrader.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'computed_answer'), data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='computed_answer', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x117f1c50>, boilerplate='customgrader.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'computed_answer'), data='<problem><p></p><customresponse><answer>if submission[0] == "a shout in the street":\n correct = [\'correct\']\nelse:\n correct = [\'incorrect\']</answer><textline/></customresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:54.968573+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-computed_answer_2_1\": [\"because we never let them in\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.responsetypes: DEBUG: answer_ids=['i4x-MITx-100-problem-computed_answer_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={u'i4x-MITx-100-problem-computed_answer_2_1': u'because we never let them in'}
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 110, in safe_exec
raise SafeExecException(emsg)
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1593, in get_score
self.execute_check_function(idset, submission)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1621, in execute_check_function
self._handle_exec_exception(err)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1755, in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x119e5ab8>)
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_reset", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_reset"}, "time": "2014-09-17T20:10:55.017650+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.responsetypes: DEBUG: answer_ids=['i4x-MITx-100-problem-computed_answer_2_1']
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "reset_problem_fail", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "module": {"display_name": "computed_answer"}, "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_reset"}, "time": "2014-09-17T20:10:55.039351+00:00", "ip": "127.0.0.1", "event": {"old_state": {"student_answers": {"i4x-MITx-100-problem-computed_answer_2_1": "because we never let them in"}, "seed": 1, "done": false, "correct_map": {}, "input_state": {"i4x-MITx-100-problem-computed_answer_2_1": {}}}, "failure": "not_done", "problem_id": "i4x://MITx/100/problem/computed_answer"}, "agent": "", "page": "x_module"}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_computed_answer/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:55.049317+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-computed_answer_2_1\": [\"a shout in the street\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.responsetypes: DEBUG: answer_ids=['i4x-MITx-100-problem-computed_answer_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={u'i4x-MITx-100-problem-computed_answer_2_1': u'a shout in the street'}
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 110, in safe_exec
raise SafeExecException(emsg)
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1593, in get_score
self.execute_check_function(idset, submission)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1621, in execute_check_function
self._handle_exec_exception(err)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1755, in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x11a0d170>)
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
7) FAIL: test_schematic_correct (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 855 in test_schematic_correct
self._check_correct(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 827 in _check_correct
self.assertEqual(respdata['success'], 'correct')
AssertionError: u"Error: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n" != 'correct'
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:55.423628+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/2a928354d35e4516b6cb0c76c2290727", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/2a928354d35e4516b6cb0c76c2290727"}, "time": "2014-09-17T20:10:55.452681+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:55.484210+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:55.517355+00:00", "agent": "", "page": null, "host": "testserver", "session": "bc55ce3fd6630f4e51c1e17f048b0169", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=837, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 837', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_837'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 837', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_837'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_837'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_837'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_837'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_837'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'data': '<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>', 'display_name': 'schematic_problem', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'circuitschematic.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='circuitschematic.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, boilerplate='circuitschematic.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'schematic_problem'), data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11a0f3d0>, boilerplate='circuitschematic.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'schematic_problem'), data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:55.638284+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-schematic_problem_2_1\": [\"[[\\\"transient\\\", {\\\"Z\\\": [[4e-07, 2.8], [9e-07, 2.8], [1.4e-06, 2.8], [1.9e-06, 2.8], [2.4e-06, 2.8], [2.9e-06, 0.2], [3.4e-06, 0.2], [3.9e-06, 0.2]]}]]\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
codejail.jail_code: INFO: Executing jailed code i4x-MITx-100-problem-schematic_problem_1 in /tmp/codejail-0_XNyz, with PID 18478
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 2507, in get_score
raise ResponseError(msg)
ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
8) FAIL: test_schematic_incorrect (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 860 in test_schematic_incorrect
self._check_incorrect(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 836 in _check_incorrect
self.assertEqual(respdata['success'], 'incorrect')
AssertionError: u"Error: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n" != 'incorrect'
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:56.083448+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/0f976117be1a4352bd4436fe6e66770a", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/0f976117be1a4352bd4436fe6e66770a"}, "time": "2014-09-17T20:10:56.116214+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:56.152739+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:56.201555+00:00", "agent": "", "page": null, "host": "testserver", "session": "af3be6eb1e1a76890f4fc7a19b042393", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=841, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 841', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_841'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 841', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_841'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_841'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_841'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_841'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_841'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'data': '<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>', 'display_name': 'schematic_problem', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'circuitschematic.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='circuitschematic.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, boilerplate='circuitschematic.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'schematic_problem'), data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b47390>, boilerplate='circuitschematic.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'schematic_problem'), data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:56.342043+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-schematic_problem_2_1\": [\"[[\\\"transient\\\", {\\\"Z\\\": [[4e-07, 2.8], [9e-07, 0.0], [1.4e-06, 2.8], [1.9e-06, 2.8], [2.4e-06, 2.8], [2.9e-06, 0.2], [3.4e-06, 0.2], [3.9e-06, 0.2]]}]]\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
codejail.jail_code: INFO: Executing jailed code i4x-MITx-100-problem-schematic_problem_1 in /tmp/codejail-GgSouP, with PID 18495
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 2507, in get_score
raise ResponseError(msg)
ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
9) FAIL: test_schematic_reset (courseware.tests.test_submitting_problems.TestPythonGradedResponse)
Traceback (most recent call last):
lms/djangoapps/courseware/tests/test_submitting_problems.py line 865 in test_schematic_reset
self._check_ireset(name)
lms/djangoapps/courseware/tests/test_submitting_problems.py line 850 in _check_ireset
self.assertEqual(respdata['success'], 'correct')
AssertionError: u"Error: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n" != 'correct'
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'display_name': 'test_course', 'number': '100'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, org='MITx', display_name='test_course', number='100')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, org='MITx', display_name='test_course', number='100')
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:10:56.761253+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"u1\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - u1 ([email protected])
audit: INFO: Login success on new account creation - u1
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/activate/6792a85ddd174e7e83e62a6370258566", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/activate/6792a85ddd174e7e83e62a6370258566"}, "time": "2014-09-17T20:10:56.791415+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/change_enrollment", "context": {"user_id": 1, "org_id": "", "course_id": "", "path": "/change_enrollment"}, "time": "2014-09-17T20:10:56.825086+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"course_id\": [\"MITx/100/test_course\"], \"enrollment_action\": [\"enroll\"]}, \"GET\": {}}", "agent": "", "page": null}
tracking: INFO: {"username": "u1", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-09-17T20:10:56.859627+00:00", "agent": "", "page": null, "host": "testserver", "session": "cbe215f4e4bd5375aacf161b9e0aa551", "context": {"user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/change_enrollment"}, "ip": "127.0.0.1", "event": {"course_id": "MITx/100/test_course", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"}
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttributeSequence object at 0x4e5afd0>>, parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttributeSequence: Computing next value of <function display_name at 0x4eb2398> for seq=845, obj=<LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 845', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_845'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='chapter 845', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, location=BlockUsageLocator(SlashSeparatedCourseKey('MITx', '100', 'test_course', None, None), 'chapter', 'chapter_845'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'section', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_845'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_845'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_845'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='section', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'chapter', u'chapter_845'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'sequential', 'section'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'data': '<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>', 'display_name': 'schematic_problem', 'parent_location': BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), 'boilerplate': 'circuitschematic.yaml'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), boilerplate='circuitschematic.yaml', modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, parent=None, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, boilerplate='circuitschematic.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'schematic_problem'), data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='schematic_problem', parent_location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), u'sequential', u'section'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x11b2a290>, boilerplate='circuitschematic.yaml', location=BlockUsageLocator(CourseLocator(u'MITx', u'100', 'test_course', None, None), 'problem', 'schematic_problem'), data='<problem><p></p><schematicresponse><answer type="loncapa/python"># for a schematic response, submission[i] is the json representation\n# of the diagram and analysis results for the i-th schematic tag\n\ndef get_tran(json,signal):\n for element in json:\n if element[0] == \'transient\':\n return element[1].get(signal,[])\n return []\n\ndef get_value(at,output):\n for (t,v) in output:\n if at == t: return v\n return None\n\noutput = get_tran(submission[0],\'Z\')\nokay = True\n\n# output should be 1, 1, 1, 1, 1, 0, 0, 0\nif get_value(0.0000004, output) &lt; 2.7: okay = False;\nif get_value(0.0000009, output) &lt; 2.7: okay = False;\nif get_value(0.0000014, output) &lt; 2.7: okay = False;\nif get_value(0.0000019, output) &lt; 2.7: okay = False;\nif get_value(0.0000024, output) &lt; 2.7: okay = False;\nif get_value(0.0000029, output) &gt; 0.25: okay = False;\nif get_value(0.0000034, output) &gt; 0.25: okay = False;\nif get_value(0.0000039, output) &gt; 0.25: okay = False;\n\ncorrect = [\'correct\' if okay else \'incorrect\']</answer><schematic/></schematicresponse></problem>')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:56.977690+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-schematic_problem_2_1\": [\"[[\\\"transient\\\", {\\\"Z\\\": [[4e-07, 2.8], [9e-07, 0.0], [1.4e-06, 2.8], [1.9e-06, 2.8], [2.4e-06, 2.8], [2.9e-06, 0.2], [3.4e-06, 0.2], [3.9e-06, 0.2]]}]]\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 2507, in get_score
raise ResponseError(msg)
ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_reset", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_reset"}, "time": "2014-09-17T20:10:57.017289+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "reset_problem_fail", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "module": {"display_name": "schematic_problem"}, "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_reset"}, "time": "2014-09-17T20:10:57.036867+00:00", "ip": "127.0.0.1", "event": {"old_state": {"student_answers": {"i4x-MITx-100-problem-schematic_problem_2_1": "[[\"transient\", {\"Z\": [[4e-07, 2.8], [9e-07, 0.0], [1.4e-06, 2.8], [1.9e-06, 2.8], [2.4e-06, 2.8], [2.9e-06, 0.2], [3.4e-06, 0.2], [3.9e-06, 0.2]]}]]"}, "seed": 1, "done": false, "correct_map": {}, "input_state": {"i4x-MITx-100-problem-schematic_problem_2_1": {}}}, "failure": "not_done", "problem_id": "i4x://MITx/100/problem/schematic_problem"}, "agent": "", "page": "x_module"}
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 1, "org_id": "MITx", "course_id": "MITx/100/test_course", "path": "/courses/MITx/100/test_course/xblock/i4x:;_;_MITx;_100;_problem;_schematic_problem/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:10:57.044910+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-MITx-100-problem-schematic_problem_2_1\": [\"[[\\\"transient\\\", {\\\"Z\\\": [[4e-07, 2.8], [9e-07, 2.8], [1.4e-06, 2.8], [1.9e-06, 2.8], [2.4e-06, 2.8], [2.9e-06, 0.2], [3.4e-06, 0.2], [3.9e-06, 0.2]]}]]\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 2507, in get_score
raise ResponseError(msg)
ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
10) FAIL: test_rescoring_randomized_problem (instructor_task.tests.test_integration.TestRescoringTask)
Traceback (most recent call last):
lms/djangoapps/instructor_task/tests/test_integration.py line 332 in test_rescoring_randomized_problem
self.check_state(username, descriptor, 0, 1, 1)
lms/djangoapps/instructor_task/tests/test_integration.py line 138 in check_state
self.assertEqual(module.grade, expected_score)
AssertionError: None != 0
-------------------- >> begin captured logging << --------------------
root: DEBUG: Using MongoDB for static content serving at host=localhost port=27017 db=xcontent
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014
xmodule.course_module: DEBUG: Loading grading policy from policies/2014/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from 2014
xmodule.modulestore.xml: DEBUG: ========> Starting course import from 2014_Uni
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional
xmodule.modulestore.xml: DEBUG: ========> Starting course import from conditional_and_poll
xmodule.modulestore.xml: DEBUG: ========> Starting course import from course_info_updates
xmodule.modulestore.xml: DEBUG: ========> Starting course import from dot-underscore
xmodule.modulestore.xml: DEBUG: ========> Starting course import from embedded_python
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graded
xmodule.course_module: DEBUG: Loading grading policy from grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from graded
xmodule.modulestore.xml: DEBUG: ========> Starting course import from graphic_slider_tool
xmodule.modulestore.xml: DEBUG: ========> Starting course import from import_draft_order
xmodule.modulestore.xml: DEBUG: ========> Starting course import from manual-testing-complete
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended
xmodule.modulestore.xml: DEBUG: ========> Starting course import from open_ended_nopath
xmodule.modulestore.xml: WARNING: Error loading from xml. Unable to load file contents at path chapter/Overview.xml for item i4x://edX/open_ended_nopath/chapter/Overview: Resource not found: /chapter/Overview.xml
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from open_ended_nopath
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from pure_xblock_public
xmodule.modulestore.xml: DEBUG: ========> Starting course import from self_assessment
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from simple
xmodule.modulestore.xml: DEBUG: ========> Starting course import from simple_with_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module
xmodule.modulestore.xml: DEBUG: ========> Starting course import from split_test_module_draft
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_about_blob_end_date
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_about_blob_end_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_end
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from test_end
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_exam_registration
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_import_course_2
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_start_date
xmodule.modulestore.xml: DEBUG: ========> Starting course import from test_unicode
xmodule.modulestore.xml: DEBUG: ========> Starting course import from tilde
xmodule.modulestore.xml: DEBUG: ========> Starting course import from toy
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from toy
xmodule.modulestore.xml: DEBUG: ========> Starting course import from two_toys
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.course_module: DEBUG: Loading grading policy from policies/TT_2012_Fall/grading_policy.json
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
root: WARNING: Deprecated. JSONifiable fields should derive from JSONField
xmodule.modulestore.xml: DEBUG: ========> Done with course import from two_toys
xmodule.modulestore.xml: DEBUG: ========> Starting course import from word_cloud
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'edx', 'display_name': 'test_course', 'number': '1.23x'})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, org='edx', display_name='test_course', number='1.23x')
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, org='edx', display_name='test_course', number='1.23x')
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, org='edx', display_name='test_course', number='1.23x')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'display_name': 'Problem', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'course', 'test_course')})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Problem', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>)
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Problem', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, location=BlockUsageLocator(SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'chapter', 'Problem'))
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Problem', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'course', 'test_course'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, location=BlockUsageLocator(SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'chapter', 'Problem'))
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'Problem', 'parent_location': BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'chapter', u'Problem'), 'metadata': {'graded': True, 'format': 'Homework'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Problem', parent_location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'chapter', u'Problem'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Problem', parent_location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'chapter', u'Problem'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), 'sequential', 'Problem'), metadata={'graded': True, 'format': 'Homework'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Problem', parent_location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'chapter', u'Problem'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), 'sequential', 'Problem'), metadata={'graded': True, 'format': 'Homework'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={'username': 'instructor', 'is_staff': True, 'email': '[email protected]'})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username='instructor', first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x4ffe3d0>>, last_name='Test', is_active=True, is_superuser=False, is_staff=True, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x4eb1120> for seq=5226
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username='instructor', first_name=u'Robot5226', last_name='Test', is_active=True, is_superuser=False, is_staff=True, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username='instructor', first_name=u'Robot5226', last_name='Test', is_active=True, is_superuser=False, is_staff=True, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(instructor, True, None)
factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: instructor>.set_password(test)
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(instructor, True, None)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: instructor>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4ffe2d0>>, mailing_address=None, level_of_education=None, user=<User: instructor>, gender=u'm', goals=u'World domination')
factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x4ea6f90> on <LazyStub for student.tests.factories.UserProfileFactory>
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot5226 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: instructor>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot5226 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: instructor>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.CourseEnrollmentFactory(extra={'course_id': SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'user': <User: instructor>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: instructor>)
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: instructor>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: instructor>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={'username': 'u1', 'is_staff': False, 'email': '[email protected]'})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username='u1', first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x4ffe3d0>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x4eb1120> for seq=5227
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username='u1', first_name=u'Robot5227', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username='u1', first_name=u'Robot5227', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(u1, True, None)
factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: u1>.set_password(test)
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(u1, True, None)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: u1>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4ffe2d0>>, mailing_address=None, level_of_education=None, user=<User: u1>, gender=u'm', goals=u'World domination')
factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x4ea6f90> on <LazyStub for student.tests.factories.UserProfileFactory>
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot5227 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u1>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot5227 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u1>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.CourseEnrollmentFactory(extra={'course_id': SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'user': <User: u1>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u1>)
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u1>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u1>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={'username': 'u2', 'is_staff': False, 'email': '[email protected]'})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username='u2', first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x4ffe3d0>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x4eb1120> for seq=5228
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username='u2', first_name=u'Robot5228', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username='u2', first_name=u'Robot5228', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(u2, True, None)
factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: u2>.set_password(test)
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(u2, True, None)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: u2>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4ffe2d0>>, mailing_address=None, level_of_education=None, user=<User: u2>, gender=u'm', goals=u'World domination')
factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x4ea6f90> on <LazyStub for student.tests.factories.UserProfileFactory>
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot5228 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u2>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot5228 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u2>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.CourseEnrollmentFactory(extra={'course_id': SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'user': <User: u2>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u2>)
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u2>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u2>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={'username': 'u3', 'is_staff': False, 'email': '[email protected]'})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username='u3', first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x4ffe3d0>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x4eb1120> for seq=5229
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username='u3', first_name=u'Robot5229', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username='u3', first_name=u'Robot5229', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(u3, True, None)
factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: u3>.set_password(test)
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(u3, True, None)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: u3>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4ffe2d0>>, mailing_address=None, level_of_education=None, user=<User: u3>, gender=u'm', goals=u'World domination')
factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x4ea6f90> on <LazyStub for student.tests.factories.UserProfileFactory>
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot5229 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u3>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot5229 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u3>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.CourseEnrollmentFactory(extra={'course_id': SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'user': <User: u3>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u3>)
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u3>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u3>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={'username': 'u4', 'is_staff': False, 'email': '[email protected]'})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username='u4', first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x4ffe3d0>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x4eb1120> for seq=5230
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username='u4', first_name=u'Robot5230', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username='u4', first_name=u'Robot5230', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email='[email protected]', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>))
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(u4, True, None)
factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: u4>.set_password(test)
factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(u4, True, None)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: u4>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4ffe2d0>>, mailing_address=None, level_of_education=None, user=<User: u4>, gender=u'm', goals=u'World domination')
factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x4ea6f90> on <LazyStub for student.tests.factories.UserProfileFactory>
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot5230 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u4>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot5230 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: u4>)
factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.CourseEnrollmentFactory(extra={'course_id': SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), 'user': <User: u4>})
factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u4>)
factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u4>)
factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.CourseEnrollmentFactory(course_id=SlashSeparatedCourseKey('edx', '1.23x', 'test_course', None, None), user=<User: u4>)
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/logout", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/logout"}, "time": "2014-09-17T20:17:06.542008+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Logout - AnonymousUser
tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/create_account", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/create_account"}, "time": "2014-09-17T20:17:06.573044+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"username\": [\"test\"], \"name\": [\"username\"], \"honor_code\": [\"true\"], \"terms_of_service\": [\"true\"], \"password\": \"********\", \"email\": [\"[email protected]\"]}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: Login success - test ([email protected])
audit: INFO: Login success on new account creation - test
tracking: INFO: {"username": "test", "host": "testserver", "event_source": "server", "event_type": "/activate/44622a5475b9432eb98875ec99a0c6c2", "context": {"user_id": 6, "org_id": "", "course_id": "", "path": "/activate/44622a5475b9432eb98875ec99a0c6c2"}, "time": "2014-09-17T20:17:06.613597+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
audit: INFO: User test w/o external auth attempting login
audit: INFO: Login success - test ([email protected])
factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'problem', 'data': '<problem><script type="loncapa/python">\ndef check_func(expect, answer_given):\n expected = str(random.randint(0, 100))\n return {\'ok\': answer_given == expected, \'msg\': expected}\n</script><p></p><customresponse cfn="check_func" expect="42"><textline/></customresponse></problem>', 'display_name': 'H1P1', 'parent_location': BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'sequential', u'Problem'), 'metadata': {'rerandomize': 'per_student'}})
factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'>
factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='H1P1', parent_location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'sequential', u'Problem'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e5a510>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x4e685d0>>, data='<problem><script type="loncapa/python">\ndef check_func(expect, answer_given):\n expected = str(random.randint(0, 100))\n return {\'ok\': answer_given == expected, \'msg\': expected}\n</script><p></p><customresponse cfn="check_func" expect="42"><textline/></customresponse></problem>', metadata={'rerandomize': 'per_student'})
factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x4eb22a8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x4eb2410> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory>
factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='H1P1', parent_location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'sequential', u'Problem'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), 'problem', 'H1P1'), data='<problem><script type="loncapa/python">\ndef check_func(expect, answer_given):\n expected = str(random.randint(0, 100))\n return {\'ok\': answer_given == expected, \'msg\': expected}\n</script><p></p><customresponse cfn="check_func" expect="42"><textline/></customresponse></problem>', metadata={'rerandomize': 'per_student'})
factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='problem', display_name='H1P1', parent_location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), u'sequential', u'Problem'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x20cd7990>, location=BlockUsageLocator(CourseLocator(u'edx', u'1.23x', 'test_course', None, None), 'problem', 'H1P1'), data='<problem><script type="loncapa/python">\ndef check_func(expect, answer_given):\n expected = str(random.randint(0, 100))\n return {\'ok\': answer_given == expected, \'msg\': expected}\n</script><p></p><customresponse cfn="check_func" expect="42"><textline/></customresponse></problem>', metadata={'rerandomize': 'per_student'})
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
audit: INFO: User u1 w/o external auth attempting login
audit: INFO: Login success - u1 ([email protected])
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/edx/1.23x/test_course/xblock/i4x:;_;_edx;_1.23x;_problem;_H1P1/handler/xmodule_handler/problem_get", "context": {"course_user_tags": {}, "user_id": 2, "org_id": "edx", "course_id": "edx/1.23x/test_course", "path": "/courses/edx/1.23x/test_course/xblock/i4x:;_;_edx;_1.23x;_problem;_H1P1/handler/xmodule_handler/problem_get"}, "time": "2014-09-17T20:17:06.808424+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
expected = str(random.randint(0, 100))
return {'ok': answer_given == expected, 'msg': expected}
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 126, in safe_exec
python_path=python_path, slug=slug,
File "/edx/app/edxapp/venvs/edxapp/src/codejail/codejail/safe_exec.py", line 137, in safe_exec
"python", code=jailed_code, stdin=stdin, files=files, slug=slug,
File "/edx/app/edxapp/venvs/edxapp/src/codejail/codejail/jail_code.py", line 208, in jail_code
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1143, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://edx/1.23x/problem/H1P1: Error while executing script code: [Errno 12] Cannot allocate memory
tracking: INFO: {"username": "u1", "host": "testserver", "event_source": "server", "event_type": "/courses/edx/1.23x/test_course/xblock/i4x:;_;_edx;_1.23x;_problem;_H1P1/handler/xmodule_handler/problem_check", "context": {"course_user_tags": {}, "user_id": 2, "org_id": "edx", "course_id": "edx/1.23x/test_course", "path": "/courses/edx/1.23x/test_course/xblock/i4x:;_;_edx;_1.23x;_problem;_H1P1/handler/xmodule_handler/problem_check"}, "time": "2014-09-17T20:17:06.914880+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"input_i4x-edx-1_23x-problem-H1P1_2_1\": [\"1000\"], \"input_i4x-edx-1_23x-problem-H1P1_3_1\": [\"1000\"]}, \"GET\": {}}", "agent": "", "page": null}
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
expected = str(random.randint(0, 100))
return {'ok': answer_given == expected, 'msg': expected}
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 126, in safe_exec
python_path=python_path, slug=slug,
File "/edx/app/edxapp/venvs/edxapp/src/codejail/codejail/safe_exec.py", line 137, in safe_exec
"python", code=jailed_code, stdin=stdin, files=files, slug=slug,
File "/edx/app/edxapp/venvs/edxapp/src/codejail/codejail/jail_code.py", line 208, in jail_code
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1143, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
xmodule.x_module: ERROR: Error creating xmodule
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 927, in _xmodule
field_data=self._field_data,
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 482, in construct_xblock_from_class
*args, **kwargs
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_module.py", line 45, in __init__
super(CapaModule, self).__init__(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 230, in __init__
self.lcp = self.new_lcp(self.get_state_for_lcp())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 317, in new_lcp
capa_system=capa_system,
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 168, in __init__
self.context = self._extract_context(self.tree)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 662, in _extract_context
raise responsetypes.LoncapaProblemError(msg)
Exception: cannot create LoncapaProblem i4x://edx/1.23x/problem/H1P1: Error while executing script code: [Errno 12] Cannot allocate memory
stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator')
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
2103 tests run in 824.7 seconds.
7 FAILED, 3 errors, 14 skipped (2079 tests passed)
Destroying test database for alias 'default'...
Cleaning up after lms
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Dropping test db test_xlog
Setting up for common/lib/symmath
python -m coverage run --rcfile=common/lib/symmath/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/symmath/noseids common/lib/symmath --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/symmath/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/symmath
========================================
.........
-----------------------------------------------------------------------------
9 tests run in 2.1 seconds (9 tests passed)
Cleaning up after common/lib/symmath
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for common/lib/chem
python -m coverage run --rcfile=common/lib/chem/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/chem/noseids common/lib/chem --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/chem/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/chem
========================================
.............................................................................
.........
-----------------------------------------------------------------------------
86 tests run in 3.9 seconds (86 tests passed)
Cleaning up after common/lib/chem
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for common/lib/sandbox-packages
python -m coverage run --rcfile=common/lib/sandbox-packages/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/sandbox-packages/noseids common/lib/sandbox-packages --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/sandbox-packages/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/sandbox-packages
========================================
.......................................................
-----------------------------------------------------------------------------
55 tests run in 0.1 seconds (55 tests passed)
Cleaning up after common/lib/sandbox-packages
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for common/lib/capa
python -m coverage run --rcfile=common/lib/capa/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/capa/noseids common/lib/capa --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/capa/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/capa
========================================
..XXXXFXXXFXXX.F..................................X.XX.......................
.............................................................................
.....X........XXXXXXXXXXFXXX.X.....X....................X........XX.......X.X
..............................................
-----------------------------------------------------------------------------
1) ERROR: test_802x (test_safe_exec.TestRealProblems)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 302 in test_802x
safe_exec(code, g)
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
2) ERROR: test_assumed_imports (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 32 in test_assumed_imports
safe_exec("a = int(math.pi)", g)
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
3) ERROR: test_division (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 26 in test_division
safe_exec("a = 1/2", g)
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
4) ERROR: test_python_lib (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 65 in test_python_lib
g, python_path=[pylib]
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
5) FAIL: test_raising_exceptions (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 72 in test_raising_exceptions
self.assertIn("ZeroDivisionError", cm.exception.message)
AssertionError: 'ZeroDivisionError' not found in "Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n"
-----------------------------------------------------------------------------
6) ERROR: test_random_is_still_importable (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 57 in test_random_is_still_importable
g, random_seed=17)
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
7) ERROR: test_random_seeding (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 41 in test_random_seeding
safe_exec("rnums = [random.randint(0, 999) for _ in xrange(100)]", g)
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
8) ERROR: test_set_values (test_safe_exec.TestSafeExec)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 20 in test_set_values
safe_exec("a = 17", g)
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
9) FAIL: test_cache_exceptions (test_safe_exec.TestSafeExecCaching)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 152 in test_cache_exceptions
self.assertIn("ZeroDivisionError", cache_exc_msg)
AssertionError: 'ZeroDivisionError' not found in "Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n"
-----------------------------------------------------------------------------
10) ERROR: test_cache_large_code_chunk (test_safe_exec.TestSafeExecCaching)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 137 in test_cache_large_code_chunk
safe_exec(code, g, cache=DictCache(cache))
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
11) ERROR: test_cache_miss_then_hit (test_safe_exec.TestSafeExecCaching)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 118 in test_cache_miss_then_hit
safe_exec("a = int(math.pi)", g, cache=DictCache(cache))
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
12) ERROR: test_unicode_submission (test_safe_exec.TestSafeExecCaching)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 175 in test_unicode_submission
safe_exec(code_with_unichr, {}, cache=DictCache({}))
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py line 184 in wrapped
result = func(*args, **kwargs)
common/lib/capa/capa/safe_exec/safe_exec.py line 141 in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-----------------------------------------------------------------------------
13) FAIL: test_cant_do_something_forbidden (test_safe_exec.TestSafeOrNot)
Traceback (most recent call last):
common/lib/capa/capa/safe_exec/tests/test_safe_exec.py line 84 in test_cant_do_something_forbidden
self.assertIn("OSError", cm.exception.message)
AssertionError: 'OSError' not found in "Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n"
-----------------------------------------------------------------------------
14) ERROR: test_render_response_with_overall_msg (capa.tests.test_html_render.CapaHtmlRenderTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_html_render.py line 212 in test_render_response_with_overall_msg
problem = new_loncapa_problem(xml_str)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-UNjYtt, with PID 28722
capa.capa_problem: ERROR: Error while execing script code:
def check_func(*args):
msg = '<p>Test message 1<br /></p><p>Test message 2</p>'
return {'overall_message': msg,
'input_list': [ {'ok': True, 'msg': '' } ] }
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
15) ERROR: test_render_script (capa.tests.test_html_render.CapaHtmlRenderTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_html_render.py line 103 in test_render_script
problem = new_loncapa_problem(xml_str)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-mVBpEr, with PID 28728
capa.capa_problem: ERROR: Error while execing script code: test=True
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
16) ERROR: test_substitute_python_vars (capa.tests.test_html_render.CapaHtmlRenderTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_html_render.py line 247 in test_substitute_python_vars
problem = new_loncapa_problem(xml_str)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-tO6ITV, with PID 28734
capa.capa_problem: ERROR: Error while execing script code: test="TEST"
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
17) ERROR: test_radio_grades (capa.tests.test_responsetypes.ChoiceTextResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 2074 in test_radio_grades
test_problem = self._make_problem(test_choices, 'radiotextgroup', test_script)
common/lib/capa/capa/tests/test_responsetypes.py line 1938 in _make_problem
script=script
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-HqbRMG, with PID 28740
capa.capa_problem: ERROR: Error while execing script code: computed_response = math.sqrt(4)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
18) ERROR: test_check_function_randomization (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1634 in test_check_function_randomization
problem = self.build_problem(script=script, cfn="check_func", expect="42")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-ZMURzs, with PID 28746
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
return {'ok': True, 'msg': str(random.randint(0, 1e9)) }
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
19) ERROR: test_function_code_multiple_input_no_msg (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1442 in test_function_code_multiple_input_no_msg
expect="42", num_inputs=2)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-JVAhL1, with PID 28752
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
return (answer_given[0] == expect and
answer_given[1] == expect)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
20) ERROR: test_function_code_multiple_inputs (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1489 in test_function_code_multiple_inputs
cfn="check_func", num_inputs=3)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-axzzIJ, with PID 28758
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
check1 = (int(answer_given[0]) == 1)
check2 = (int(answer_given[1]) == 2)
check3 = (int(answer_given[2]) == 3)
return {'overall_message': 'Overall message',
'input_list': [
{'ok': check1, 'msg': 'Feedback 1'},
{'ok': check2, 'msg': 'Feedback 2'},
{'ok': check3, 'msg': 'Feedback 3'} ] }
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
21) ERROR: test_function_code_single_input (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1407 in test_function_code_single_input
problem = self.build_problem(script=script, cfn="check_func", expect="42")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-LmV00X, with PID 28764
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
return {'ok': answer_given == expect, 'msg': 'Message text'}
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
22) ERROR: test_function_code_with_extra_args (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1515 in test_function_code_with_extra_args
problem = self.build_problem(script=script, cfn="check_func", expect="42", options="xyzzy", cfn_extra_args="options dynamath")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-1NhLPj, with PID 28770
capa.capa_problem: ERROR: Error while execing script code: def check_func(expect, answer_given, options, dynamath):
assert options == "xyzzy", "Options was %r" % options
return {'ok': answer_given == expect, 'msg': 'Message text'}
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
23) ERROR: test_inline_code (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1355 in test_inline_code
self.assert_grade(problem, '42', 'correct')
common/lib/capa/capa/tests/test_responsetypes.py line 47 in assert_grade
correct_map = problem.grade_answers(input_dict)
common/lib/capa/capa/capa_problem.py line 330 in grade_answers
return self._grade_answers(answers)
common/lib/capa/capa/capa_problem.py line 392 in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
common/lib/capa/capa/responsetypes.py line 247 in evaluate_answers
new_cmap = self.get_score(student_answers)
common/lib/capa/capa/responsetypes.py line 1593 in get_score
self.execute_check_function(idset, submission)
common/lib/capa/capa/responsetypes.py line 1621 in execute_check_function
self._handle_exec_exception(err)
common/lib/capa/capa/responsetypes.py line 1755 in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x4c28518>)
-------------------- >> begin captured logging << --------------------
capa.responsetypes: DEBUG: answer_ids=['1_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={'1_2_1': '42'}
codejail.jail_code: INFO: Executing jailed code 1_1 in /tmp/codejail-nk3i8x, with PID 28776
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
24) ERROR: test_inline_message (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1370 in test_inline_message
correctmap = problem.grade_answers(input_dict)
common/lib/capa/capa/capa_problem.py line 330 in grade_answers
return self._grade_answers(answers)
common/lib/capa/capa/capa_problem.py line 392 in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
common/lib/capa/capa/responsetypes.py line 247 in evaluate_answers
new_cmap = self.get_score(student_answers)
common/lib/capa/capa/responsetypes.py line 1593 in get_score
self.execute_check_function(idset, submission)
common/lib/capa/capa/responsetypes.py line 1621 in execute_check_function
self._handle_exec_exception(err)
common/lib/capa/capa/responsetypes.py line 1755 in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x4d0de60>)
-------------------- >> begin captured logging << --------------------
capa.responsetypes: DEBUG: answer_ids=['1_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={'1_2_1': '0'}
codejail.jail_code: INFO: Executing jailed code 1_1 in /tmp/codejail-Cb11B_, with PID 28782
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
25) ERROR: test_inline_randomization (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1386 in test_inline_randomization
correctmap = problem.grade_answers(input_dict)
common/lib/capa/capa/capa_problem.py line 330 in grade_answers
return self._grade_answers(answers)
common/lib/capa/capa/capa_problem.py line 392 in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
common/lib/capa/capa/responsetypes.py line 247 in evaluate_answers
new_cmap = self.get_score(student_answers)
common/lib/capa/capa/responsetypes.py line 1593 in get_score
self.execute_check_function(idset, submission)
common/lib/capa/capa/responsetypes.py line 1621 in execute_check_function
self._handle_exec_exception(err)
common/lib/capa/capa/responsetypes.py line 1755 in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x4d99638>)
-------------------- >> begin captured logging << --------------------
capa.responsetypes: DEBUG: answer_ids=['1_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={'1_2_1': '0'}
codejail.jail_code: INFO: Executing jailed code 1_1 in /tmp/codejail-hPmmT7, with PID 28788
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
26) ERROR: test_invalid_dict_exception (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1613 in test_invalid_dict_exception
problem = self.build_problem(script=script, cfn="check_func")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-gpsIzR, with PID 28794
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
return {'invalid': 'test'}
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
27) ERROR: test_module_imports_function (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1705 in test_module_imports_function
problem = self.build_problem(script=script, cfn="check_func")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-7xRyQt, with PID 28800
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
assert('random' in globals())
return True
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
28) FAIL: test_module_imports_inline (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1684 in test_module_imports_inline
self.fail("Could not use name '{0}s' in custom response".format(module_name))
AssertionError: Could not use name 'randoms' in custom response
-------------------- >> begin captured logging << --------------------
capa.responsetypes: DEBUG: answer_ids=['1_2_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={'1_2_1': '42'}
codejail.jail_code: INFO: Executing jailed code 1_1 in /tmp/codejail-dK136R, with PID 28806
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
29) ERROR: test_multiple_inputs_return_one_status (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1558 in test_multiple_inputs_return_one_status
cfn="check_func", num_inputs=3)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-blbI62, with PID 28812
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
check1 = (int(answer_given[0]) == 1)
check2 = (int(answer_given[1]) == 2)
check3 = (int(answer_given[2]) == 3)
return {'ok': (check1 and check2 and check3),
'msg': 'Message text'}
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
30) ERROR: test_random_isnt_none (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1655 in test_random_isnt_none
problem = self.build_problem(script=script)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-k2o5WQ, with PID 28818
capa.capa_problem: ERROR: Error while execing script code:
random.seed(10)
num = random.randint(0, 1e9)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
31) ERROR: test_script_exception_function (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1589 in test_script_exception_function
problem = self.build_problem(script=script, cfn="check_func")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-9FBr37, with PID 28824
capa.capa_problem: ERROR: Error while execing script code:
def check_func(expect, answer_given):
raise Exception("Test")
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
32) ERROR: test_setup_randomization (capa.tests.test_responsetypes.CustomResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1624 in test_setup_randomization
problem = self.build_problem(script=script)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-lUzjjH, with PID 28835
capa.capa_problem: ERROR: Error while execing script code:
num = str(random.randint(0, 1e9))
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
33) ERROR: test_script (capa.tests.test_responsetypes.FormulaResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 427 in test_script
script=script)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-2HiKaH, with PID 28842
capa.capa_problem: ERROR: Error while execing script code: calculated_ans = 'x+x'
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
34) ERROR: test_grade_with_script (capa.tests.test_responsetypes.NumericalResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1219 in test_grade_with_script
problem = self.build_problem(answer="$computed_response", script=script_text)
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-iT1JZm, with PID 28863
capa.capa_problem: ERROR: Error while execing script code: computed_response = math.sqrt(4)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
35) ERROR: test_check_function_randomization (capa.tests.test_responsetypes.SchematicResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1751 in test_check_function_randomization
correct_map = problem.grade_answers(input_dict)
common/lib/capa/capa/capa_problem.py line 330 in grade_answers
return self._grade_answers(answers)
common/lib/capa/capa/capa_problem.py line 392 in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
common/lib/capa/capa/responsetypes.py line 247 in evaluate_answers
new_cmap = self.get_score(student_answers)
common/lib/capa/capa/responsetypes.py line 2507 in get_score
raise ResponseError(msg)
ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1_1 in /tmp/codejail-2CxsiV, with PID 28869
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
36) ERROR: test_grade (capa.tests.test_responsetypes.SchematicResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 1737 in test_grade
correct_map = problem.grade_answers(input_dict)
common/lib/capa/capa/capa_problem.py line 330 in grade_answers
return self._grade_answers(answers)
common/lib/capa/capa/capa_problem.py line 392 in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
common/lib/capa/capa/responsetypes.py line 247 in evaluate_answers
new_cmap = self.get_score(student_answers)
common/lib/capa/capa/responsetypes.py line 2507 in get_score
raise ResponseError(msg)
ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1_1 in /tmp/codejail-kliPhv, with PID 28875
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
37) ERROR: test_computed_hints (capa.tests.test_responsetypes.StringResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 827 in test_computed_hints
""")
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-jI39yt, with PID 28887
capa.capa_problem: ERROR: Error while execing script code:
def gimme_a_hint(answer_ids, student_answers, new_cmap, old_cmap):
aid = answer_ids[0]
answer = student_answers[aid]
new_cmap.set_hint_and_mode(aid, answer+"??", "always")
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
38) ERROR: test_hint_function_randomization (capa.tests.test_responsetypes.StringResponseTest)
Traceback (most recent call last):
common/lib/capa/capa/tests/test_responsetypes.py line 844 in test_hint_function_randomization
""".format(code=self._get_random_number_code()))
common/lib/capa/capa/tests/test_responsetypes.py line 43 in build_problem
return new_loncapa_problem(xml, capa_system=capa_system)
common/lib/capa/capa/tests/__init__.py line 59 in new_loncapa_problem
return LoncapaProblem(xml, id='1', seed=seed, capa_system=capa_system or test_capa_system())
common/lib/capa/capa/capa_problem.py line 168 in __init__
self.context = self._extract_context(self.tree)
common/lib/capa/capa/capa_problem.py line 662 in _extract_context
raise responsetypes.LoncapaProblemError(msg)
LoncapaProblemError: Error while executing script code: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
-------------------- >> begin captured logging << --------------------
codejail.jail_code: INFO: Executing jailed code 1 in /tmp/codejail-cBCVol, with PID 28893
capa.capa_problem: ERROR: Error while execing script code:
def gimme_a_random_hint(answer_ids, student_answers, new_cmap, old_cmap):
answer = str(random.randint(0, 1e9))
new_cmap.set_hint_and_mode(answer_ids[0], answer, "always")
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 657, in _extract_context
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
277 tests run in 6.9 seconds.
4 FAILED, 34 errors (239 tests passed)
Cleaning up after common/lib/capa
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for common/lib/calc
python -m coverage run --rcfile=common/lib/calc/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/calc/noseids common/lib/calc --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/calc/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/calc
========================================
.......................................................
-----------------------------------------------------------------------------
55 tests run in 1.5 seconds (55 tests passed)
Cleaning up after common/lib/calc
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for common/lib/safe_lxml
python -m coverage run --rcfile=common/lib/safe_lxml/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/safe_lxml/noseids common/lib/safe_lxml --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/safe_lxml/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/safe_lxml
========================================
-----------------------------------------------------------------------------
0 tests run in 0.0 seconds (0 tests passed)
Cleaning up after common/lib/safe_lxml
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Setting up for common/lib/xmodule
python -m coverage run --rcfile=common/lib/xmodule/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/xmodule/noseids common/lib/xmodule --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/xmodule/nosetests.xml --verbosity=1
========================================
Running tests for common/lib/xmodule
========================================
.............................................................................
.............................................................................
.............................................................................
.............................................................................
..................................................F..........................
.-...-....-............F.....................................................
......................................................-......................
.............................................................................
.............................................................................
.............................................................................
............................................................-----------------
.-.-.........--------------.....-......-.-....--------------.................
...............................
-----------------------------------------------------------------------------
1) FAIL: test_check_problem_with_files_as_xblock (xmodule.tests.test_capa_module.CapaModuleTest)
Traceback (most recent call last):
common/lib/xmodule/xmodule/tests/test_capa_module.py line 650 in test_check_problem_with_files_as_xblock
self.assertEqual(xqueue_interface._http_post.call_count, 1)
AssertionError: 0 != 1
-------------------- >> begin captured logging << --------------------
capa.responsetypes: DEBUG: answer_ids=['i4x-edX-capa_test-problem-SampleProblem34_3_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={'i4x-edX-capa_test-problem-SampleProblem34_3_1': u'None', 'i4x-edX-capa_test-problem-SampleProblem34_2_1': [u'prog1.py', u'prog2.py', u'prog3.py']}
codejail.jail_code: INFO: Executing jailed code i4x-edX-capa_test-problem-SampleProblem34_2 in /tmp/codejail-DQwmAd, with PID 30184
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1593, in get_score
self.execute_check_function(idset, submission)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1621, in execute_check_function
self._handle_exec_exception(err)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1755, in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0x99431b8>)
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
2) FAIL: test_file_inputs (xmodule.tests.test_capa_module.TestProblemCheckTracking)
Traceback (most recent call last):
common/lib/xmodule/xmodule/tests/test_capa_module.py line 1782 in test_file_inputs
event = self.get_event_for_answers(module, answer_input_dict)
common/lib/xmodule/xmodule/tests/test_capa_module.py line 1677 in get_event_for_answers
self.assertEquals(len(mock_track_function.mock_calls), 1)
AssertionError: 0 != 1
-------------------- >> begin captured logging << --------------------
capa.responsetypes: DEBUG: answer_ids=['i4x-edX-capa_test-problem-SampleProblem35_3_1']
capa.responsetypes: DEBUG: LoncapaProblem Response customresponse: student_answers={'i4x-edX-capa_test-problem-SampleProblem35_2_1': [path(u'/edx/app/edxapp/edx-platform/common/test/data/capa/prog1.py'), path(u'/edx/app/edxapp/edx-platform/common/test/data/capa/prog2.py'), path(u'/edx/app/edxapp/edx-platform/common/test/data/capa/prog3.py')], 'i4x-edX-capa_test-problem-SampleProblem35_3_1': 'None'}
codejail.jail_code: INFO: Executing jailed code i4x-edX-capa_test-problem-SampleProblem35_2 in /tmp/codejail-Prlujd, with PID 30190
capa.responsetypes: WARNING: Error occurred while evaluating CustomResponse
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1618, in execute_check_function
unsafely=self.capa_system.can_execute_unsafe_code(),
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/dogapi/stats/dog_stats_api.py", line 184, in wrapped
result = func(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/safe_exec/safe_exec.py", line 141, in safe_exec
raise e
SafeExecException: Couldn't execute jailed code: sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
edx.courseware: WARNING: StudentInputError in capa_module:problem_check
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 987, in check_problem
correct_map = self.lcp.grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 330, in grade_answers
return self._grade_answers(answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/capa_problem.py", line 392, in _grade_answers
results = responder.evaluate_answers(self.student_answers, oldcmap)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 247, in evaluate_answers
new_cmap = self.get_score(student_answers)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1593, in get_score
self.execute_check_function(idset, submission)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1621, in execute_check_function
self._handle_exec_exception(err)
File "/edx/app/edxapp/edx-platform/common/lib/capa/capa/responsetypes.py", line 1755, in _handle_exec_exception
raise ResponseError(err.message, traceback_obj)
ResponseError: ("Couldn't execute jailed code: sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n", <traceback object at 0xaa2d560>)
--------------------- >> end captured logging << ---------------------
-----------------------------------------------------------------------------
955 tests run in 187.9 seconds.
2 FAILED, 54 skipped (899 tests passed)
Cleaning up after common/lib/xmodule
---> pavelib.utils.test.utils.clean_mongo
mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js
MongoDB shell version: 2.4.7
connecting to: localhost:27017/test
Dropping test db test_xmodule
Cleaning up after Python Tests
Cleaning up after All Tests
================================================
Tests failed in the following suites:
* JS Tests javascript
* lms
* common/lib/capa
* common/lib/xmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment