I have a problem with the auto-complete within Cassandra 3.9 client "cqlsh", I don't know why? I did an update my brew command on MacOS Sierra. I suppose this problem is for a python update, but how it's related?
I tried to execute the tests:
$ cd apache-cassandra-3.9/pylib/cqlshlib/test
$ python test_cqlsh_completion.py
but I got this error:
Traceback (most recent call last):
File "test_cqlsh_completion.py", line 23, in <module>
from .basecase import BaseTestCase, cqlsh
ValueError: Attempted relative import in non-package
Someone know any solution?
If I list the directory it shows:
$ ls apache-cassandra-3.9/pylib/cqlshlib/test
__init__.py basecase.py
run_cqlsh.py test_cqlsh_commands.py
test_cqlsh_invocation.py test_cqlsh_parsing.py
winpty.py ansi_colors.py
cassconnect.py test_cql_parsing.py
test_cqlsh_completion.py test_cqlsh_output.py
test_keyspace_init.cql