Skip to content

can't enable linter on VSCode on Ubuntu !! #3492

@YousefSaber

Description

@YousefSaber

Although that Linter and pip are installed on my Ubuntu system VSCode can't detect or use them !!

this what my terminal says to me every time I open a python file !!

image
when I press install that is what I see
image

this is what my terminal shows me !!

  • VS Code version: 1.29.1
  • Extension version (available under the Extensions sidebar): XXX 2018.10.1
  • OS and version: Ubuntu 18.10
  • Python version (& distribution if applicable, e.g. Anaconda): XXXPython 3.6.7 64 bit
$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
joseph@joseph-X541UJ:~$ sudo pip install pylint
The directory '/home/joseph/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/joseph/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pylint
  Downloading https://files.pythonhosted.org/packages/40/5f/2ba2603512cbf48b2d5fa9c3ed494d61bef84fcf2f7a03e602cd15929727/pylint-1.9.3-py2.py3-none-any.whl (694kB)
    100% |████████████████████████████████| 696kB 378kB/s 
Collecting isort>=4.2.5 (from pylint)
  Downloading https://files.pythonhosted.org/packages/41/d8/a945da414f2adc1d9e2f7d6e7445b27f2be42766879062a2e63616ad4199/isort-4.3.4-py2-none-any.whl (45kB)
    100% |████████████████████████████████| 51kB 804kB/s 
Collecting singledispatch; python_version < "3.4" (from pylint)
  Downloading https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting astroid<2.0,>=1.6 (from pylint)
  Downloading https://files.pythonhosted.org/packages/0e/9b/18b08991c8c6aaa827faf394f4468b8fee41db1f73aa5157f9f5fb2e69c3/astroid-1.6.5-py2.py3-none-any.whl (293kB)
    100% |████████████████████████████████| 296kB 566kB/s 
Requirement already satisfied: configparser; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from pylint)
Collecting mccabe (from pylint)
  Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting backports.functools-lru-cache; python_version == "2.7" (from pylint)
  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from pylint)
Collecting futures (from isort>=4.2.5->pylint)
  Downloading https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl
Requirement already satisfied: enum34>=1.1.3; python_version < "3.4" in /usr/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint)
Collecting wrapt (from astroid<2.0,>=1.6->pylint)
  Downloading https://files.pythonhosted.org/packages/a0/47/66897906448185fcb77fc3c2b1bc20ed0ecca81a0f2f88eda3fc5a34fc3d/wrapt-1.10.11.tar.gz
Collecting lazy-object-proxy (from astroid<2.0,>=1.6->pylint)
  Downloading https://files.pythonhosted.org/packages/52/7e/f0f570ba363e15251bb9fd452257ec2aff91be0187a08a893afbd8ae225f/lazy_object_proxy-1.3.1-cp27-cp27mu-manylinux1_x86_64.whl (56kB)
    100% |████████████████████████████████| 61kB 1.1MB/s 
Installing collected packages: futures, isort, singledispatch, wrapt, backports.functools-lru-cache, lazy-object-proxy, astroid, mccabe, pylint
  Running setup.py install for wrapt ... done
Successfully installed astroid-1.6.5 backports.functools-lru-cache-1.5 futures-3.2.0 isort-4.3.4 lazy-object-proxy-1.3.1 mccabe-0.6.1 pylint-1.9.3 singledispatch-3.4.0.3 wrapt-1.10.11
joseph@joseph-X541UJ:~$ pylint --version
No config file found, using default configuration
pylint 1.9.3, 
astroid 1.6.5
Python 2.7.15+ (default, Oct  2 2018, 22:12:08) 
[GCC 8.2.0]
pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
joseph@joseph-X541UJ:~$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions