[Python-modules-team] Bug#945202: Bug#945202: pytest-pylint: FTBFS in sid

Sandro Tosi morph at debian.org
Thu Nov 21 16:56:32 GMT 2019


> INTERNALERROR> Traceback (most recent call last):
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 206, in wrap_session
> INTERNALERROR>     session.exitstatus = doit(config, session) or 0
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 249, in _main
> INTERNALERROR>     config.hook.pytest_collection(session=session)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in __call__
> INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec
> INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>
> INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall
> INTERNALERROR>     return outcome.get_result()
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result
> INTERNALERROR>     raise ex[1].with_traceback(ex[2])
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall
> INTERNALERROR>     res = hook_impl.function(*args)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 259, in pytest_collection
> INTERNALERROR>     return session.perform_collect()
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 501, in perform_collect
> INTERNALERROR>     hook.pytest_collection_finish(session=self)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in __call__
> INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec
> INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>
> INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall
> INTERNALERROR>     return outcome.get_result()
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result
> INTERNALERROR>     raise ex[1].with_traceback(ex[2])
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall
> INTERNALERROR>     res = hook_impl.function(*args)
> INTERNALERROR>   File "/build/pytest-pylint-0.14.1/pytest_pylint.py", line 236, in pytest_collection_finish
> INTERNALERROR>     result = lint.Run(args_list, reporter=reporter, do_exit=False)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/lint.py", line 1608, in __init__
> INTERNALERROR>     linter.check(args)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/lint.py", line 938, in check
> INTERNALERROR>     self._do_check(files_or_modules)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/lint.py", line 1071, in _do_check
> INTERNALERROR>     self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/lint.py", line 1154, in check_astroid_module
> INTERNALERROR>     walker.walk(ast_node)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/utils.py", line 1269, in walk
> INTERNALERROR>     self.walk(child)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/utils.py", line 1266, in walk
> INTERNALERROR>     cb(astroid)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pylint/checkers/variables.py", line 1582, in visit_import
> INTERNALERROR>     module = next(node.infer_name_module(parts[0]))
> INTERNALERROR> AttributeError: 'Import' object has no attribute 'infer_name_module'

this is pylint fault: i've uploaded astroid in preparation to upgrade
pylint too (old pylint is incompatibile with new astroid), but the
last step was delayed -- i'm working on it right now hopefully it will
hit the archive in a few hours

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi



More information about the Python-modules-team mailing list