Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
7.99k stars 1.74k forks source link

error: idna 2.6 is installed but idna<2.6,>=2.5 is required by set(['requests']) #1276

Open JC1738 opened 7 years ago

JC1738 commented 7 years ago

My Dockerfile started failing.

//Install Elastalert. RUN python setup.py install

Using

ENV ELASTALERT_URL https://github.com/Yelp/elastalert/archive/v0.1.7.zip

But tried various versions of elastalert

Installed /usr/lib/python2.7/site-packages/certifi-2017.7.27.1-py2.7.egg
error: idna 2.6 is installed but idna<2.6,>=2.5 is required by set(['requests'])
The command '/bin/sh -c python setup.py install' returned a non-zero code: 1

Any help or starting places to dig would be appreciated. I tried changing alpine version, tried changing elastalert versions, but either return same error, or in case of older alpine, missing python 2.

hampsterx commented 7 years ago

looks like in requirements

exotel>=0.1.3',

which for latest version (0.1.5)

https://github.com/sarathsp06/exotel-py/blob/master/requirements.txt

is fixing requests to

requests==2.18.1

which has

 'idna>=2.5,<2.6',

Interestingly, master version of requests has

'idna>=2.5,<2.7',

On a new virtualenv on ubuntu it installs fine (and it ends up with idna=2.5 + requests==2.18.3) but like you, on a docker image with alpine it's failing trying to use (idna=2.6). hmm

Qmando commented 7 years ago

Pinning idna to 2.5 will fix this problem. I saw on the requests github page, this was fixed today and merged into master, but a new version hasn't been released.

On Aug 9, 2017 8:23 PM, "TiM" notifications@github.com wrote:

looks like in requirements

exotel>=0.1.3',

which for latest version (0.1.5)

https://github.com/sarathsp06/exotel-py/blob/master/requirements.txt

is fixing requests to

requests==2.18.1

which has

'idna>=2.5,<2.6',

Interestingly, master version of requests has

'idna>=2.5,<2.7',

On a new virtualenv on ubuntu it installs fine (and it ends up with idna=2.5 + requests==2.18.3) but like you, on a docker image with alpine it's failing trying to use (idna=2.6). hmm

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Yelp/elastalert/issues/1276#issuecomment-321440157, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGLjhn0uUGIPrC8k_fykfoyMCeGIIfhks5sWneZgaJpZM4OxT1o .

JC1738 commented 7 years ago

I see, thanks, found

requests/requests#4222