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

[Bug]: netdata uses obsoleted distutils module (removed since python 3.12) #16254

Closed
vitlav opened this issue Oct 22, 2023 · 1 comment · Fixed by #16259
Closed

[Bug]: netdata uses obsoleted distutils module (removed since python 3.12) #16254

vitlav opened this issue Oct 22, 2023 · 1 comment · Fixed by #16259
Assignees
Labels
area/collectors Everything related to data collection bug collectors/python.d

Comments

@vitlav
Copy link

vitlav commented Oct 22, 2023

Bug description

netdata uses obsoleted distutils module

«Code that imports distutils will no longer work from Python 3.12.»

See https://peps.python.org/pep-0632/

Expected behavior

Use other way to get module version

Steps to reproduce

$ grep distutils collectors/python.d.plugin/python_modules/bases/FrameworkServices/UrlService.py 
from distutils.version import StrictVersion as version

Installation method

from source

System info

$ name -a; grep -HvE "^#|URL" /etc/*release
bash: name: команда не найдена
/etc/altlinux-release:ALT Regular Sisyphus

Netdata build info

$ sudo netdata -W buildinfo
Packaging:
    Netdata Version ____________________________________________ : v1.43.0

Additional info

No response

@vitlav vitlav added bug needs triage Issues which need to be manually labelled labels Oct 22, 2023
@tkatsoulas tkatsoulas added the area/collectors Everything related to data collection label Oct 22, 2023
@MrZammler MrZammler self-assigned this Oct 23, 2023
@MrZammler
Copy link
Contributor

Hi @vitlav . Thanks for the report! I've opened a small PR to replace it.

@ilyam8 ilyam8 added collectors/python.d and removed needs triage Issues which need to be manually labelled labels Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection bug collectors/python.d
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants