JSParser icon indicating copy to clipboard operation
JSParser copied to clipboard

ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)

Open sawzeeyy opened this issue 7 years ago • 7 comments

Any help?

$ python3 handler.py Traceback (most recent call last): File "handler.py", line 5, in import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse File "/Users/../../JSParser/safeurl.py", line 17, in import pycurl ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)

sawzeeyy avatar Mar 14 '18 09:03 sawzeeyy

Assuming you're on macOS (High Sierra) check the following link - worked for me.

Essentially: $ brew reinstall openssl $ pip uninstall pycurl $ pip install --install-option="--with-openssl" --install-option="--openssl-dir=/usr/local/opt/openssl" pycurl

I'm assuming you've ran setup.py before - if you do $ python handler.py

Should work now.

Regala avatar May 31 '18 09:05 Regala

Hi @Regala I can't uninsatall pycurl on my device I'm getting the error

Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

xhzeem avatar Feb 25 '19 08:02 xhzeem

Hi @Regala I can't uninsatall pycurl on my device I'm getting the error

Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Use

sudo pip uninstall pycurl

attacker34 avatar Jun 18 '19 07:06 attacker34

For those who can't fix this on MacOS:

brew install pipenv
pipenv shell
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
pip install pycurl --global-option="--with-openssl"

clirimemini avatar Aug 19 '19 12:08 clirimemini

Hi @sawzeeyy I'm pretty sure image

P1kAju avatar Dec 01 '19 05:12 P1kAju

Wow @sawzeeyy My hard change finally Successfully

  • remove existing pycurl installation pip3 uninstall pycurl

  • export variable with your link-time ssl backend (which is openssl above) export PYCURL_SSL_LIBRARY=openssl

  • then, re-install pycurl with no cache pip3 install pycurl --no-cache-dir

next question😂 image

P1kAju avatar Dec 01 '19 05:12 P1kAju

if you use “pip install pycurl" in your anaconda virtulenvironment this problem may occur,i use "conda install pycurl",then this problem is solved

FightingSuperYan avatar Dec 07 '19 06:12 FightingSuperYan