Skip to content
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

Running an error #41

Open
xyzol opened this issue Jun 25, 2023 · 0 comments
Open

Running an error #41

xyzol opened this issue Jun 25, 2023 · 0 comments

Comments

@xyzol
Copy link

xyzol commented Jun 25, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant