Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to use cqlsh leads to ImportError: No module named concurrent.futures #1607

Open
viertelb opened this issue May 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@viertelb
Copy link

viertelb commented May 8, 2023

Bug Report

Describe the bug
Trying to use cqlsh leads to error propabably related to Python on two systems with Ubuntu

cqlsh <URL> <PORT>
Traceback (most recent call last):
  File "/snap/cqlsh/172/bin/cqlsh", line 143, in <module>
    from cassandra.cluster import Cluster
  File "cassandra/cluster.py", line 24, in init cassandra.cluster
ImportError: No module named concurrent.futures

Environment (please complete the following information):

I installed with snap install cqlsh. No other option is availlable on Ubuntu 23.04, especially no apt package.

First system is a VM with GUI, second one a server I use via SSH:

Linux ...-VirtualBox 5.19.0-41-generic #42-Ubuntu SMP PREEMPT_DYNAMIC Mon Apr 17 19:17:03 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

 $ python --version
Python 3.10.7

On the Ubuntu server no python seems to be installed:

Linux ... 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
root@host:~# which python
root@host:~# 

@viertelb viertelb added bug Something isn't working needs-triage labels May 8, 2023
@olim7t
Copy link

olim7t commented May 24, 2023

Hi @viertelb,

I couldn't reproduce your issue on a fresh 23.04 install in a Vagrant VM. But it looks like a python version issue or missing library (on your server machine, python not being available would definitely be a problem).

This Github project deals mostly with the Kubernetes operator, for cqlsh-specific questions the Cassandra user mailing list or Slack will probably be more helpful, see how to connect here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants