Error trying upgrading to palm


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:


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] - 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/", 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/", 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/", 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/", 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/", 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/", 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/", 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/", 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/", 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/", 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/", 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/", 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/", line 125, in __init__
tutor_local-lms-1  |     super().__init__(**kwargs)
tutor_local-lms-1  |   File "/openedx/edx-platform/xmodule/", line 1679, in __init__
tutor_local-lms-1  |     super().__init__(**kwargs)
tutor_local-lms-1  |   File "/openedx/edx-platform/xmodule/", line 956, in __init__
tutor_local-lms-1  |     super().__init__(**kwargs)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/xblock/", 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] - Unable to load XBlock 'video_xblock'
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/xblock/", line 144, in load_classes
    yield (, cls._load_class_entry_point(class_))
  File "/openedx/venv/lib/python3.8/site-packages/xblock/", line 73, in _load_class_entry_point
    class_ = entry_point.load()
  File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/", line 2517, in load
    return self.resolve()
  File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/", line 2523, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/openedx/venv/lib/python3.8/site-packages/video_xblock/", line 8, in <module>
    from .video_xblock import *  # nopep8
  File "/openedx/venv/lib/python3.8/site-packages/video_xblock/", line 29, in <module>
    from .backends.base import BaseVideoPlayer
ModuleNotFoundError: No module named 'video_xblock.backends'
NAME: openresponseassessment.enhanced_staff_grader

Finally, i found it. Indeed the problem seemed to come from ‘video_xblock’.

I had to remove it from requirements ("$(tutor config printroot)/env/build/openedx/requirements/private.txt) and do a tutor images build openedx.

That fixed my errors.