I cannot use the script on suse15.4 just as ./hanacleaner.py
db:/ # python3 hanacleaner.py --help
Traceback (most recent call last):
File "hanacleaner.py", line 2300, in <module>
main()
File "hanacleaner.py", line 1472, in main
SID = get_sid()
File "hanacleaner.py", line 370, in get_sid
SID = run_command('echo $SAPSYSTEMNAME').upper()
File "hanacleaner.py", line 363, in run_command
out = subprocess.run(cmd, shell=True, capture_output=True, text=True).stdout.strip("\n")
File "/usr/lib64/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
db:/ # python3 --version
Python 3.6.15
Hi,
I cannot use the script on suse15.4 just as ./hanacleaner.py