Error while building the openedx image


I am trying to build the openedx image by running the following command

tutor images build openedx

the error we are getting is as shown in below log

Step 45/52 : RUN openedx-assets themes     && openedx-assets collect --settings=tutor.assets
 ---> Running in 906367b47d7a
python lms --settings=tutor.assets collectstatic --ignore "fixtures" --ignore "karma_*.js" --ignore "spec" --ignore "spec_helpers" --ignore "spec-helpers" --ignore "xmodule_js" --ignore "geoip" --ignore "sass" --noinput > /dev/null
WARNING:py.warnings:/openedx/edx-platform/lms/djangoapps/courseware/ DeprecationWarning: Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported
  warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)

WARNING:enterprise.utils:Could not import Registry from third_party_auth.provider
WARNING:enterprise.utils:cannot import name _LTI_BACKENDS
Traceback (most recent call last):
  File "", line 123, in <module>
    execute_from_command_line([sys.argv[0]] + django_args)
  File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/", line 364, in execute_from_command_line
  File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/", line 356, in execute
  File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/openedx/venv/local/lib/python2.7/site-packages/django/core/management/", line 330, in execute
    output = self.handle(*args, **options)
  File "/openedx/venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/", line 199, in handle
    collected = self.collect()
  File "/openedx/venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/", line 139, in collect
    for original_path, processed_path, processed in processor:
  File "/openedx/venv/local/lib/python2.7/site-packages/require/", line 172, in post_process
    for path in super_class.post_process(paths, dry_run, **options):
  File "/openedx/edx-platform/openedx/core/djangoapps/theming/", line 292, in post_process
    for name, hashed_name, processed in super_class.post_process(paths.copy(), dry_run, **options):
  File "/openedx/venv/local/lib/python2.7/site-packages/pipeline/", line 39, in post_process
    for name, hashed_name, processed in super_class.post_process(paths.copy(), dry_run, **options):
  File "/openedx/venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/", line 246, in post_process
    for name, hashed_name, processed, _ in self._post_process(paths, adjustable_paths, hashed_files):
  File "/openedx/venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/", line 297, in _post_process
    content =
  File "/openedx/venv/lib/python2.7/encodings/", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 2667: invalid start byte
Traceback (most recent call last):
  File "/openedx/bin/openedx-assets", line 204, in <module>
  File "/openedx/bin/openedx-assets", line 90, in main
  File "/openedx/bin/openedx-assets", line 143, in run_collect
    assets.collect_assets(, args.settings)
  File "/openedx/edx-platform/pavelib/", line 705, in collect_assets
  File "/openedx/venv/local/lib/python2.7/site-packages/paver/", line 60, in sh
    return dry(command, runpipe)
  File "/openedx/venv/local/lib/python2.7/site-packages/paver/", line 15, in dry
    return func(*args, **kw)
  File "/openedx/venv/local/lib/python2.7/site-packages/paver/", line 55, in runpipe
    raise BuildFailure("Subprocess return code: %d" % p.returncode)
paver.tasks.BuildFailure: Subprocess return code: 1
The command '/bin/sh -c openedx-assets themes     && openedx-assets collect --settings=tutor.assets' returned a non-zero code: 1
Error: Command failed with status 1: docker build -t /home/vs/.local/share/tutor/env/build/openedx

May i know what exactly going wrong here it would be helpful.


may i know the error what exactly happen and how to resolve it.

Did you customize the image in any way? Are you building a custom fork of edx-platform?