Hi,
I’m trying to update Tutor to PALM, but in my on my way to get up I have an error in the lms and cms.
I update the openedx tutor from version 15.1.0 to 15.2.0 and I got this error:
In LMS:
In CMS:
I trying to skip the error, and i got it with updating from 15.1.0 to 15.3.0, but when I go to 15.3.6 I got the error again. I tried a lot of times skipping different versions and in the end, it always fails.
This is what appears in the log:
tutor_local-lms-1 | 2023-07-20 10:07:18,564 ERROR 6 [django.request] [user 13] [ip 86.127.228.58] log.py:224 - Internal Server Error: /api/courseware/sequence/block-v1:SEGITTUR+sm_DTI_2+2022+type@sequential+block@5d9c8f7b24af4daab17d9ec425a729a3
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
tutor_local-lms-1 | response = get_response(request)
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
tutor_local-lms-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-lms-1 | File "/opt/pyenv/versions/3.8.15/lib/python3.8/contextlib.py", line 75, in inner
tutor_local-lms-1 | return func(*args, **kwds)
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
tutor_local-lms-1 | return view_func(*args, **kwargs)
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
tutor_local-lms-1 | return self.dispatch(request, *args, **kwargs)
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
tutor_local-lms-1 | response = self.handle_exception(exc)
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
tutor_local-lms-1 | response = handler(request, *args, **kwargs)
tutor_local-lms-1 | File "/openedx/edx-platform/./openedx/core/djangoapps/courseware_api/views.py", line 587, in get
tutor_local-lms-1 | sequence, _ = get_block_by_usage_id(
tutor_local-lms-1 | File "/openedx/edx-platform/./lms/djangoapps/courseware/block_render.py", line 929, in get_block_by_usage_id
tutor_local-lms-1 | instance = get_block_for_descriptor(
tutor_local-lms-1 | File "/openedx/edx-platform/./lms/djangoapps/courseware/block_render.py", line 388, in get_block_for_descriptor
tutor_local-lms-1 | return get_block_for_descriptor_internal(
tutor_local-lms-1 | File "/openedx/edx-platform/./lms/djangoapps/courseware/block_render.py", line 665, in get_block_for_descriptor_internal
tutor_local-lms-1 | (system, student_data) = get_module_system_for_user(
tutor_local-lms-1 | File "/openedx/edx-platform/./lms/djangoapps/courseware/block_render.py", line 590, in get_module_system_for_user
tutor_local-lms-1 | system = LmsModuleSystem(
tutor_local-lms-1 | File "/openedx/edx-platform/./lms/djangoapps/lms_xblock/runtime.py", line 125, in __init__
tutor_local-lms-1 | super().__init__(**kwargs)
tutor_local-lms-1 | File "/openedx/edx-platform/xmodule/x_module.py", line 1679, in __init__
tutor_local-lms-1 | super().__init__(**kwargs)
tutor_local-lms-1 | File "/openedx/edx-platform/xmodule/x_module.py", line 956, in __init__
tutor_local-lms-1 | super().__init__(**kwargs)
tutor_local-lms-1 | File "/openedx/venv/lib/python3.8/site-packages/xblock/runtime.py", line 569, in __init__
tutor_local-lms-1 | self.user_id = None
tutor_local-lms-1 | AttributeError: can't set attribute
I have also noticed that when I have this error, in the execution of the “local launch tutor” this warning appears me a lot of times:
2023-07-20 09:40:59,592 WARNING 167 [xblock.plugin] [user None] [ip None] plugin.py:147 - Unable to load XBlock 'video_xblock'
Traceback (most recent call last):
File "/openedx/venv/lib/python3.8/site-packages/xblock/plugin.py", line 144, in load_classes
yield (class_.name, cls._load_class_entry_point(class_))
File "/openedx/venv/lib/python3.8/site-packages/xblock/plugin.py", line 73, in _load_class_entry_point
class_ = entry_point.load()
File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2517, in load
return self.resolve()
File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2523, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/openedx/venv/lib/python3.8/site-packages/video_xblock/__init__.py", line 8, in <module>
from .video_xblock import * # nopep8
File "/openedx/venv/lib/python3.8/site-packages/video_xblock/video_xblock.py", line 29, in <module>
from .backends.base import BaseVideoPlayer
ModuleNotFoundError: No module named 'video_xblock.backends'
NAME: openresponseassessment.enhanced_staff_grader