Installed cassandra 3.11.1 version in Windows 10 with jdk 1.8.0_151 and python 3.6. All paths available in environment variables. When I run cqlsh in command prompt, I get the below error:
File "C:\Cassandra\bin\\cqlsh.py", line 145
except ImportError, e:
^
SyntaxError: invalid syntax
Anyone, Any luck with the above error?
cqlsh requires a Python 2 interpreter. See https://issues.apache.org/jira/browse/CASSANDRA-10190
I had the same problem.I downgrade python to 2.7 and it works for me.
ERROR:
cqlsh.py", line 146 except ImportError, e: ^ SyntaxError: invalid syntax
Ref: https://docs.python.org/3.6/tutorial/errors.html
The error is correct as your syntax is wrong. It should be:
except ImportError as e:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With