-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
dist() and linux_distribution() functions are deprecated warning on python3.7.1 #50792
Comments
@garethgreenaway Thanks. Today I have noticed the same error on loader as well.
Is this related with the same one or do I have to open new issue for this? |
@kk21986 Looks related. Thanks for the update. |
@kk21986 To confirm, did you see that message after the above fix was in place? Looking closer it appears that this would be related to grains and the deprecation but should be fixed by the PR. |
Looks like fixed. Unfortunately the |
I am still getting the warning on Mac OS Mojave with salt 2019.2.0. |
Needs a backport but will also likely be fixed when we're able to start focusing on various fixes needed for Python 3.8. |
FYI, I believe 3001 no longer throws any of these warnings. |
Closing this as fix in v3001 |
Description of Issue/Question
Getting the below warning messages on salt 2018.3.3 with python3.7.1. Due to these warning messages the automation not behaving properly which uses salt.
/usr/local/tools/python371/lib/python3.7/site-packages/salt/version.py:632: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5 lin_ver = linux_distribution()
Setup
Steps to Reproduce Issue
Compile python 3.7.1 on centos 6 and install salt using pip. Then run the salt --version-report where you can see the those warning message.
Versions Report
`# salt --versions-report
/usr/local/tools/python371/lib/python3.7/site-packages/salt/utils/immutabletypes.py:38: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
class ImmutableList(collections.Sequence):
/usr/local/tools/python371/lib/python3.7/site-packages/salt/version.py:632: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
lin_ver = linux_distribution()
Salt Version:
Salt: 2018.3.3
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.7.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.7.1 (default, Nov 23 2018, 02:59:05)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.1.2
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5
System Versions:
dist: redhat 6.9 Santiago
locale: UTF-8
machine: x86_64
release: 2.6.39-400.296.2.el6.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 6.9 Santiago
`
The text was updated successfully, but these errors were encountered: