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

ImportError with release of pylint==3.0.0 #29

Open
fmigneault opened this issue Oct 5, 2023 · 2 comments
Open

ImportError with release of pylint==3.0.0 #29

fmigneault opened this issue Oct 5, 2023 · 2 comments

Comments

@fmigneault
Copy link

The following error is encountered with newer pylint:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/bin/pylint", line 8, in <module>
    sys.exit(run_pylint())
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pylint/__init__.py", line 34, in run_pylint
    PylintRun(argv or sys.argv[1:])
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pylint/lint/run.py", line 155, in __init__
    linter.load_plugin_modules(self._plugins)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 380, in load_plugin_modules
    module = astroid.modutils.load_module_from_name(modname)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/astroid/modutils.py", line 194, in load_module_from_name
    module = importlib.import_module(dotted_name)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/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 "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pylint_quotes/__init__.py", line 5, in <module>
    from pylint_quotes import checker, plugin  # noqa: F401
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pylint_quotes/checker.py", line 8, in <module>
    from pylint.interfaces import IAstroidChecker, ITokenChecker
ImportError: cannot import name 'IAstroidChecker' from 'pylint.interfaces' (/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pylint/interfaces.py)

Versions:

pylint 3.0.0
pylint_quotes 0.2.3
astroid 3.0.0
@sistlind
Copy link

sistlind commented Oct 6, 2023

See #28

admin-turris pushed a commit to turris-cz/reforis-diagnostics that referenced this issue Oct 16, 2023
There is an issue in pylint-quotes with the newer pylint v3.

edaniszewski/pylint-quotes#29

We should get rid of this pin as soon as this issue is fixed.
@TomasChmelik
Copy link

Well, let's hope some maintainer is still alive and willing to merge the PR.

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

No branches or pull requests

3 participants