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

Created on 4 Dec 2018  路  3Comments  路  Source: Yelp/elastalert

Hi

I am getting "idna 2.8 is installed but idna<2.8,>=2.5 is required by set(['requests'])" it seems idna 2.8 has been released 3 hours ago and my docker builds are now failing

Any idea's on how to work around without having to manually edit the package

This is using the dockerfile in the repo, with one or 2 other files copied in

Thanks

Most helpful comment

Hi

As a temporary workaround I have edited the Dockerfile to reflect the following. Only relevant section showed

RUN sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.15/g' setup.py && \
    pip install "idna==2.7" && \
    python setup.py install && \
    pip install -r requirements.txt

And this seems to be working fine for now

Thanks

All 3 comments

Hi

As a temporary workaround I have edited the Dockerfile to reflect the following. Only relevant section showed

RUN sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.15/g' setup.py && \
    pip install "idna==2.7" && \
    python setup.py install && \
    pip install -r requirements.txt

And this seems to be working fine for now

Thanks

@rhysxevans faced the same issue, added the temp workaround for now. I guess, the python requests will update their requirements soon
https://github.com/requests/requests/issues/4890

According to requests/requests#4890, Requests has been up to 2.21.0 supporting idna 2.8. I think the original problem fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tkumark picture tkumark  路  3Comments

shortstack picture shortstack  路  3Comments

abhishekjiitr picture abhishekjiitr  路  3Comments

AweiWoo picture AweiWoo  路  3Comments

otisonoza picture otisonoza  路  4Comments