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
pylint --load-plugins pylint_django core failed with following exception
Traceback (most recent call last):
File "c:\users\<username>\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\<username>\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\<projectpath>\venv\Scripts\pylint.exe\__main__.py", line 7, in <module>
File "C:\<projectpath>\venv\lib\site-packages\pylint\__init__.py", line 24, in run_pylint
PylintRun(sys.argv[1:])
File "C:\<projectpath>\venv\lib\site-packages\pylint\lint\run.py", line 279, in __init__
linter.load_plugin_modules(self._plugins)
File "C:\<projectpath>\venv\lib\site-packages\pylint\lint\pylinter.py", line 503, in load_plugin_modules
module = astroid.modutils.load_module_from_name(modname)
File "C:\<projectpath>\venv\lib\site-packages\astroid\modutils.py", line 212, in load_module_from_name
return importlib.import_module(dotted_name)
File "c:\users\<username>\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:\<projectpath>\venv\lib\site-packages\pylint_django\__init__.py", line 6, in <module>
from pylint_django import plugin
File "C:\<projectpath>\venv\lib\site-packages\pylint_django\plugin.py", line 5, in <module>
from pylint_django.checkers import register_checkers
File "C:\<projectpath>\venv\lib\site-packages\pylint_django\checkers\__init__.py", line 3, in <module>
from pylint_django.checkers.models import ModelChecker
File "C:\<projectpath>\venv\lib\site-packages\pylint_django\checkers\models.py", line 11, in <module>
from pylint_django.utils import node_is_subclass, PY3
File "C:\<projectpath>\venv\lib\site-packages\pylint_django\utils.py", line 9, in <module>
from pylint_django.compat import Uninferable
File "C:\<projectpath>\venv\lib\site-packages\pylint_django\compat.py", line 28, in <module>
LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)
AttributeError: module 'pylint.__pkginfo__' has no attribute 'numversion'
The same command worked fine before I updated pylint from 2.7.4 and astroid from 2.5.3
Description
pylint --load-plugins pylint_django core
failed with following exceptionThe same command worked fine before I updated
pylint
from 2.7.4 andastroid
from 2.5.3Environment
The text was updated successfully, but these errors were encountered: