My OSX install of Cassandra seems to have been broken by yesterday's release. Cassandra seems to start OK.
Jeremys-MacBook-Pro: fractal jeremy$ cqlsh --version
cqlsh 5.0.1
Jeremys-MacBook-Pro:fractal jeremy$ cqlsh localhost
Traceback (most recent call last):
File "/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py", line 2443, in <module>
main(*read_options(sys.argv[1:], os.environ))
File "/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py", line 2421, in main
encoding=options.encoding)
File "/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py", line 488, in __init__
**kwargs)
File "cassandra/cluster.py", line 735, in cassandra.cluster.Cluster.__init__ (cassandra/cluster.c:10935)
TypeError: __init__() got an unexpected keyword argument 'no_compact'
I just commented this line 488: #no_compact=no_compact, in file /usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py and it works again.
I also had this issue. My current workaround was to install cqlsh via pip, and then run Cassandra (ScyllaDB in our case) via a docker container.
You can file an issue here.
csqlsh was not broken in the 3.11.2 release of Cassandra. However, the Homebrew formula for the 3.11.2 release was originally broken, per Homebrew issue 24977. Per that ticket and CASSANDRA-14301, Homebrew was configured to use the wrong version of the Cassandra Driver, which was using an incompatible version of Python.
This has since been fixed in Homebrew, so new installations of 3.11.2 should not have this issue.