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

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

Open
JC1738 opened this issue Aug 8, 2017 · 3 comments · Fixed by jhipster/jhipster-console#72

Comments

@JC1738
Copy link

JC1738 commented Aug 8, 2017

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
Copy link

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
Copy link
Member

Qmando commented Aug 10, 2017 via email

@JC1738
Copy link
Author

JC1738 commented Aug 10, 2017

I see, thanks, found

psf/requests#4222

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

Successfully merging a pull request may close this issue.

3 participants