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

[BUG] #570

Closed
nazarov-ae opened this issue Dec 21, 2022 · 3 comments
Closed

[BUG] #570

nazarov-ae opened this issue Dec 21, 2022 · 3 comments

Comments

@nazarov-ae
Copy link

Hi!
Describe the bug
Prospector raised exception at run

  File ".../prospector/run.py", line 112, in execute
    raise FatalProspectorException from ex
TypeError: __init__() missing 1 required positional argument: 'message'

To Reproduce
Steps to reproduce the behavior:

1. pip install prospector==1.7.7
2. pip install pylint (currently 2.15.9)
3. prospector . -X

Expected behavior A clear and concise description of what you expected to happen.

Environment:

  • Linux 5.4.0-135-generic
  • pylint 2.15.9
  • prospector 1.7.7
  • python 3.8.3

Additional context
Freeze prospector 1.7.7 for avoid #557

@Pierre-Sassoulas
Copy link
Collaborator

This is fixed in 1.8.3, please upgrade :)

@Pierre-Sassoulas Pierre-Sassoulas closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
@nazarov-ae
Copy link
Author

This is fixed in 1.8.3, please upgrade :)

Thanks!
But after upgrade appear this bug #557

@teijo
Copy link

teijo commented Dec 28, 2022

1.8.x also introduces Git dependency bug #556 which blocks our upgrade.

I manged to pin pylint = 2.15.6 which was a transient dependency for me. pylint = 2.15.7 crashes.

My workaround for now (FYI @nazarov-ae):

$ pylint --version
pylint 2.15.6
astroid 2.12.13
Python 3.9.13 (main, Jun 24 2022, 15:22:58)
[Clang 13.1.6 (clang-1316.0.21.2.3)]
$ prospector --version
prospector 1.7.7

pyproject.toml

prospector = "1.7.7"
pylint = "2.15.6"

Just heads-up that if you pin to this version (and not and older one) and chain __or__-overloaded operators, you might encounter this open bug pylint-dev/pylint#7381. Can be bypassed with # pylint: disable=unsupported-binary-operation case-by-case if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants