Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pycurl install issue #2

Open
osallou opened this issue Nov 24, 2014 · 3 comments
Open

pycurl install issue #2

osallou opened this issue Nov 24, 2014 · 3 comments
Labels

Comments

@osallou
Copy link
Contributor

osallou commented Nov 24, 2014

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.

@horkko
Copy link
Contributor

horkko commented Dec 8, 2014

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

@pmalek
Copy link

pmalek commented Jul 24, 2015

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 :)

@osallou osallou added the bug label Oct 18, 2016
@osallou
Copy link
Contributor Author

osallou commented Apr 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants