You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug A clear and concise description of what the bug is.
Prospector ends up with stacktrace:
Traceback (most recent call last):
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/prospector/run.py", line 87, in execute
messages += tool.run(found_files)
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/prospector/tools/pylint/__init__.py", line 239, in run
self._linter.check(self._args)
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 696, in check
ast_per_fileitem = self._get_asts(fileitems, data)
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 707, in _get_asts
for fileitem in fileitems:
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 874, in _iterate_file_descrs
for descr in self._expand_files(files_or_modules).values():
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/prospector/tools/pylint/linter.py", line 29, in _expand_files
if self._files.check_module(module):
AttributeError: 'FileFinder' object has no attribute 'check_module'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/bin/prospector", line 8, in <module>
sys.exit(main())
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/prospector/run.py", line 199, in main
prospector.execute()
File "/drone/src/.pre-commit-cache/repoufibcgo8/py_env-python3.9/lib/python3.9/site-packages/prospector/run.py", line 105, in execute
raise FatalProspectorException(f"Tool {toolname} failed to run.") from ex
prospector.exceptions.FatalProspectorException: Tool pylint failed to run.
This happens with prospector version 1.8.0 and 1.8.1 and pylint version 2.15.7 since #529 was processed.
To Reproduce Steps to reproduce the behavior:
install prospector version 1.8.1
install pylint version 2.15.7
Call prospector the following way 'prospector -X foobar.py'
Expected behavior A clear and concise description of what you expected to happen.
working with latest pylint version
Screenshots If applicable, add screenshots to help explain your problem.
/
Environment (please complete the following information):
OS:
(venv) 4a00c39b9e9b:/drone/src# uname -a
Linux 4a00c39b9e9b 5.4.0-1084-aws #91~18.04.1-Ubuntu SMP Sun Aug 14 01:24:43 UTC 2022 x86_64 Linux
(venv) 4a00c39b9e9b:/drone/src# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.8
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
Tool: pylint 2.15.7
Prospector version: 1.8.1
Python version 3.9.15
Additional context
Temp fix:
use pylint version 2.15.6
pre-commit example:
I have exactly the same issue on a fresh setup with VS Code on a Raspberry Pi 3B:
Linux 5.15.76-v7+ armv7l GNU/Linux
prospector 1.8.1
pylint 2.15.7
Python 3.9.2
Hello
Describe the bug A clear and concise description of what the bug is.
Prospector ends up with stacktrace:
This happens with prospector version 1.8.0 and 1.8.1 and pylint version 2.15.7 since #529 was processed.
To Reproduce Steps to reproduce the behavior:
or with pre-commit:
Expected behavior A clear and concise description of what you expected to happen.
working with latest pylint version
Screenshots If applicable, add screenshots to help explain your problem.
/
Environment (please complete the following information):
Additional context
Temp fix:
use pylint version 2.15.6
pre-commit example:
The text was updated successfully, but these errors were encountered: