I tried to install the Datastax Python Cassandra driver on Ubuntu 14.04.5. LTS. The installation succeeds, but a subsequent attempt to use it fails:
Welcome to Ubuntu 14.04.5 LTS (GNU / Linux 3.13.0-91-generic x86_64)
~ $ python3 --version
Python 3.5.2
~ $ python3 -c 'import cassandra; print (cassandra .__ version__) '
3.7.0
~ $ python3 cassandra_loader.py
Traceback (most recent call last):
File "cassandra_loader.py", line 7, in
from cassandra_tools import transform_record, QueryManager
File "../lib/cassandra_tools.py", line 6, in
from cassandra.cluster import Cluster
ImportError: /usr/local/lib/python3.5/site-packages/cassandra/cluster.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyException_Check
the same installation process and the same code work well on RedHat. A Google search for an error code returns nothing. Anyone have an idea what could be the problem?
source share