. I'm folllowing it, it's very interesting, but when I arrive to the point of "Registering an XBlock (entry point)" I get this error:
edxapp@precise64:~/edx-platform/XBlock$ ./manage.py runserver
0.0.0.0:8000Validating models...
0 errors found
Django version 1.4.8, using settings 'workbench.settings'
Development server is running at
http://0.0.0.0:8000/Quit the server with CONTROL-C.
2014-03-24 07:51:17,139 ERROR [xmodule.seq_module] Unable to load child when parsing Sequence. Continuing...
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py", line 141, in definition_from_xml
child_block = system.process_xml(etree.tostring(child, encoding='unicode'))
AttributeError: 'WorkbenchRuntime' object has no attribute 'process_xml'
2014-03-24 07:51:17,143 ERROR [django.request] Internal Server Error: /
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 101, in get_response request.path_info)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 298, in resolve for pattern in self.url_patterns:
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 328, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 323, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name)
File "/edx/app/edxapp/edx-platform/XBlock/workbench/urls.py", line 11, in <module> init_scenarios()
File "/edx/app/edxapp/edx-platform/XBlock/workbench/scenarios.py", line 67, in init_scenarios add_class_scenarios(class_name, cls)
File "/edx/app/edxapp/edx-platform/XBlock/workbench/scenarios.py", line 51, in add_class_scenarios add_xml_scenario(scname, desc, xml)
File "/edx/app/edxapp/edx-platform/XBlock/workbench/scenarios.py", line 32, in add_xml_scenario usage_id = runtime.parse_xml_string(xml, runtime.id_generator)
File "/edx/app/edxapp/edx-platform/XBlock/xblock/runtime.py", line 500, in parse_xml_string return self.parse_xml_file(StringIO(xml), id_generator)
File "/edx/app/edxapp/edx-platform/XBlock/xblock/runtime.py", line 505, in parse_xml_file usage_id = self._usage_id_from_node(root, None, id_generator)
File "/edx/app/edxapp/edx-platform/XBlock/xblock/runtime.py", line 523, in _usage_id_from_node block = block_class.parse_xml(node, self, keys, id_generator)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 668, in parse_xml block = cls.from_xml(xml, runtime, id_generator)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py", line 296, in from_xml
definition, children = cls.load_definition(definition_xml, system, def_id) # note this removes metadata
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py", line 225, in load_definition
definition, children = cls.definition_from_xml(definition_xml, system)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py", line 145, in definition_from_xml
if system.error_tracker is not None:
AttributeError: 'WorkbenchRuntime' object has no attribute 'error_tracker'
I have googled it but I can't find what is the problem. Do you know if this tutorial is up to date? Maybe this is the reason...
Alma.