Closed
Description
When trying to test upgrade pylint to 3.0 that will be released in couple of days.
pip install pylint==3.0.0b0
Requirement already satisfied: platformdirs>=2.2.0 in ./.venv/lib/python3.11/site-packages (from pylint==3.0.0b0) (3.10.0)
Requirement already satisfied: isort<6,>=4.2.5 in ./.venv/lib/python3.11/site-packages (from pylint==3.0.0b0) (5.12.0)
Requirement already satisfied: mccabe<0.8,>=0.6 in ./.venv/lib/python3.11/site-packages (from pylint==3.0.0b0) (0.7.0)
Requirement already satisfied: tomlkit>=0.10.1 in ./.venv/lib/python3.11/site-packages (from pylint==3.0.0b0) (0.12.1)
Requirement already satisfied: dill>=0.3.6 in ./.venv/lib/python3.11/site-packages (from pylint==3.0.0b0) (0.3.6)
Installing collected packages: astroid, pylint
Attempting uninstall: astroid
Found existing installation: astroid 2.15.6
Uninstalling astroid-2.15.6:
Successfully uninstalled astroid-2.15.6
Attempting uninstall: pylint
Found existing installation: pylint 2.17.5
Uninstalling pylint-2.17.5:
Successfully uninstalled pylint-2.17.5
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pylint-django 2.5.3 requires pylint<3,>=2.0, but you have pylint 3.0.0b0 which is incompatible.
Successfully installed astroid-3.0.0 pylint-3.0.0b0
(.venv) ➜ xxxx pylint .
Traceback (most recent call last):
File "/Users/myuser/projects/xxxx/.venv/bin/pylint", line 8, in <module>
sys.exit(run_pylint())
^^^^^^^^^^^^
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint/__init__.py", line 34, in run_pylint
PylintRun(argv or sys.argv[1:])
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint/lint/run.py", line 162, in __init__
args = _config_initialization(
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint/config/config_initialization.py", line 61, in _config_initialization
linter.load_plugin_modules(utils._splitstrip(config_data["load-plugins"]))
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint/lint/pylinter.py", line 380, in load_plugin_modules
module = astroid.modutils.load_module_from_name(modname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/astroid/modutils.py", line 194, in load_module_from_name
module = importlib.import_module(dotted_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myuser/.pyenv/versions/3.11.2/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint_django/__init__.py", line 6, in <module>
from pylint_django import plugin
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint_django/plugin.py", line 9, in <module>
from pylint_django.checkers import register_checkers
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint_django/checkers/__init__.py", line 2, in <module>
from pylint_django.checkers.auth_user import AuthUserChecker
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint_django/checkers/auth_user.py", line 7, in <module>
class AuthUserChecker(checkers.BaseChecker):
File "/Users/myuser/projects/xxxx/.venv/lib/python3.11/site-packages/pylint_django/checkers/auth_user.py", line 8, in AuthUserChecker
__implements__ = (interfaces.IAstroidChecker,)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pylint.interfaces' has no attribute 'IAstroidChecker'
NOTES: make sure you have the latest version of 3rd party packages
like rest_framework
, factory
, model_utils
, etc. before reporting
issues!
Metadata
Metadata
Assignees
Labels
No labels