Open mgmartian opened 1 month ago
BTW: Thanks for repackaging cqlsh - we really appreciate this project!
@mgmartian In Cassandra 5.0 (which is in late Beta), I have refactored the majority of cqlsh.py code into cqlshlib in the Apache Cassandra code base. That change should allow this package to bypass the ziplib oddities and other code specific to running CQLSH from /bin when tarball installed. You can expect an update here once 5.0 drops.
In cqlsh/cqlsh.py, there's this bit:
On systems that have Cassandra installed, this causes cqlsh to use the cassandra-driver that was installed with the cassandra RPM in preference to the one included in the venv.
In our case, this causes a failure because the cassandra-driver included with Cassandra 3.11.15 in /usr/share/cassandra/lib is not compatible with Python 3.10.
To get around this, we set
CQLSH_NO_BUNDLED=1
which disables this behavior... but it seems like when repackaging cqlsh, you should comment out these two lines instead.