Hi everyone,
I’m having trouble importing custom Django apps in an Open edX XBlock. Even though the Django application is installed in the Open edX environment, I’m getting errors.
ModuleNotFoundError: No module named ‘openedx.features.video_rating’
error is
2024-07-22 10:43:36,866 WARNING 32 [xblock.plugin] [user None] [ip None] plugin.py:144 - Unable to load XBlock ‘onlineoffline’
Traceback (most recent call last):
File “/openedx/venv/lib/python3.8/site-packages/xblock/plugin.py”, line 141, in load_classes
yield (class_.name, cls.load_class_entry_point(class))
File “/openedx/venv/lib/python3.8/site-packages/xblock/plugin.py”, line 70, 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/onlineoffline/init.py”, line 1, in
from .onlineoffline import OnlineOfflineClassXBlock
File “/openedx/venv/lib/python3.8/site-packages/onlineoffline/onlineoffline.py”, line 4, in
from openedx.features.video_rating.models import UserFeedbackSave,Questions,Type,Ratings
ModuleNotFoundError: No module named ‘openedx.features.video_rating’