on 05-17-2023 10:13 AM
Good morning,
After the upgrade from Python 2 to 3, the hanacleanear.py doesn't work. I receive the next error:
File "hanacleaner.py", line 235
print message
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(message)?
Does any one have this issue? I've sent and email to christian.hansen01@sap.com (the owner of the script) but I haven't received any answer..RegardsMaxiHi Maximino,
Rename the hanacleaner.py with hanacleaner.py.old
Download the hanacleaner.py script again from Github as given the link below
https://github.com/chriselswede/hanacleaner
Then upload it into the Hana DB server and then run Python script again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I was downloading the file in a wrong way.
I've downloaded the full file and now it works fine.
Thanks and regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
The error is now different:
File "hanacleaner.py", line 8 <!DOCTYPE html> ^ SyntaxError: invalid syntax
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.