python 3.x - cluster.cpython-34m.so: undefined symbol: PyException_Check -


this question has answer here:

i running simple python(3.4.3) flask app on amazon linux, uses datastax cassandra-driver(3.6). application failing import module.

traceback (most recent call last):   file "application.py", line 12, in <module>     cassandra.cluster import cluster importerror: /opt/python/run/venv/local/lib64/python3.4/site-packages/cassandra/cluster.cpython-34m.so: undefined symbol: pyexception_check (venv)[ec2-user@ip-1-1-1-1 app]$ uname -a linux ip-1-1-1-1 4.4.15-25.57.amzn1.x86_64 #1 smp wed jul 27 22:37:49 utc 2016 x86_64 x86_64 x86_64 gnu/linux  other packages installed: $ pip freeze cassandra-driver==3.6.0 click==6.6 flask==0.11 itsdangerous==0.24 jinja2==2.8 markupsafe==0.23 six==1.10.0 werkzeug==0.11.11 xmltodict==0.10.2 

latest version of cython (0.25) released today broke cassandra-driver.

workaround issue install cython==0.24.1 before installing cassandra-driver.

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

you may need remove existing cassandra-driver package first site-packages:

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

see https://datastax-oss.atlassian.net/browse/python-656 more information


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -