canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
31 stars 37 forks source link

pylint fails on Noble #830

Closed pponnuvel closed 4 months ago

pponnuvel commented 4 months ago

tox -e pylint:

AttributeError: 'TreeRebuilder' object has no attribute 'visit_typealias'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/utils/ast_walker.py", line 91, in walk
    callback(astroid)
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/checkers/base/basic_error_checker.py", line 430, in visit_call
    self._check_inferred_class_is_abstract(inferred, node)
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/checkers/base/basic_error_checker.py", line 447, in _check_inferred_class_is_abstract
    abstract_methods = _has_abstract_methods(inferred)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/checkers/base/basic_error_checker.py", line 78, in _has_abstract_methods
    return len(utils.unimplemented_abstract_methods(node)) > 0
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/checkers/utils.py", line 972, in unimplemented_abstract_methods
    inferred = safe_infer(obj)
               ^^^^^^^^^^^^^^^
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/checkers/utils.py", line 1375, in safe_infer
    raise AstroidError from e
astroid.exceptions.AstroidError
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/pylint/checkers/utils.py", line 1371, in safe_infer
    value = next(infer_gen)
            ^^^^^^^^^^^^^^^
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/astroid/nodes/node_ng.py", line 171, in infer
    yield from self._infer(context=context, **kwargs)
  File "/home/ponnuvel/myGit/hotsos/.tox/pylint/lib/python3.12/site-packages/astroid/decorators.py", line 143, in raise_if_nothing_inferred
    yield next(generator)
          ^^^^^^^^^^^^^^^