Dogwood.3: Error while exporting library imported from edx.org

52 views
Skip to first unread message

Aparna P

unread,
Jul 1, 2016, 6:11:56 AM7/1/16
to General Open edX discussion
Hi!

On exporting a library(that was imported from edx.org) onto Dogwood.3, following error was seen in /edx/var/log/cms/edx.log:

Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner
    return func(*args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner
    return func(*args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py", line 45, in inner
    return func(request, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/common/djangoapps/util/views.py", line 41, in inner
    response = view_func(request, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/import_export.py", line 505, in export_handler
    tarball = create_export_tarball(courselike_module, course_key, context)
  File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/import_export.py", line 402, in create_export_tarball
    export_library_to_xml(modulestore(), contentstore(), course_key, root_dir, name)
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py", line 355, in export_library_to_xml
    LibraryExportManager(modulestore, contentstore, library_key, root_dir, library_dir).export()
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py", line 170, in export
    courselike.add_xml_to_node(root)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/xblock/mixins.py", line 484, in add_xml_to_node
    self._add_field(node, field_name, field)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/xblock/mixins.py", line 531, in _add_field
    node.set(field_name, value)
  File "lxml.etree.pyx", line 744, in lxml.etree._Element.set (src/lxml/lxml.etree.c:44335)
  File "apihelpers.pxi", line 554, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:19531)
  File "apihelpers.pxi", line 1391, in lxml.etree._utf8 (src/lxml/lxml.etree.c:27100)
TypeError: Argument must be bytes or unicode, got 'NoneType'

Did anyone encounter this?
Aparna

Nacho Diaz Asenjo

unread,
Dec 13, 2016, 4:36:48 AM12/13/16
to General Open edX discussion
Did you find any solution? I need to export my libraries from Dogwood.3 and I have same error ;-(

Ernesto Sanchez

unread,
Dec 13, 2016, 12:30:54 PM12/13/16
to General Open edX discussion
Nacho, creo que el problema es que la plataforma o fragmentos de ella no reconoce los acentos, entonces trata de cambiar el titulo de tu liberia a un nombre sin acentos o caracteres extraños del lenguaje ingles. Y trata de bajarla nuevamente.
Reply all
Reply to author
Forward
0 new messages