When:
On Linux distros where there are two versions of python installed (2 and 3), and where 'python' command is aliased to ptyhon3.
What
during cmake configuration tools/sdc.py script crashes with "SyntaxError: invalid syntax" on lines with "print" command.
Why
in python3 "print" is a function and should be called with parentheses:
- python2
print "some value: %s" % myValue
- python3
print ( "some value %s" % myValue)
Solutions
- call tools/sdc.py directly and change default "python" to "python2" in tools/sdc.py
- change in KDbCreateShareDataClasse.cmake to use python2 instead of python in KDB_CREATE_SHARED_DATA_CLASSES macro.