[Python-projects] Pylint not recognizing numpy
Robert Westerfield
robwesterfield at gmail.com
Sat May 17 23:12:05 CEST 2008
Hi
I am unable to get pylint to recognize numpy (see below for a simple test-case).
It would be incredibly useful for those of us who are transitioning
from Matlab to python-based scientific computing to use pylint to
straighten up our sloppy python code.
Thank you!
-Rob.
1) Confirming that python picks up numpy:
D:\src>python DummyModule.py
[1 2 3]
2) Running pylint:
D:\src>pylint -rn -iy DummyModule
No config file found, using default configuration
************* Module DummyModule
E0611: 5: No name 'array' in module 'numpy'
3) Contents of DummyModule.py:
""" Dummy doc-string
"""
from numpy import array
if __name__ == '__main__':
Z = array([1, 2, 3])
print Z
More information about the Python-Projects
mailing list