Comments (2)
There was additional output from pylint:
024-02-29T17:30:32.4515621Z ### Command used
2024-02-29T17:30:32.4515807Z
2024-02-29T17:30:32.4515919Z ```shell
2024-02-29T17:30:32.4516192Z pylint a.py
2024-02-29T17:30:32.4516430Z ```
2024-02-29T17:30:32.4516575Z
2024-02-29T17:30:32.4516696Z ### Pylint output
2024-02-29T17:30:32.4516870Z
2024-02-29T17:30:32.4516992Z <details open>
2024-02-29T17:30:32.4517243Z <summary>
2024-02-29T17:30:32.4517724Z pylint crashed with a ``AstroidError`` and with the following stacktrace:
2024-02-29T17:30:32.4518272Z </summary>
2024-02-29T17:30:32.4518423Z
2024-02-29T17:30:32.4518524Z ```python
2024-02-29T17:30:32.4518830Z Traceback (most recent call last):
2024-02-29T17:30:32.4519738Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 90, in inner
2024-02-29T17:30:32.4520486Z yield next(generator)
2024-02-29T17:30:32.4521352Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 44, in wrapped
2024-02-29T17:30:32.4522136Z if context.push(node):
2024-02-29T17:30:32.4522533Z RecursionError: maximum recursion depth exceeded
2024-02-29T17:30:32.4522941Z
2024-02-29T17:30:32.4523222Z During handling of the above exception, another exception occurred:
2024-02-29T17:30:32.4523640Z
2024-02-29T17:30:32.4523767Z Traceback (most recent call last):
2024-02-29T17:30:32.4524692Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 787, in _lint_file
2024-02-29T17:30:32.4525521Z check_astroid_module(module)
2024-02-29T17:30:32.4526471Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 1016, in check_astroid_module
2024-02-29T17:30:32.4527358Z retval = self._check_astroid_module(
2024-02-29T17:30:32.4528374Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 1068, in _check_astroid_module
2024-02-29T17:30:32.4529241Z walker.walk(node)
2024-02-29T17:30:32.4530082Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/utils/ast_walker.py", line 94, in walk
2024-02-29T17:30:32.4530870Z self.walk(child)
2024-02-29T17:30:32.4531692Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/utils/ast_walker.py", line 94, in walk
2024-02-29T17:30:32.4532474Z self.walk(child)
2024-02-29T17:30:32.4533300Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/utils/ast_walker.py", line 94, in walk
2024-02-29T17:30:32.4534059Z self.walk(child)
2024-02-29T17:30:32.4534493Z [Previous line repeated 4 more times]
2024-02-29T17:30:32.4535464Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/utils/ast_walker.py", line 91, in walk
2024-02-29T17:30:32.4536209Z callback(astroid)
2024-02-29T17:30:32.4537159Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/checkers/typecheck.py", line 1089, in visit_attribute
2024-02-29T17:30:32.4538049Z inferred = list(node.expr.infer())
2024-02-29T17:30:32.4538937Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/node_ng.py", line 170, in infer
2024-02-29T17:30:32.4539833Z for i, result in enumerate(self._infer(context=context, **kwargs)):
2024-02-29T17:30:32.4540842Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 103, in inner
2024-02-29T17:30:32.4541699Z yield from generator
2024-02-29T17:30:32.4542567Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 49, in wrapped
2024-02-29T17:30:32.4543373Z for res in _func(node, context, **kwargs):
2024-02-29T17:30:32.4544257Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/bases.py", line 177, in _infer_stmts
2024-02-29T17:30:32.4545080Z for inf in stmt.infer(context=context):
2024-02-29T17:30:32.4545983Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/node_ng.py", line 170, in infer
2024-02-29T17:30:32.4546889Z for i, result in enumerate(self._infer(context=context, **kwargs)):
2024-02-29T17:30:32.4547881Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 103, in inner
2024-02-29T17:30:32.4548638Z yield from generator
2024-02-29T17:30:32.4549465Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 49, in wrapped
2024-02-29T17:30:32.4550295Z for res in _func(node, context, **kwargs):
2024-02-29T17:30:32.4551190Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/bases.py", line 177, in _infer_stmts
2024-02-29T17:30:32.4552000Z for inf in stmt.infer(context=context):
2024-02-29T17:30:32.4552914Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/node_ng.py", line 170, in infer
2024-02-29T17:30:32.4553808Z for i, result in enumerate(self._infer(context=context, **kwargs)):
2024-02-29T17:30:32.4554782Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 103, in inner
2024-02-29T17:30:32.4555564Z yield from generator
2024-02-29T17:30:32.4556394Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 49, in wrapped
2024-02-29T17:30:32.4557212Z for res in _func(node, context, **kwargs):
2024-02-29T17:30:32.4558189Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/node_classes.py", line 1764, in _infer
2024-02-29T17:30:32.4559007Z yield from callee.infer_call_result(
2024-02-29T17:30:32.4559943Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/bases.py", line 329, in infer_call_result
2024-02-29T17:30:32.4560811Z for res in node.infer_call_result(caller, context):
2024-02-29T17:30:32.4561795Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/bases.py", line 329, in infer_call_result
2024-02-29T17:30:32.4562645Z for res in node.infer_call_result(caller, context):
2024-02-29T17:30:32.4563734Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/bases.py", line 329, in infer_call_result
2024-02-29T17:30:32.4564596Z for res in node.infer_call_result(caller, context):
2024-02-29T17:30:32.4565092Z [Previous line repeated 950 more times]
2024-02-29T17:30:32.4566102Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/bases.py", line 326, in infer_call_result
2024-02-29T17:30:32.4566987Z for node in self._proxied.igetattr("__call__", context):
2024-02-29T17:30:32.4568109Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2524, in igetattr
2024-02-29T17:30:32.4569042Z inferred._proxied.getattr("__get__", context)
2024-02-29T17:30:32.4570075Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2428, in getattr
2024-02-29T17:30:32.4571080Z values += self._metaclass_lookup_attribute(name, context)
2024-02-29T17:30:32.4572278Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2452, in _metaclass_lookup_attribute
2024-02-29T17:30:32.4573273Z attrs.update(set(cls_attributes))
2024-02-29T17:30:32.4574549Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2459, in _get_attribute_from_metaclass
2024-02-29T17:30:32.4575631Z attrs = cls.getattr(name, context=context, class_context=True)
2024-02-29T17:30:32.4576756Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2428, in getattr
2024-02-29T17:30:32.4577743Z values += self._metaclass_lookup_attribute(name, context)
2024-02-29T17:30:32.4578932Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2448, in _metaclass_lookup_attribute
2024-02-29T17:30:32.4579924Z metaclass = self.metaclass(context=context)
2024-02-29T17:30:32.4581006Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2740, in metaclass
2024-02-29T17:30:32.4581943Z return self._find_metaclass(context=context)
2024-02-29T17:30:32.4583055Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2720, in _find_metaclass
2024-02-29T17:30:32.4584052Z klass = self.declared_metaclass(context=context)
2024-02-29T17:30:32.4585169Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2692, in declared_metaclass
2024-02-29T17:30:32.4586169Z for baseobj in base.infer(context=context):
2024-02-29T17:30:32.4587095Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/nodes/node_ng.py", line 170, in infer
2024-02-29T17:30:32.4588008Z for i, result in enumerate(self._infer(context=context, **kwargs)):
2024-02-29T17:30:32.4588991Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/decorators.py", line 99, in inner
2024-02-29T17:30:32.4589767Z raise InferenceError(
2024-02-29T17:30:32.4590618Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/astroid/exceptions.py", line 272, in __init__
2024-02-29T17:30:32.4591420Z super().__init__(message, **kws)
2024-02-29T17:30:32.4591969Z RecursionError: maximum recursion depth exceeded while calling a Python object
2024-02-29T17:30:32.4592445Z
2024-02-29T17:30:32.4592702Z The above exception was the direct cause of the following exception:
2024-02-29T17:30:32.4593137Z
2024-02-29T17:30:32.4593272Z Traceback (most recent call last):
2024-02-29T17:30:32.4594197Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 751, in _lint_files
2024-02-29T17:30:32.4595059Z self._lint_file(fileitem, module, check_astroid_module)
2024-02-29T17:30:32.4596063Z File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/lint/pylinter.py", line 789, in _lint_file
2024-02-29T17:30:32.4596897Z raise astroid.AstroidError from e
2024-02-29T17:30:32.4597314Z astroid.exceptions.AstroidError
2024-02-29T17:30:32.4597575Z
2024-02-29T17:30:32.4597668Z ```
2024-02-29T17:30:32.4597903Z
2024-02-29T17:30:32.4597909Z
2024-02-29T17:30:32.4598012Z </details>
2024-02-29T17:30:32.4598157Z
2024-02-29T17:30:32.4598288Z ### Expected behavior
2024-02-29T17:30:32.4598491Z
2024-02-29T17:30:32.4598597Z No crash.
2024-02-29T17:30:32.4598762Z
2024-02-29T17:30:32.4598866Z ### Pylint version
2024-02-29T17:30:32.4599059Z
2024-02-29T17:30:32.4599154Z ```shell
2024-02-29T17:30:32.4599437Z pylint 3.1.0
2024-02-29T17:30:32.4599686Z astroid 3.1.0
2024-02-29T17:30:32.4600003Z Python 3.9.18 (main, Aug 28 2023, 08:40:21)
2024-02-29T17:30:32.4600423Z [GCC 9.4.0]
2024-02-29T17:30:32.4600658Z ```
2024-02-29T17:30:32.4600806Z
2024-02-29T17:30:32.4600915Z ### OS / Environment
2024-02-29T17:30:32.4601118Z
2024-02-29T17:30:32.4601238Z linux (Linux)
2024-02-29T17:30:32.4601393Z
2024-02-29T17:30:32.4601514Z ### Additional dependencies
2024-02-29T17:30:32.4601747Z
2024-02-29T17:30:32.4601941Z <!--
2024-02-29T17:30:32.4602347Z Please remove this part if you're not using any of
2024-02-29T17:30:32.4602895Z your dependencies in the example.
2024-02-29T17:30:32.4603291Z -->
2024-02-29T17:30:32.4603555Z .
2024-02-29T17:31:58.2892751Z ************* Module azurelinuxagent.daemon.main
2024-02-29T17:31:58.2896344Z azurelinuxagent/daemon/main.py:1:0: F0002: azurelinuxagent/daemon/main.py: Fatal error while checking 'azurelinuxagent/daemon/main.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2024-02-29-17-30-32.txt'. (astroid-error)
2024-02-29T17:31:58.2900097Z
2024-02-29T17:31:58.2900817Z -----------------------------------
2024-02-29T17:31:58.2901854Z Your code has been rated at 0.00/10
from pylint.
Thanks for reporting the crash. Will handle in #9139
from pylint.
Related Issues (20)
- RecursionError: maximum recursion depth exceeded while calling a Python object HOT 1
- `used-before-assignment` FP in finally
- allow-any-import-level seems to have no effect
- False positive for E0601 when variable first assigned in assignment expression in `if` clause of a comprehension
- False positive with return guard
- Example of using pylint as a pre-commit hook does not mention use of spelling extra HOT 1
- Crash AstroidError - AttributeError: 'TreeRebuilder' object has no attribute 'visit_typealias' HOT 4
- Crash 💥 `RecursionError` when upgrading from 3.0.3 to 3.1.0 HOT 2
- False positive on E1101: no-member when using "random.choices"
- Suggest flattening nested idempotent function applications HOT 3
- False positive singleton-comparison with sqlalchemy's filter
- Incorrect "Value '<val>' is unsubscriptable" with class method type overloading HOT 2
- sdist is missing requirements files
- 3.1.0: Nine test_functional and one test_package fails HOT 4
- Crashed while using pylint as a static test for a docker
- False positive assignment-from-no-return on generator with nested yield expression
- [Documentation] - Fix 2 typos in `too-many-branches` documentation
- spelling of Sphinx parameter descriptions
- Unexpected keyword argument for Generic dataclass with ABC bounded TypeVar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylint.