Skip to content

Crash Building error when trying to create ast representation of module 'sympy.polys.numberfields.resolvent_lookup' #10326

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

Open
wnowicki opened this issue Mar 31, 2025 · 2 comments
Labels
Crash 💥 A bug that makes pylint crash Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning

Comments

@wnowicki
Copy link

wnowicki commented Mar 31, 2025

Bug description

When parsing the following a.py:

from minio import Minio
from app.core import os

client = Minio(os.getenv("MINIO_URL"),
    access_key=os.getenv("MINIO_ACCESS_KEY"),
    secret_key=os.getenv("MINIO_SECRET_KEY"),
    secure=False,
)

It's really on this specific setup in my GitHub Actions, as it runs on local without any issue.

Command used

pylint a.py

Pylint output

pylint crashed with a ``AstroidBuildingError`` and with the following stacktrace:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 979, in get_ast
    return MANAGER.ast_from_file(filepath, modname, source=True)
  File "/usr/local/lib/python3.10/site-packages/astroid/manager.py", line 166, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "/usr/local/lib/python3.10/site-packages/astroid/builder.py", line 144, in file_build
    module, builder = self._data_build(data, modname, path)
  File "/usr/local/lib/python3.10/site-packages/astroid/builder.py", line 206, in _data_build
    module = builder.visit_module(node, modname, node_file, package)
...
  File "/usr/local/lib/python3.10/site-packages/astroid/nodes/node_classes.py", line 1489, in __init__
    super().__init__(
RecursionError: maximum recursion depth exceeded while calling a Python object

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 716, in _get_asts
    ast_per_fileitem[fileitem] = self.get_ast(
  File "/usr/local/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 1001, in get_ast
    raise astroid.AstroidBuildingError(
astroid.exceptions.AstroidBuildingError: Building error when trying to create ast representation of module 'sympy.polys.numberfields.resolvent_lookup'

Expected behavior

No crash.

Pylint version

pylint 3.3.6
astroid 3.3.9
Python 3.10.16 (main, Mar 18 2025, 01:14:25) [GCC 12.2.0]

OS / Environment

linux (Linux)

@wnowicki wnowicki changed the title Crash Building error when trying to create ast representation of module 'sympy.polys.numberfields.resolvent_lookup' (if possible, be more specific about what made pylint crash) Crash Building error when trying to create ast representation of module 'sympy.polys.numberfields.resolvent_lookup' Mar 31, 2025
@Pierre-Sassoulas Pierre-Sassoulas added Crash 💥 A bug that makes pylint crash Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning labels Mar 31, 2025
@wnowicki
Copy link
Author

Additional info, fails as well:

pylint 3.3.6
astroid 3.3.9
Python 3.12.9 (main, Feb  5 2025, 03:22:31) [GCC 13.3.0]

@solsticedhiver
Copy link

I got what seems to be the same problem:

Here is the stacktrace:

Traceback (most recent call last):
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/pylint/lint/pylinter.py", line 980, in get_ast
    return astroid.builder.AstroidBuilder(MANAGER).string_build(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        data, modname, filepath
        ^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 153, in string_build
    return self._post_build(module, builder, "utf-8")
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 169, in _post_build
    self.delayed_assattr(delayed)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 243, in delayed_assattr
    for inferred in node.expr.infer():
                    ~~~~~~~~~~~~~~~^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1760, in _infer
    for callee in self.func.infer(context):
                  ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1091, in _infer_attribute
    for owner in node.expr.infer(context):
                 ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1760, in _infer
    for callee in self.func.infer(context):
                  ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1091, in _infer_attribute
    for owner in node.expr.infer(context):
                 ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1091, in _infer_attribute
    for owner in node.expr.infer(context):
                 ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 2867, in _infer
    module = self.do_import_module()
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/_base_nodes.py", line 168, in do_import_module
    return mymodule.import_module(
           ~~~~~~~~~~~~~~~~~~~~~~^
        modname,
        ^^^^^^^^
    ...<2 lines>...
        use_cache=use_cache,
        ^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/scoped_nodes/scoped_nodes.py", line 462, in import_module
    return AstroidManager().ast_from_module_name(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        absmodname, use_cache=use_cache
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/manager.py", line 276, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/manager.py", line 166, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 145, in file_build
    return self._post_build(module, builder, encoding)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 169, in _post_build
    self.delayed_assattr(delayed)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 243, in delayed_assattr
    for inferred in node.expr.infer():
                    ~~~~~~~~~~~~~~~^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 456, in _infer
    stmts = list(self.assigned_stmts(context=context))
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/protocols.py", line 368, in _arguments_infer_argname
    is_metaclass = isinstance(cls, nodes.ClassDef) and cls.type == "metaclass"
                                                       ^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/scoped_nodes/scoped_nodes.py", line 1785, in _class_type
    if _is_metaclass(klass, context=context):
       ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/scoped_nodes/scoped_nodes.py", line 1752, in _is_metaclass
    for baseobj in base.infer(context=context):
                   ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1091, in _infer_attribute
    for owner in node.expr.infer(context):
                 ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 1760, in _infer
    for callee in self.func.infer(context):
                  ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/bases.py", line 177, in _infer_stmts
    for inf in stmt.infer(context=context):
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_ng.py", line 168, in infer
    for i, result in enumerate(self._infer(context=context, **kwargs)):
                     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 86, in inner
    yield next(generator)
          ~~~~^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/decorators.py", line 49, in wrapped
    for res in _func(node, context, **kwargs):
               ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/node_classes.py", line 2867, in _infer
    module = self.do_import_module()
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/_base_nodes.py", line 168, in do_import_module
    return mymodule.import_module(
           ~~~~~~~~~~~~~~~~~~~~~~^
        modname,
        ^^^^^^^^
    ...<2 lines>...
        use_cache=use_cache,
        ^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/nodes/scoped_nodes/scoped_nodes.py", line 462, in import_module
    return AstroidManager().ast_from_module_name(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        absmodname, use_cache=use_cache
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/manager.py", line 276, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/manager.py", line 166, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 145, in file_build
    return self._post_build(module, builder, encoding)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/builder.py", line 173, in _post_build
    module = self._manager.visit_transforms(module)
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/manager.py", line 127, in visit_transforms
    return self._transform.visit(node)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/transforms.py", line 158, in visit
    return self._visit(node)
           ~~~~~~~~~~~^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/transforms.py", line 82, in _visit
    visited = self._visit_generic(value)
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/transforms.py", line 108, in _visit_generic
    return [self._visit_generic(child) for child in node]
            ~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/transforms.py", line 115, in _visit_generic
    return self._visit(node)
           ~~~~~~~~~~~^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/transforms.py", line 85, in _visit
    return self._transform(node)
           ~~~~~~~~~~~~~~~^^^^^^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/astroid/transforms.py", line 67, in _transform
    ret = transform_func(node)
  File "/home/solstice/prog/python/soroban/soroban-exam/myvenv/lib/python3.13/site-packages/pylint_flask_sqlalchemy/__init__.py", line 23, in transform
    for key in module.__all__:
               ^^^^^^^^^^^^^^
  File "/home/solstice/prog/python/soroban/soroban-exam/myvenv/lib/python3.13/site-packages/sqlalchemy/__init__.py", line 294, in __getattr__
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
AttributeError: module 'sqlalchemy' has no attribute '__all__'. Did you mean: '__file__'?

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

Traceback (most recent call last):
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/pylint/lint/pylinter.py", line 716, in _get_asts
    ast_per_fileitem[fileitem] = self.get_ast(
                                 ~~~~~~~~~~~~^
        fileitem.filepath, fileitem.name, data
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/solstice/.vscode-oss/extensions/ms-python.pylint-2025.2.0/bundled/libs/pylint/lint/pylinter.py", line 1001, in get_ast
    raise astroid.AstroidBuildingError(
    ...<2 lines>...
    ) from ex
astroid.exceptions.AstroidBuildingError: Building error when trying to create ast representation of module 'soroxam.routes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash 💥 A bug that makes pylint crash Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning
Projects
None yet
Development

No branches or pull requests

3 participants