python 2.7 - Error while using cql connect -


con = cql.connect(host="127.0.0.1",port=9160,keyspace="my_keyspace",cql_version='3.0.0')  traceback (most recent call last): file "<stdin>", line 1, in <module> file "build/bdist.linux-x86_64/egg/cql/connection.py", line 143, in connect file "build/bdist.linux-x86_64/egg/cql/connection.py", line 63, in __init__ file "build/bdist.linux-x86_64/egg/cql/thrifteries.py", line 177, in set_initial_keyspace file "build/bdist.linux-x86_64/egg/cql/cursor.py", line 80, in execute file "build/bdist.linux-x86_64/egg/cql/thrifteries.py", line 77, in get_response file "build/bdist.linux-x86_64/egg/cql/thrifteries.py", line 98, in handle_cql_execution_errors 

cql.apivalues.programmingerror: bad request: have not logged in

i new cassandra,please let me know wrong doing here.

assuming using https://pypi.python.org/pypi/cql, if go home page, says deprecated https://code.google.com/archive/a/apache-extras.org/p/cassandra-dbapi2

i recommend using cassandra-driver https://datastax.github.io/python-driver


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -