Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.0 isn't compatible with Python 3.8 (quince.3) #112

Open
WillEVTDigital opened this issue Aug 13, 2024 · 0 comments
Open

v2.0.0 isn't compatible with Python 3.8 (quince.3) #112

WillEVTDigital opened this issue Aug 13, 2024 · 0 comments

Comments

@WillEVTDigital
Copy link

WillEVTDigital commented Aug 13, 2024

The version 2.0.0 update includes a transition from pkg_resources API to importlib-resources API.

Unfortunately the files function was introduced in Python 3.9

Using Tutor 17.0.4 to build the Open edX image (quince.3) produces the following error when trying to access the feedback in a course, instructor dashboard, or Studio.

lms-1  | Traceback (most recent call last):
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner
lms-1  |     response = get_response(request)
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response
lms-1  |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms-1  |   File "/opt/pyenv/versions/3.8.18/lib/python3.8/contextlib.py", line 75, in inner
lms-1  |     return func(*args, **kwds)
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 134, in _wrapper_view
lms-1  |     response = view_func(request, *args, **kwargs)
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 40, in _cache_controlled
lms-1  |     response = viewfunc(request, *args, **kw)
lms-1  |   File "/openedx/edx-platform/./lms/djangoapps/instructor/views/instructor_dashboard.py", line 269, in instructor_dashboard_2
lms-1  |     context, instructor_template = InstructorDashboardRenderStarted.run_filter(
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/openedx_filters/learning/filters.py", line 702, in run_filter
lms-1  |     data = super().run_pipeline(context=context, template_name=template_name)
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/openedx_filters/tooling.py", line 217, in run_pipeline
lms-1  |     result = step_runner.run_filter(**accumulated_output)
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/feedback/extensions/filters.py", line 47, in run_filter
lms-1  |     self.resource_string(f"static/html/{TEMPLATE_CATEGORY}.html")
lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/feedback/extensions/filters.py", line 78, in resource_string
lms-1  |     return importlib.resources.files("feedback").joinpath(path).read_text(encoding="utf-8")
lms-1  | AttributeError: module 'importlib.resources' has no attribute 'files'

Is there a way I can pin the version that gets installed to 1.6.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant