Hello All:

A new data point... I am seeing the issue only on Ubuntu 14.04.

It works fine on Redhat Enterprise Linux Server 6.6.

So it looks like pylint is broken on Ubuntu.

Is there a workaround/fix for Ubuntu 14.04?

Regards,

Bill

On 1/31/2017 8:29 AM, Bill D wrote:

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