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

Newer versions of python throw deprecation warnings #394

Open
richardforth opened this issue Mar 29, 2022 · 5 comments
Open

Newer versions of python throw deprecation warnings #394

richardforth opened this issue Mar 29, 2022 · 5 comments

Comments

@richardforth
Copy link
Owner

DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.

@richardforth
Copy link
Owner Author

richardforth commented Mar 29, 2022

Debian 11:

$ docker run -it forric/debian11:latest /bin/bash
root@e96ff14bccd0:/# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro
>>> distro.id()
'debian'
>>> distro.version()
'11'
>>> distro.name()
'Debian GNU/Linux'
>>> distro.codename()
'bullseye'

@richardforth
Copy link
Owner Author

Got to do testing to see if this is also backward compatible with older python versions that dont complain currently

@richardforth richardforth self-assigned this Oct 30, 2022
@richardforth richardforth added this to the Acknowledged milestone Oct 30, 2022
@richardforth
Copy link
Owner Author

richardforth commented Oct 30, 2022

... redacted

@richardforth
Copy link
Owner Author

richardforth commented Oct 30, 2022

Debian 10

image

Debian 11

image

@richardforth
Copy link
Owner Author

richardforth commented Oct 30, 2022

Ubuntu 22.04

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant