Tutor local init not working

I have installed tutor with curl and everything was working fine but when I tried to import custom plugins via pip3 it was unable to load them so I installed it with pip3. Now I have update and it is starting all the container right but on tutor local init it is gving me below error.

Traceback (most recent call last):
  File "./manage.py", line 120, in <module>
  File "/openedx/edx-platform/lms/startup.py", line 20, in run
  File "/openedx/venv/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
  File "/openedx/venv/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
  File "/openedx/venv/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/opt/pyenv/versions/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/openedx/edx-platform/lms/djangoapps/bulk_email/models.py", line 19, in <module>
    from openedx.core.djangoapps.course_groups.cohorts import get_cohort_by_name
  File "/openedx/edx-platform/openedx/core/djangoapps/course_groups/cohorts.py", line 21, in <module>
    from lms.djangoapps.courseware import courses
  File "/openedx/edx-platform/lms/djangoapps/courseware/courses.py", line 60, in <module>
    from openedx.features.course_experience.utils import is_block_structure_complete_for_assignments
  File "/openedx/edx-platform/openedx/features/course_experience/utils.py", line 9, in <module>
    from lms.djangoapps.course_api.blocks.api import get_blocks
  File "/openedx/edx-platform/lms/djangoapps/course_api/blocks/api.py", line 12, in <module>
    from openedx.features.effort_estimation.api import EffortEstimationTransformer
  File "/openedx/edx-platform/openedx/features/effort_estimation/api.py", line 7, in <module>
    from .block_transformers import EffortEstimationTransformer
  File "/openedx/edx-platform/openedx/features/effort_estimation/block_transformers.py", line 11, in <module>
    from edxval.api import get_videos_for_course
  File "/openedx/venv/lib/python3.8/site-packages/edxval/api.py", line 31, in <module>
    from edxval.models import (
  File "/openedx/venv/lib/python3.8/site-packages/edxval/models.py", line 300, in <module>
    class VideoImage(TimeStampedModel):
  File "/openedx/venv/lib/python3.8/site-packages/edxval/models.py", line 305, in VideoImage
    image = CustomizableImageField()
  File "/openedx/venv/lib/python3.8/site-packages/edxval/models.py", line 213, in __init__
  File "/openedx/venv/lib/python3.8/site-packages/edxval/utils.py", line 158, in get_video_image_storage
    return get_storage_class(
  File "/openedx/venv/lib/python3.8/site-packages/storages/backends/s3boto.py", line 253, in __init__
  File "/openedx/venv/lib/python3.8/site-packages/storages/utils.py", line 84, in check_location
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: S3BotoStorage.location cannot begin with a leading slash. Found '/openedx/media/'. Use 'openedx/media/' instead.
Error: Command failed with status 1: docker-compose -f /home/tauseef/Desktop/tutor-work/env/local/docker-compose.yml -f /home/tauseef/Desktop/tutor-work/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/tauseef/Desktop/tutor-work/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s

echo "Loading settings $DJANGO_SETTINGS_MODULE"

./manage.py lms migrate

# Fix incorrect uploaded file path
if [ -d /openedx/data/uploads/ ]; then
  if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
    echo "Migrating LMS uploaded files to shared directory"
    mv /openedx/data/uploads/* /openedx/media/
    rm -rf /openedx/data/uploads/

# Create waffle switches to enable some features, if they have not been explicitly defined before
# Completion tracking: add green ticks to every completed unit
(./manage.py lms waffle_switch --list | grep completion.enable_completion_tracking) || ./manage.py lms waffle_switch --create completion.enable_completion_tracking on

I am using tutor version 12.0.4. any idea about it?

What is the output of tutor plugins list?

resolved it after creating a new config file.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.