-
Notifications
You must be signed in to change notification settings - Fork 18
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
pkg_resources is deprecated #72
Comments
The PR is good, however it breaks backward compatibility with older systems, using an older Python version. RHEL 7 is EOL end of June this year. I guess we can in July make a new release of the check_esxi_hardware plugin and set new requirements. EOL systems would no longer be supported and need to use an older version of the plugin. So let's keep this in "backlog" and look at this again later this year when the last "big" OS releases stop supporting very old Python versions. In the meantime, as a workaround, you could ignore the deprecation warnings: https://stackoverflow.com/questions/879173/how-to-ignore-deprecation-warnings-in-python |
Ping about this - RHEL 7 and python 3.7 (and earlier) are out of support now (Oct 2024) |
Thanks for the reminder. Yes, it's time now. I will work on this soon. |
Alright there are a couple of things to consider:
Now looking at this and assuming pywbem 0.7.0 is now definitely gone in active setups, I guess it's safe to remove the "different pywbem version handling" in the plugin. If, in the future, we run into new compatibility issues between certain pywbem versions, then we can use Besides this, all active Linux distributions, including LTS releases, come with |
All, please have a look at #73 and let me know your thoughts. |
FYI, I plan to release the new version (python3 only) on November 1st 2024, unless a blocker-comment comes up in between. |
Before actually creating a new issue
I confirm, I have read the FAQ (https://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions): Y
I confirm, I have restarted the CIM server (
/etc/init.d/sfcbd-watchdog restart
) on the ESXi server and the problem remains: YI confirm, I have cleared the server's local IPMI cache (
localcli hardware ipmi sel clear
) and restarted the services (/sbin/services.sh restart
) on the ESXi server and the problem remains: YDescribe the bug
The script uses the following code to check the version of pywbem:
A deprecation warning appears:
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Expected behavior
Output should not contain the deprecation warning.
Versions:
The text was updated successfully, but these errors were encountered: