Failed to restore pycurl using OpenSSL

I am trying to rebuild pycurl with OpenSSL due to this error . I am using this example :

  • sudo apt-get install build-essential fakeroot dpkg-dev
  • mkdir ~ / python-pycurl-openssl
  • cd ~ / python-pycurl-openssl
  • sudo apt-get source python-pycurl
  • sudo apt-get build-dep python-pycurl
  • sudo apt-get install libcurl4-openssl-dev
  • sudo dpkg-source -x pycurl_7.19.3-0ubuntu3.dsc
  • cd pycurl-7.19.3
  • edit debian / control file and replace all instances of "libcurl4-gnutls-dev" with "libcurl4-openssl-dev" (7 changes)
  • sudo PYCURL_SSL_LIBRARY = openssl dpkg-buildpackage -rfakeroot -b
  • sudo dpkg -i ../ python-pycurl_7.19.3-0ubuntu3_amd64.deb

But I'm still sticking with the GnuTLS pycurl build.

>>> pycurl.version
'PycURL/7.19.5.1 libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3'

      

Operations log (there are some error traces): http://pastebin.com/6hUEUGar

I use:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty

      

What am I doing wrong?


I could solve the problem using pip:

sudo pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
sudo pip install pycurl --upgrade

      

Now:

>>> pycurl.version
'PycURL/7.19.5.1 libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3'

      

But I'm not sure. Right. Why are there two packages in the system? Or is this ok and python is just linked to one of them?

+3
python ubuntu openssl pycurl gnutls


source to share


No one has answered this question yet

Check out similar questions:

1146
How to create a self-signed certificate with OpenSSL
five
Solving sslv3 crash when trying to use client certificate
2
mysqlfailover: No module named mysql.utilities.common.tools
2
Laravel Guzzle: curl error
2
curl: (35) gnutls_handshake () failed: public key signature verification failed
1
Installing RApache on Ubuntu 16.04 Apache / 2.4.18 (Ubuntu): I am getting some errors
1
libcurl4 not used during ccminer build
0
Why is it still complaining about libcurl.so.4?
0
Libcurl not updated
0
What's the corresponding CURLOPT_ACCEPT_ENCODING option in pycurl?



All Articles
Loading...
X
Show
Funny
Dev
Pics