Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyLint not working with global interpreter #1307

Closed
qubitron opened this issue Apr 5, 2018 · 2 comments
Closed

PyLint not working with global interpreter #1307

qubitron opened this issue Apr 5, 2018 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@qubitron
Copy link

qubitron commented Apr 5, 2018

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: pylint

Actual behavior

I have pylint installed in the global interpreter, on saving file I get no linting, no banner to install pylint.

Expected behavior

Linting works on save

Steps to reproduce:

  1. Install pylint in a global interpreter
  2. Use global interpreter
  3. write bad python code and hit save (e.g. "fjdsklj")

Using pylint version 1.8.4

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

##########Linting Output - pylint##########
Traceback (most recent call last):
  File "C:\dev\Python3.6\lib\runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\dev\Python3.6\lib\runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\dev\Python3.6\lib\runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\dantaylo\AppData\Roaming\Python\Python36\site-packages\pylint\__init__.py", line 11, in <module>
    from .__pkginfo__ import version as __version__
  File "C:\Users\dantaylo\AppData\Roaming\Python\Python36\site-packages\pylint\__pkginfo__.py", line 25, in <module>
    from pkg_resources import parse_version
ModuleNotFoundError: No module named 'pkg_resources'

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

No output in the console

@qubitron qubitron added the bug Issue identified by VS Code Team member as probable bug label Apr 5, 2018
@brettcannon
Copy link
Member

This is an installation issue, not on our end.

@qubitron
Copy link
Author

qubitron commented Apr 5, 2018

This is my fault, I deleted my site_packages folder not realizing I needed some of the stuff in there

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants