The fix is in 8.0.4 which is now available
May need to set python.version in server.conf (https://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf)
python.version =
{python2|python3|force_python3}
* For Python scripts only, sets the default Python version to use.
* Can be overridden by other 'python.version' values elsewhere,
with the following exception:
* If you set to "force_python3", the system always uses Python 3, and
ignores 'python.version' values that
you set elsewhere.
* Default: python2
This will determine the name of the python executable it looks for when running python commands
(relevant python install needs to be in PATH)
If your instance uses python.exe,
python.version needs to be set to a value of:-
unspecified
This is not documented in current docs.
Set python.version accordingly :
python2 - python install uses python2/python2.exe
python3 - python install uses python3/python3.exe
unspecified - python install uses python/python.exe
Tested just now and it works.
... View more