-
Notifications
You must be signed in to change notification settings - Fork 50
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
Deprecation Warning: pkg_resources #157
Comments
This might be an issue with python 3.11? 🤔 |
I'm getting this warning even on Python 3.10
Environment
|
Here are some upstream information about
|
The replacements in the standard library:
Given that Python 3.7 is end of life in just two months I would recommend bumping the minimum supported Python to 3.8 here: And then replace usages of |
- This has been replaced by importlib.metadata. Since version 3.7 of Python is end of life, the minimal version of python supported is now 3.8.
This warning should be solved, and minimal version of Python has been bumped to 3.8. Could you please test if that works for you? (that will also be an opportunity to test if version 1.1.0-alpha works for the rest) |
@fralau I installed the latest python -m pip install git+https://github.com/fralau/mkdocs_macros_plugin.git $ python -m pip list | grep mkdocs
mkdocs 1.4.2
mkdocs-htmlproofer-plugin 0.13.1
mkdocs-macros-plugin 1.0.0a0
mkdocs-material 9.1.7
mkdocs-material-extensions 1.1.1
mkdocs-video 1.5.0 Everything seemed to work, and I did not see any deprecation warnings printed. 🎉 |
@johnthagen This is excellent! |
When serving/building mkdocs with the macros plugin enabled:
INFO - DeprecationWarning: pkg_resources is deprecated as an API
File "/usr/local/python/3.11.2/lib/python3.11/site-packages/mkdocs_macros/context.py", line 19, in
import pkg_resources
File "/usr/local/python/3.11.2/lib/python3.11/site-packages/pkg_resources/init.py", line 121, in
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
The text was updated successfully, but these errors were encountered: