You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
Hi,
you currently prefer python2 over python3, I think this should be the other way around seeing that python2 upstream is no longer supported and downstream (rhel) it will only receive security fixes
// If python3 --version does not contain 'not found' return python3
if(strstr(result, "not found") ==NULL) {
returnPYTHON3_COMMAND;
}
returnPYTHON_COMMAND;
}
should be the other way around, use python3 first if not exists then python2. I am not sure if you actually need the unversioned python as a fallback, at least for rhel 6+ I can say that python2 exists :)
The current behavior leads to problems on el8 systems that have both python2 and python3 installed because a lot of the python2 paths assume that python is aliased to python2, which it is not ( #801 )
Greetings
Klaas
The text was updated successfully, but these errors were encountered:
I would also like to see python3 preferred in all locations possible. Currently when both python2 and python3 are installed on my system (with python3 as the default python) it is trying to run the python2 compatible scripts with python3 and is erroring out. If this can be addressed that would be greatly appreciated!
I think this is fixed via d1c9ac9 by @samarth793
I am not sure why it's still falling back to "python" if neither python3 nor python2 work (without checking if python actually works).
Hi,
you currently prefer python2 over python3, I think this should be the other way around seeing that python2 upstream is no longer supported and downstream (rhel) it will only receive security fixes
So a check like here:
PowerShell-DSC-for-Linux/LCM/dsc/engine/ConsistencyInvoker/ConsistencyInvoker.c
Lines 63 to 103 in 9f6301f
should be the other way around, use python3 first if not exists then python2. I am not sure if you actually need the unversioned python as a fallback, at least for rhel 6+ I can say that python2 exists :)
The current behavior leads to problems on el8 systems that have both python2 and python3 installed because a lot of the python2 paths assume that python is aliased to python2, which it is not ( #801 )
Greetings
Klaas
The text was updated successfully, but these errors were encountered: