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

Fails to validate ssl.PROTOCOL_TLSv1 #399

Closed
pylint-bot opened this issue Nov 28, 2014 · 13 comments
Closed

Fails to validate ssl.PROTOCOL_TLSv1 #399

pylint-bot opened this issue Nov 28, 2014 · 13 comments
Labels
Bug 🪲 Checkers Related to a checker

Comments

@pylint-bot
Copy link

Originally reported by: Benoît Allard (BitBucket: benallard, GitHub: @benallard?)


The following script:

import ssl
ssl.PROTOCOL_TLSv1

Give the following error:

E: 2, 0: Module 'ssl' has no 'PROTOCOL_TLSv1' member (no-member)

This is with pylint 1.4.0, python 2.7.8.


@pylint-bot
Copy link
Author

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?

@pylint-bot
Copy link
Author

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).

@pylint-bot
Copy link
Author

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 !

@pylint-bot
Copy link
Author

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.

@pylint-bot pylint-bot added Bug 🪲 Checkers Related to a checker labels Dec 9, 2015
@The-Compiler
Copy link
Contributor

FWIW, I just saw the same with an up-to-date pylint/astroid in a virtualenv.

@PCManticore
Copy link
Contributor

@The-Compiler thanks, I'm gonna try to reproduce it then.

@The-Compiler
Copy link
Contributor

Hmm, I can't reproduce this on Debian Jessie and Ubuntu Trusty FWIW, I only see it on my own Archlinux machine.

@The-Compiler
Copy link
Contributor

I just noticed on the same machine I get no-member errors for http.client.OK and other status code constants. I don't get them anywhere else (like on CI) though.

@PCManticore
Copy link
Contributor

Do you have a way in which I could reproduce this myself? A docker container or something similar would be nice.

The-Compiler added a commit to qutebrowser/qutebrowser that referenced this issue Jan 17, 2016
Seems like this is potentially the same issue as
pylint-dev/pylint#399, it also happens on the same
machines.
@The-Compiler
Copy link
Contributor

@benallard do you still have that Dockerfile? Last time I tried docker I only had trouble with it, so I'd rather not mess with it again 😉

@benallard
Copy link

From the previous comments, it looks like it was pretty straight-forward: use Debian:Jessie as base, install pylint and you're done.

@The-Compiler
Copy link
Contributor

I can indeed reproduce this with this Dockerfile:

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
$ docker build -t docker-pylint-debian .
$ docker run docker-pylint-debian

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.

@PCManticore
Copy link
Contributor

Fixed in astroid (pylint-dev/astroid@1012227 for 1.4.0 branch). Will be part of a pylint 1.5.6 soonish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Checkers Related to a checker
Projects
None yet
Development

No branches or pull requests

4 participants