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
Fails to validate ssl.PROTOCOL_TLSv1
#399
Comments
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): I can't reproduce with and without an virtualenv. What's the astroid version and on which platform? |
Original comment by Benoît Allard (BitBucket: benallard, GitHub: @benallard?): Debian jessie within a Docker container, pylint installed with ou without pip (I.e. 1.3.0 has the same trouble). |
Original comment by Benoît Allard (BitBucket: benallard, GitHub: @benallard?): Claudiu, have you been able to reproduce that ? Or should I provide even more information ? I could even share the Dockerfile with you ! |
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Hey, Benoît! Not yet, I was travelling these days. I might be able to take a look at it this weekend. |
FWIW, I just saw the same with an up-to-date pylint/astroid in a virtualenv. |
@The-Compiler thanks, I'm gonna try to reproduce it then. |
Hmm, I can't reproduce this on Debian Jessie and Ubuntu Trusty FWIW, I only see it on my own Archlinux machine. |
I just noticed on the same machine I get |
Do you have a way in which I could reproduce this myself? A docker container or something similar would be nice. |
Seems like this is potentially the same issue as pylint-dev/pylint#399, it also happens on the same machines.
@benallard do you still have that |
From the previous comments, it looks like it was pretty straight-forward: use Debian:Jessie as base, install pylint and you're done. |
I can indeed reproduce this with this FROM debian:jessie
RUN apt-get -y update && apt-get -y install python-pip
RUN pip install pylint
RUN echo "import ssl; ssl.PROTOCOL_TLSv1" >> test.py
CMD pylint test.py -rn
By the way, I'm seeing this with Python 3.5 on my Archlinux machine, so 2.7 vs. 3.5 doesn't seem to make a difference. |
Fixed in astroid (pylint-dev/astroid@1012227 for 1.4.0 branch). Will be part of a pylint 1.5.6 soonish. |
Originally reported by: Benoît Allard (BitBucket: benallard, GitHub: @benallard?)
The following script:
Give the following error:
This is with pylint 1.4.0, python 2.7.8.
The text was updated successfully, but these errors were encountered: