Open osallou opened 9 years ago
Related to this issue, I encoutered an error after successfully installed pycurl (7.19.3 on CentOS6) while running tests (nosetests): $ ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)
I've soled this following this :
http://stackoverflow.com/questions/21096436/pip-install-pycurl-ssl-backend-error
None of the solutions worked for me (using CentOS 6.6, libcurl 7.19.7 python 2.6.6 and pycurl 7.19.5.1).
This is my error message:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
and the command I use to install it from .tar.gz
:
sudo pip uninstall -y pycurl ; export PYCURL_SSL_LIBRARY=nss && sudo python setup.py clean && sudo python setup.py --with-nss install && sudo ldconfig && yum
UPDATE
it is crucial to have clean working directory while compiling pycurl
:) then it works :)
Same kind of workaround for openssl
(venv) biomaj-test $ export PYCURL_SSL_LIBRARY=openssl
(venv) biomaj-test $ pip install --compile --install-option="--with-openssl" --no-cache-dir pycurl
Depending on OS version, latest pycurl may not match installed curl library version (7.19.0 on CentOS 6 for example). You should in this case install the pycurl release matching the OS version (yum search pycurl).
Sometimes, the pycurl.so file is not installed either, to fix this you need to download the source of pycurl for this version, adapt the setup.py and run the install manually (python setup.py install) (see http://stackoverflow.com/questions/7391638/pycurl-installed-but-not-found).
After that the biomaj install can be run.