Reputation: 141
Here is my config:
"python.linting.pylintArgs": [
"--load-plugins",
"pylint-quotes"
],
I installed pylint-quotes with pip and pip3 but I still get an error:
Traceback (most recent call last):
File "/usr/local/bin/pylint", line 11, in <module>
sys.exit(run_pylint())
File "/usr/local/lib/python2.7/site-packages/pylint/__init__.py", line 16, in run_pylint
Run(sys.argv[1:])
File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 1274, in __init__
linter.load_plugin_modules(self._plugins)
File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 500, in load_plugin_modules
module = modutils.load_module_from_name(modname)
File "/usr/local/lib/python2.7/site-packages/astroid/modutils.py", line 190, in load_module_from_name
return load_module_from_modpath(dotted_name.split('.'), path, use_sys)
File "/usr/local/lib/python2.7/site-packages/astroid/modutils.py", line 232, in load_module_from_modpath
mp_file, mp_filename, mp_desc = imp.find_module(part, path)
ImportError: No module named pylint-quotes
I'm using mac. Should I specify somewhere a path to modules?
Upvotes: 3
Views: 5125
Reputation: 61
The plugin name is pylint_quotes.
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_quotes"
],
This should work.
Upvotes: 3
Reputation: 200
Are you sure that you have the same python at both places? It might be the case that you are installing with different python (pip) and using another in VS.
Upvotes: 0