0
Traceback (most recent call last):
  File "/usr/local/bin/cqlsh", line 7, in <module>
    from cqlsh.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/cqlsh/__main__.py", line 3, in <module>
    from cqlsh.cqlsh import main as cqlsh_main
  File "/usr/local/lib/python2.7/dist-packages/cqlsh/cqlsh.py", line 131, in <module>
    from six import StringIO, ensure_text, ensure_str
ImportError: cannot import name ensure_text
1
  • Welcome to Stack Exchange! Your question is missing a few details. The general guidance is that you (a) provide a good summary of the problem that includes software/component versions, the full error message + full stack trace; (b) describe what you've tried to fix the problem, details of investigation you've done; and (c) steps to replicate the problem. For guidance, see stackexchange.com/tour and dba.stackexchange.com/help/how-to-ask. Cheers! Commented May 3, 2023 at 11:29

1 Answer 1

2

Without relevant details, it's impossible for us to provide you with a meaningful response.

All I can say is that I suspect you have an environmental issue where you have an old Python six library installed on your machine that doesn't have the ensure_str and ensure_text functions added in v1.12.0.

A friendly reminder that you need to provide details about your problem including:

  • the cqlsh software version
  • Cassandra version
  • full error message + full stack trace
  • steps to replicate the problem
  • what investigation you've done
  • whether you've done any research

If it helps, I've published an article on the Apache Cassandra website on How to ask good questions. Cheers!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.