You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pylint crashed with a AstroidError and with the following stacktrace
Traceback (most recent call last):
File "CODE\lib\site-packages\pylint\lint\pylinter.py", line 782, in _lint_file
check_astroid_module(module)
File "CODE\lib\site-packages\pylint\lint\pylinter.py", line 1049, in check_astroid_module
retval = self._check_astroid_module(
File "CODE\lib\site-packages\pylint\lint\pylinter.py", line 1099, in _check_astroid_module
walker.walk(node)
File "CODE\lib\site-packages\pylint\utils\ast_walker.py", line 93, in walk
self.walk(child)
File "CODE\lib\site-packages\pylint\utils\ast_walker.py", line 90, in walk
callback(astroid)
File "CODE\lib\site-packages\pylint\checkers\imports.py", line 523, in visit_importfrom
self._add_imported_module(node, f"{imported_module.name}.{name}")
File "CODE\lib\site-packages\pylint\checkers\imports.py", line 833, in _add_imported_module
importedmodname = astroid.modutils.get_module_part(
File "CODE\lib\site-packages\astroid\modutils.py", line 438, in get_module_part
file_from_modpath(
File "CODE\lib\site-packages\astroid\modutils.py", line 334, in file_from_modpath
return file_info_from_modpath(modpath, path, context_file).location
File "CODE\lib\site-packages\astroid\modutils.py", line 384, in file_info_from_modpath
return _spec_from_modpath(modpath, path, context)
File "CODE\lib\site-packages\astroid\modutils.py", line 590, in _spec_from_modpath
found_spec = spec.find_spec(modpath, [context])
File "CODE\lib\site-packages\astroid\interpreter\_import\spec.py", line 392, in find_spec
finder, spec = _find_spec_with_path(
File "CODE\lib\site-packages\astroid\interpreter\_import\spec.py", line 354, in _find_spec_with_path
spec = finder_instance.find_module(
File "CODE\lib\site-packages\astroid\interpreter\_import\spec.py", line 204, in find_module
submodule_path = sys.modules[modname].__path__
AttributeError: module 'celery.signals' has no attribute '__path__'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "CODE\lib\site-packages\pylint\lint\pylinter.py", line 747, in _lint_files
self._lint_file(fileitem, module, check_astroid_module)
File "CODE\lib\site-packages\pylint\lint\pylinter.py", line 784, in _lint_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
2022-10-18 14:34:26,037: celery.redirected[232]: AttributeError: module 'celery.signals' has no attribute '__path__'************* Module module.base.celery
base\celery.py:1: [F0002(astroid-error), ] base\celery.py: Fatal error while checking 'base\celery.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in'\pylint\pylint\Cache\pylint-crash-2022-10-18-14-34-26.txt'.
Expected behavior
There should be no error
Pylint version
pylint 2.15.3
astroid 2.12.10
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
OS / Environment
Windows
Additional dependencies
celery==5.2.7
The text was updated successfully, but these errors were encountered:
Bug description
Updating to latest pylint 2.15.3 updates astroid to 2.12.10 and error below happens
If I revert to use astroid to 2.12.9 (and pylint 2.15.2) error is gone
When parsing the following file:
pylint crashed with a
AstroidError
and with the following stacktraceConfiguration
Command used
Pylint output
Expected behavior
There should be no error
Pylint version
OS / Environment
Windows
Additional dependencies
celery==5.2.7
The text was updated successfully, but these errors were encountered: