I get the same error after upgrading from 3.9 to 3.10 using brew. Unfortunately, I could not find the reason and answer. I explored installing and uninstalling other versions that were also installed via pip (cqlsh, cassandra-driver).
Looking for an alternative, I installed cassandra via docker, which I hope is also a viable alternative for you - it works for me.
Using the manual from docker-cassandra - https://hub.docker.com/_/cassandra/ I configure and connect to cassandra 3.10 with the following two commands (assuming docker ist is mostly installed from a DMG file).
docker run --name cas310 -p 9042:9042 -d cassandra:3.10 docker exec -it cas310 cqlsh
It also allows you to access cassandra through CQL from outside the container through the default cql port 9042.
Note. Connecting to a docked cassandra instance using cqlsh from the version of cassandra i installed via brew on the host results in the same error message. Therefore, it makes me believe that there are some problems with the python driver packaged with cassandras brew -package.
source share