Error while setting theme

Hi Régis,

I am getting error while setting the theme I am running Tutor Version 13.2.2 on ubuntu20.04 and System Config 4 CPU Core 8 GB Ram. It is setting the theme but not working i have tried 2 themes Indigo and Paragon.

Please help me out @regisb

tutor local settheme indigo
docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.tmp.yml run --rm lms-job sh -e -c
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms shell -c "from django.contrib.sites.models import Site
print('Assigning theme indigo to xxxx.in...')
site, _ = Site.objects.get_or_create(domain='xxxx.in')
if not site.name:
    site.name = 'xxxx.in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='xxxx.in:8000')
if not site.name:
    site.name = 'xxxx.in:8000'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to studio.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in')
if not site.name:
    site.name = 'studio.xxxx.in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to studio.xxxx.in:8001...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in:8001')
if not site.name:
    site.name = 'studio.xxxx.in:8001'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to preview.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='preview.xxxx.in')
if not site.name:
    site.name = 'preview.xxxx.in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to preview.xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='preview.xxxx.in:8000')
if not site.name:
    site.name = 'preview.xxxx.in:8000'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
"
Starting tutor_local_mysql_1 ... done
Loading settings lms.envs.tutor.production
2022-05-28 14:18:24,450 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

2022-05-28 14:18:24,534 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import Mapping, MutableMapping

2022-05-28 14:18:26,886 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
  warnings.warn(

Assigning theme indigo to xxxx.in...
Assigning theme indigo to xxxx.in:8000...
Assigning theme indigo to studio.xxxx.in...
Assigning theme indigo to studio.xxxx.in:8001...
Assigning theme indigo to preview.xxxx.in...
Assigning theme indigo to preview.xxxx.in:8000...
manoj@localhost:~$ tutor local settheme indigo
docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.tmp.yml run --rm lms-job sh -e -c
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms shell -c "from django.contrib.sites.models import Site
print('Assigning theme indigo to xxxx.in...')
site, _ = Site.objects.get_or_create(domain='xxxx.in')
if not site.name:
    site.name = 'xxxx.in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='xxxx.in:8000')
if not site.name:
    site.name = 'xxxx.in:8000'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to studio.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in')
if not site.name:
    site.name = 'studio.xxxx.in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to studio.xxxx.in:8001...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in:8001')
if not site.name:
    site.name = 'studio.xxxx.in:8001'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to preview.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='preview.xxx.in')
if not site.name:
    site.name = 'preview.xxxx.in'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')

print('Assigning theme indigo to preview.xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='preview.xxxx.in:8000')
if not site.name:
    site.name = 'preview.xxxx.in:8000'
    site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
"
Starting tutor_local_mysql_1 ... done
Loading settings lms.envs.tutor.production
2022-05-28 14:19:54,193 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

2022-05-28 14:19:54,279 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import Mapping, MutableMapping

2022-05-28 14:19:56,507 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
  warnings.warn(

Assigning theme indigo to xxxx.in...
Assigning theme indigo to xxx.in:8000...
Assigning theme indigo to studio.xxxx.in...
Assigning theme indigo to studio.xxx.in:8001...
Assigning theme indigo to preview.xxx.in...
Assigning theme indigo to preview.xxx.in:8000...
manoj@localhost:~$ $(tutor config printvalue LMS_HOST)
xxxx.in: command not found

Please help me

Hi, I’m also having the same issue when trying to build the image edX Bootstrap Theme by Dadaso Zanzane.

if using Tutor Theme doesn’t have this issue

Compiling LMS sass assets from theme /openedx/themes/bootstrap...
rtlcss /openedx/themes/bootstrap/lms/static/css/discussion/lms-discussion-bootstrap.css /openedx/themes/bootstrap/lms/static/css/discussion/lms-discussion-bootstrap-rtl.css
rtlcss: Warning! No config present, using defaults.
Saving: /openedx/themes/bootstrap/lms/static/css/discussion/lms-discussion-bootstrap-rtl.css
rtlcss /openedx/themes/bootstrap/lms/static/css/bootstrap/lms-main.css /openedx/themes/bootstrap/lms/static/css/bootstrap/lms-main-rtl.css
rtlcss: Warning! No config present, using defaults.
Saving: /openedx/themes/bootstrap/lms/static/css/bootstrap/lms-main-rtl.css
Traceback (most recent call last):
  File "/openedx/bin/openedx-assets", line 218, in <module>
    main()
  File "/openedx/bin/openedx-assets", line 89, in main
    args.func(args)
  File "/openedx/bin/openedx-assets", line 153, in run_themes
    assets._compile_sass(system, Path(theme_path), False, False, [])
  File "/openedx/edx-platform/pavelib/assets.py", line 558, in _compile_sass
    sass.compile(
  File "/openedx/venv/lib/python3.8/site-packages/sass.py", line 644, in compile
    raise CompileError(v)
sass.CompileError: b"Error: File to import not found or unreadable: lms/static/sass/lms-main-v2-rtl\n       Parent style sheet: /openedx/themes/bootstrap/lms/static/sass/lms-main-v1-rtl.scss\n        on line 8 of ../themes/bootstrap/lms/static/sass/lms-main-v1-rtl.scss\n>> @import 'lms/static/sass/lms-main-v2-rtl';\n   ^\n"

The command '/bin/sh -c openedx-assets themes     && openedx-assets collect --settings=tutor.assets     && rdfind -makesymlinks true -followsymlinks true /openedx/staticfiles/' returned a non-zero code: 1

Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx:13.2.2 /home/arian/.local/share/tutor/env/build/openedx

@regisb please help me out