chriselswede / hanacleaner

A house keeping script for SAP HANA
76 stars 44 forks source link

Running an error #41

Open xyzol opened 1 year ago

xyzol commented 1 year ago

Hi,

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