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 failing #5101

Closed
aronchick opened this issue Apr 3, 2019 · 4 comments
Closed

PyLint failing #5101

aronchick opened this issue Apr 3, 2019 · 4 comments
Assignees

Comments

@aronchick
Copy link

Issue Type: Bug

I can't figure out why pylint is failing to import a module - my paths look correct (but i suspect they're not) and I can't find the settings to fix this. Wish it was more discoverable.

Extension version: 2019.3.6352
VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.93GB (2.44GB free)
Process Argv
Screen Reader no
VM 0%
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 3, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Apr 4, 2019
@karrtikr
Copy link

karrtikr commented Apr 4, 2019

Please make sure you have a Selected a Python Interpreter. (check the bottom left status bar).

Also please make sure, that pylint package is installed for the Python interpreter that you are using, i.e you can check if Lib directory in your Python directory contains pylint, or just try <python> -m pylint where corresponds to the interpreter you are using.

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Apr 4, 2019
@aronchick
Copy link
Author

Yep, have a python interpreter -
image

Is there a way to force using the Python from WSL as the interpreter? I can't figure out how to get the right packages installed for the Windows version.

@DonJayamanne
Copy link

To use WSL please follow the issue #67

@ghost ghost removed info-needed Issue requires more information from poster triage labels Apr 4, 2019
@aronchick
Copy link
Author

The answer to this was go into a shell and make sure that "python" executes against the same python interpreter that is present in your VSCode. Then just go through and install the pip packages there.

It's a shame that pylint doesn't offer as part of its error messages which python interpreter is being used.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants