-
Notifications
You must be signed in to change notification settings - Fork 173
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
astroid error when using flask dependencies #286
Comments
I suspect this is related to #285 - I think we will need a new release with stricter dependencies as they are quite open right now. |
Not really about the issue itself, but we've removed the automatic installation of pylint-django, pylint-flask and pylint-celery due to the reason that it install unnecessary dependencies to projects. One thing we can come up with @carlio is offer as an option, such as |
@chocoelho Actually for that I think maybe an addition to autodetect would work. It'll find 'django' or whatever in the requirements for the project, so it'll think that pylint-django should be imported. But once it finds that, it should try 'import django' and on an import error, raise an error/warning saying 'Oi user. Install Django'. |
Just tried to give |
@ramnes which error? There are two reported, one is that django-flask is not installed which should be fixed in the latest release, the other is that stacktrace which I am looking into. |
And the cause is the pylint-flask library unfortunately: jschaf/pylint-flask#8 |
OP's error. Thanks for the hint; downgrading pylint to 1.9.3 fixes this. |
You can also just not use python-flask dependency option and you should be
ok. Prospector will then, run with the default modules.
On Sat, 24 Nov 2018 at 11:07 Guillaume Gelin ***@***.***> wrote:
OP's error. Thanks for the hint; downgrading pylint to 1.9.3 fixes this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#286 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWSfgNRPtuWSbdNYdbt388xWvSfa-aeks5uyVK6gaJpZM4X4wJx>
.
--
* Johann Gomes Barros Lima Software Developer Consultant ** Aware of our
own privilege, we strive to see the world from the perspective of the
oppressed, the powerless and the invisible.*
|
*pylint-flask, not python-flask. Sorry for the typo.
On Sat, 24 Nov 2018 at 14:22 Johann Gomes ***@***.***> wrote:
You can also just not use python-flask dependency option and you should be
ok. Prospector will then, run with the default modules.
On Sat, 24 Nov 2018 at 11:07 Guillaume Gelin ***@***.***>
wrote:
> OP's error. Thanks for the hint; downgrading pylint to 1.9.3 fixes this.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#286 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAWSfgNRPtuWSbdNYdbt388xWvSfa-aeks5uyVK6gaJpZM4X4wJx>
> .
>
--
* Johann Gomes Barros Lima Software Developer Consultant ** Aware of our
own privilege, we strive to see the world from the perspective of the
oppressed, the powerless and the invisible.*
--
* Johann Gomes Barros Lima Software Developer Consultant ** Aware of our
own privilege, we strive to see the world from the perspective of the
oppressed, the powerless and the invisible.*
|
Well the thing is that all of those were bundled by default with a simple |
@ramnes can you link to your repo or show the requirements/setup.py? pylint-flask is installed by default but only turned on if prospector thinks you are using flask, which it does by running requirements-detector. I agree it's rubbish right now as pylint-flask is broken. You can also also turn that off with the |
Had the same issue and used the Pipenv file
pipenv graph for prospector
|
I shall close this as "very old" and likely out of date, please re-open if the issue persists but I suspect that either new versions have fixed things or that you're no longer using prospector ;-) |
Hi,
On the latest prospector version (1.1.3), I noticed that I get an error when trying to use flask dependencies
prospector --uses flask
results in that error:Here is my requirements.txt:
Please let me know if you need more details. I needed to specify
pylint-flask
directly, because even with--uses flask
, the prospector did not downloadedpylint-flask
automatically (not sure if it was meant to be downloaded automatically in that case).The text was updated successfully, but these errors were encountered: