Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Unable to start cqlsh on because of Python 3.12.3, getting "ModuleNotFoundError: No module named 'six.moves'"

$
0
0

Virtual machine and docker not practical for my application because I need to be able to save the Cassandra database locally on a regular basis (incremental backup is true)

Does anyone have a workaround for downgrading to Python 3.11 when 3.12 is installed with the kernel for Ubuntu? There are several unmet dependencies when I try to downgrade (even if I try to completely uninstall) so I tried to do the quick and dirty sudo ln -sf /usr/bin/python3.9 /usr/bin/python3 (I also tried with usr/bin/python3.11 /usr/bin/python3) only to receive the "No appropriate Python interpreter found." error when trying to start cqlsh.

So far it appears that the only option is to completely reinstall the kernel and somehow specify Python 3.11 when doing so before installing Cassandra again. This would be very tedious, especially if it does not guarantee that Cassandra will run locally. Ideas for other workarounds?

$:/apache-cassandra-4.1.5$ sudo ls /usr/bin/python* /usr/bin/python3  /usr/bin/python3.12$:/apache-cassandra-4.1.5$ sudo ln -sf /usr/bin/python3.9 /usr/bin/python3$:/apache-cassandra-4.1.5$ sudo bin/cqlshNo appropriate Python interpreter found.$:/apache-cassandra-4.1.5$ sudo ln -sf /usr/bin/python3.11 /usr/bin/python3$:/apache-cassandra-4.1.5$ sudo bin/cqlshNo appropriate Python interpreter found.$:/apache-cassandra-4.1.5$ sudo ln -sf /usr/bin/python3.12 /usr/bin/python3$:/apache-cassandra-4.1.5$ sudo bin/cqlshTraceback (most recent call last):  File "/apache-cassandra-4.1.5/bin/cqlsh.py", line 134, in <module>from cassandra.cluster import Cluster  File "/apache-cassandra-4.1.5/bin/../lib/cassandra-driver-internal-only-3.25.0.zip/cassandra-driver-3.25.0/cassandra/cluster.py", line 33, in <module>ModuleNotFoundError: No module named 'six.moves'

Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>