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

distutils package is deprecated and slated for removal in Python 3.12. #67

Closed
ewadii opened this issue Aug 26, 2022 · 4 comments · Fixed by #69
Closed

distutils package is deprecated and slated for removal in Python 3.12. #67

ewadii opened this issue Aug 26, 2022 · 4 comments · Fixed by #69

Comments

@ewadii
Copy link

ewadii commented Aug 26, 2022

Running gstatus script throws a DeprecationWarning

/usr/bin/gstatus/main.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

gstatus --version : gstatus v1.0.8
Dist : Ubuntu 22.04.1 LTS
python3 version : Python 3.10.4

@osztrovszkyzs-ahrt
Copy link

gstatus v1.0.8
Python 3.11.2
Debian 12.1

same issue

@CluelessTechnologist
Copy link

This message causes the zabbix monitoring to stop working since it uses the output of gstatus.

I had to add ignore::DeprecationWarning to the env line in /usr/bin/gstatus after installing it from the install script. Not best practice but it solves the issue I was having with gstatus_discovery.py.

#!/usr/bin/env -S python3 -W ignore::DeprecationWarning

@Apollon77
Copy link

Apollon77 commented Jan 8, 2024

Python 3.12 is generally out there and will be in OS releases soon ... any chance for a fix?

I'm not a pthon dev but when I read the migration docs it might be not too hard? https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html

distutils.version.* → packaging.version.*

@aravindavk
Copy link
Member

Sure. Expect a patch and release in this month.

aravindavk added a commit to aravindavk/gstatus that referenced this issue Jan 13, 2024
`distutils` package is deprecated. Use `packaging` library instead.

Fixes: gluster#67
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
aravindavk added a commit that referenced this issue Feb 15, 2024
`distutils` package is deprecated. Use `packaging` library instead.

Fixes: #67

Signed-off-by: Aravinda Vishwanathapura <[email protected]>
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

Successfully merging a pull request may close this issue.

5 participants