Datastax Python cassandra driver build fails on Ubuntu

后端 未结 2 836
心在旅途
心在旅途 2020-12-18 03:23

I was trying to install Datastax Python Cassandra driver on Ubuntu 14.04.5. LTS. Installation succeeds but subsequent attempt to use it fails with the error:

Welc         


        
2条回答
  •  时光说笑
    2020-12-18 04:19

    This is duplicate of this question: cluster.cpython-34m.so: undefined symbol: PyException_Check

    I answered it there but here is copy of the answer as I can't comment.


    Latest version of Cython (0.25) released today broke cassandra-driver.

    Workaround for this issue it to install Cython==0.24.1 before installing cassandra-driver.

    (env) $ pip install Cython==0.24.1 (env) $ pip install cassandra-driver

    You may need to remove existing cassandra-driver package first from site-packages:

    rm -r $WHERE_PYTHON_IS_INSTALLED/lib/python2.7/site-packages/cassandra*

    See https://datastax-oss.atlassian.net/browse/PYTHON-656 for more information

提交回复
热议问题