-
Notifications
You must be signed in to change notification settings - Fork 218
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
Switch off of deprecated pkg_resources
library
#676
Switch off of deprecated pkg_resources
library
#676
Comments
After reading the related docs/blogs shared below I think we should choose importlib_resources library which is developed and maintained by Python developers and fixes the architecture issues related to importlib.resources module which is going to be deprecated in Python 3.11 as discussed here Docs/Blogs FYI @kdmccormick @feanil |
@farhan , thanks for the research. I took a look at the Python forum post and came to the conclusion that:
So, it sounds like we could wait until edx-platform is upgraded to Python 3.11, and then just switch directly to the new, official |
As an additional note, it looks like pkg_resources is still around in 3.12 so it will be safe to jump to that as well so I think we can de-prioritize this until after the python upgrade which we'll hopefully kick-off soon. |
PR is blocked as we are waiting for drop of Python |
Background
The
pkg_resources
library, used by XBlock to load static assets, is deprecated. The removal timeline is unknown.xblock-utils uses
pkg_resources
in a couple places.To do
First, choose a new resource loading interface. Options:
importlib.resources
. Unfortunately, this will become deprecated in Python 3.11 and replaced with a yet-to-be-determined interface.Then:
Related
pkg_resources
library #641openedx/xblock-utils
library intoopenedx/XBlock
#675The text was updated successfully, but these errors were encountered: