Hello Dan:

pylint is fully installed.

Even with the latest pylint the issue still happens:

$ cat li.py
#!/usr/bin/env python
"""foobar"""
import os
print os.listdir(os.curdir)

$ /usr/local/bin//pylint --version
pylint 1.6.5,
astroid 1.4.9
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4]

$ /usr/local/bin/pylint --reports=n li.py
************* Module li
E:  3, 0: Unable to import 'os' (import-error)

What am I missing?

Thank you!

Bill

On 01/30/2017 07:01 PM, Dan Stromberg wrote:

That's a pretty old pylint.  Maybe update it?

Is pylint fully or partially installed?

What does "which pylint" say?

--
Dan Stromberg