[Python-projects] followup on ticket #3214: pylint/numpy problem
Nicolas Chauvat
nicolas.chauvat at logilab.fr
Thu Nov 13 16:49:13 CET 2008
Hello,
On Thu, Nov 13, 2008 at 10:26:16AM -0500, Sakaie, Ken wrote:
> Did anything ever happen regarding ticket #3214 (pylint doesn't like numpy).
>
> I did the following test:
>
> In test.py:
> from numpy import sqrt
>
> Then do:
> pylint test.py
>
> I get:
> No config file found, using default configuration
> ************* Module tmp
> C: 1: Missing docstring
> E: 1: No name 'sqrt' in module 'numpy'
>
> Version info:
> numpy version 1.0.4
> pylint 0.13.2,
> astng 0.17.1, common 0.25.1
> Python 2.4.3 (#1, May 24 2008, 13:47:28)
> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
$ pylint --version
No config file found, using default configuration
pylint 0.15.2,
astng 0.17.3, common 0.36.0
Python 2.5.2 (r252:60911, Sep 29 2008, 21:15:13)
[GCC 4.3.2]
$ cat tests.py
from numpy import sqrt
$ pylint tests.py
No config file found, using default configuration
************* Module tests
C: 1: Missing docstring
W: 1: Unused import sqrt
Looks like upgrading pylint and common is the easiest fix.
--
Nicolas Chauvat
logilab.fr - services en informatique scientifique et gestion de connaissances
More information about the Python-Projects
mailing list