Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Error when using pylint-django #240

Open
stavlocker opened this issue Jan 21, 2018 · 2 comments
Open

Error when using pylint-django #240

stavlocker opened this issue Jan 21, 2018 · 2 comments

Comments

@stavlocker
Copy link

Hi all. I'm trying to use linter-pylint with pylint-django and I get the following error everytime I save a file:

[Linter] Error running Pylint Error: Using config file C:\Users\<myuser>\.pylintrc
    at Object.<anonymous> (main.js:161)
    at Generator.next (<anonymous>)
    at step (C:\Users\<myuser>\.atom\packages\linter-pylint\lib\main.js:7)
    at process._tickCallback (internal/process/next_tick.js:103)

I produced a .pylintrc using pylint --generate-rcfile, and added pylint_django as a plugin.

...
load-plugins=pylint_django
...

I'm using the latest pylint version:

> pylint --version
Using config file C:\Users\stavl\.pylintrc
pylint 1.8.1,
astroid 1.6.0
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]

And linter-pylint version 2.1.0.

@ddaanet
Copy link
Contributor

ddaanet commented Jan 23, 2018

Looks like an issue with your setup, not an issue with linter-pylint.

I guess the issue is something like the pylint command executed by Atom does not belong to the environment where you installed pylint_django.

@dreamalligator
Copy link

dreamalligator commented May 28, 2021

Looks like an issue with your setup, not an issue with linter-pylint.

I guess the issue is something like the pylint command executed by Atom does not belong to the environment where you installed pylint_django.

I believe this is good clue for my current issue. I'm spawning atom via atom . in a Pipenv virtual env shell with the hope of linter-pylint picking up the plugins installed and referenced in the project's .pylintrc file without any luck.

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