The new Pylint version 3 doesn't work with this plugin and it fails with an ImportError.
$ pylint my_project
Traceback (most recent call last):
File "/builds/private/my-project/.venv/bin/pylint", line 8, in <module>
sys.exit(run_pylint())
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint/__init__.py", line 34, in run_pylint
PylintRun(argv or sys.argv[1:])
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint/lint/run.py", line 162, in __init__
args = _config_initialization(
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint/config/config_initialization.py", line 61, in _config_initialization
linter.load_plugin_modules(utils._splitstrip(config_data["load-plugins"]))
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 380, in load_plugin_modules
module = astroid.modutils.load_module_from_name(modname)
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/astroid/modutils.py", line 194, in load_module_from_name
module = importlib.import_module(dotted_name)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint_mongoengine/__init__.py", line 19, in <module>
from pylint_mongoengine.checkers.mongoengine import MongoEngineChecker
File "/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint_mongoengine/checkers/mongoengine.py", line 20, in <module>
from pylint.checkers.utils import check_messages
ImportError: cannot import name 'check_messages' from 'pylint.checkers.utils' (/builds/private/my-project/.venv/lib/python3.10/site-packages/pylint/checkers/utils.py)
The new Pylint version 3 doesn't work with this plugin and it fails with an ImportError.