Hey there,

When running bin/cqlsh or the test CqlshTest#testKeyspaceRequired, I'm
getting an error : "Python Cassandra driver not installed, or not on
PYTHONPATH." The suggestion to install the driver with pip is in the test
failure output (below), but is pre-installing the driver a new requirement
for using cqlsh? In earlier releases up through 4.0-beta4 the driver was
bundled. For example in 3.11.10
$ find . -name "*driver*"
./doc/source/getting_started/drivers.rst
./lib/cassandra-driver-core-3.0.1-shaded.jar
*./lib/cassandra-driver-internal-only-3.10.zip*
*./lib/cassandra-driver-internal-only-3.11.0-bb96859b.zip*
./lib/licenses/cassandra-driver-3.0.1.txt

Whereas 4.0-rc1 only has the Java jars.
$ find . -name "*driver*"
./doc/source/getting_started/drivers.rst
./build/lib/jars/cassandra-driver-core-3.11.0-shaded.jar
./build/dist/lib/cassandra-driver-core-3.11.0-shaded.jar
./lib/cassandra-driver-core-3.11.0-shaded.jar

Wasn't able to find mention of a new driver requirement here:
https://cassandra.apache.org/download/
https://cassandra.apache.org/doc/latest/getting_started/installing.html

Have I got some build misconfiguration or have requirements changed due to
the whole dependency bundling question that recently came up?

Thanks,
Angelo

####
Test output:

[junit-timeout] Testsuite: org.apache.cassandra.tools.cqlsh.CqlshTest Tests
run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.872 sec
[junit-timeout]
[junit-timeout] Testcase:
testKeyspaceRequired(org.apache.cassandra.tools.cqlsh.CqlshTest): FAILED
[junit-timeout]
[junit-timeout] Expected: a string containing "No keyspace has been
specified" ignoring case
[junit-timeout]      but: was "
[junit-timeout] Python Cassandra driver not installed, or not on PYTHONPATH.
[junit-timeout] You might try "pip install cassandra-driver".
[junit-timeout]
[junit-timeout] Python: /usr/local/bin/python3.7
[junit-timeout] Module load path:
['/wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-rc1-src/bin/../lib/geomet-0.1.0.zip',
'/wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-rc1-src/bin/../lib/six-1.12.0-py2.py3-none-any.zip',
'/wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-rc1-src/bin/../lib/futures-2.1.6-py2.py3-none-any.zip',
'/wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-rc1-src/bin',
'/usr/local/lib/python37.zip', '/usr/local/lib/python3.7',
'/usr/local/lib/python3.7/lib-dynload',
'/usr/local/lib/python3.7/site-packages']
[junit-timeout]
[junit-timeout] Error: No module named 'cassandra'
[junit-timeout]
[junit-timeout] "

Reply via email to