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

Pylint error when importing from setproctitle #31

Closed
dvarrazzo opened this issue Mar 17, 2014 · 1 comment
Closed

Pylint error when importing from setproctitle #31

dvarrazzo opened this issue Mar 17, 2014 · 1 comment
Labels

Comments

@dvarrazzo
Copy link
Owner

Originally submitted by Seth.T.Rosenblum as issue 31:

What steps will reproduce the problem?
1.Create a python script with the line "from setproctitle import setproctitle"
2.Install pylint 1.1.0
3.run pylint against your script with rule E0611 enabled

What is the expected output? What do you see instead?
It should pass no problem, but you see:
[E0611(no-name-in-module), ] No name 'setproctitle' in module 'setproctitle'

What version of the product are you using? On what operating system?
1.1.8 on various OSs with python 2.7.

Please provide any additional information below.
This might be a bug with the way python deals with c-defined libraries, but it seemed like something you guys could more easily figure out.

@dvarrazzo
Copy link
Owner Author

Comment by daniele.varrazzo:

The module is perfectly introspectable: you either have your pylint pythonpath messed up or it's their bug.

In [1]: import setproctitle

In [2]: dir(setproctitle)
Out[2]:
['doc',
'file',
'name',
'package',
'version',
'getproctitle',
'setproctitle']

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

No branches or pull requests

1 participant