SAP HANA – Error “SyntaxError: Missing parentheses in call to ‘print'” when calling HANACleaner

The problem appeared after updating HANA to one of the latest versions, i.e. 200.59.X. The error looks exactly like this:

server> python hanacleaner.py
File "hanacleaner.py", line 319
print "Email Client: ", self.emailClient
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Email Client: ", self.emailClient)?

Solution

More about HanaCleaner I wrote here. Mentioned above problem is related to Python. You have to remember that Python 2 is deprecated and hence Python 3 will be the only supported Python version for SAP HANA. After upgrading to or installing Revision 59.01 and higher will switch to Python 3 by default. More information about it You can find in notes: 3093542, 3070359 and 3121104.

To resolve above problem download the latest SAP HANACleaner Script (hanacleaner.py) from this link – Your version probably is outdated.

Copyright © 2023. SAPBasisWorld.com Privacy Policy