logilab-common #269083 [pylint] crash in modutils [validation pending]

pylint 1.2.0, astroid 1.1.0, common 0.62.1

Traceback (most recent call last):
  File "/usr/bin/pylint", line 3, in <module>
    run_pylint()
  File "/usr/lib/pymodules/python2.7/pylint/__init__.py", line 21, in run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 1047, in __init__
    linter.check(args)
  File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 626, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 712, in check_astroid_module
    walker.walk(astroid)
  File "/usr/lib/pymodules/python2.7/pylint/utils.py", line 714, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.7/pylint/utils.py", line 714, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.7/pylint/utils.py", line 714, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.7/pylint/utils.py", line 711, in walk
    cb(astroid)
  File "/usr/lib/pymodules/python2.7/pylint/checkers/typecheck.py", line 275, in visit_assign
    function_node = safe_infer(node.value.func)
  File "/usr/lib/pymodules/python2.7/pylint/checkers/utils.py", line 85, in safe_infer
    value = inferit.next()
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 337, in wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 213, in infer_getattr
    for owner in self.expr.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 243, in infer_subscript
    value = self.value.infer(context).next()
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 115, in _infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 115, in _infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 337, in wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 167, in infer_callfunc
    for infered in callee.infer_call_result(self, callcontext):
  File "/usr/lib/pymodules/python2.7/astroid/scoped_nodes.py", line 649, in infer_call_result
    for infered in returnnode.value.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 337, in wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 161, in infer_callfunc
    for callee in self.func.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 337, in wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 213, in infer_getattr
    for owner in self.expr.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 115, in _infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 115, in _infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 337, in wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 161, in infer_callfunc
    for callee in self.func.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 337, in wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 213, in infer_getattr
    for owner in self.expr.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 115, in _infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.7/astroid/bases.py", line 313, in wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.7/astroid/inference.py", line 181, in infer_import
    yield self.do_import_module(self.real_name(name))
  File "/usr/lib/pymodules/python2.7/astroid/mixins.py", line 103, in do_import_module
    return mymodule.import_module(modname, level=level)
  File "/usr/lib/pymodules/python2.7/astroid/brain/py2gi.py", line 125, in _new_import_module
    return _orig_import_module(self, modname, relative_only, level)
  File "/usr/lib/pymodules/python2.7/astroid/scoped_nodes.py", line 355, in import_module
    return MANAGER.ast_from_module_name(modname)
  File "/usr/lib/pymodules/python2.7/astroid/manager.py", line 121, in ast_from_module_name
    filepath = self.file_from_module_name(modname, context_file)
  File "/usr/lib/pymodules/python2.7/astroid/manager.py", line 165, in file_from_module_name
    context_file=contextfile)
  File "/usr/lib/python2.7/dist-packages/logilab/common/modutils.py", line 297, in file_from_modpath
    return _file_from_modpath(modpath, path, context)
  File "/usr/lib/python2.7/dist-packages/logilab/common/modutils.py", line 559, in _file_from_modpath
    mtype, mp_filename = _module_file(modpath, path)
  File "/usr/lib/python2.7/dist-packages/logilab/common/modutils.py", line 621, in _module_file
    module = sys.modules[modpath.pop(0)]
KeyError: 'scikits'
prioritynormal
typebug
done in0.63.0
load0.200
load left0.000
closed by#9852fab82497 [modutils] Ensure module is actually in sys.modules in pkg_resources support
patch[modutils] Ensure module is actually in sys.modules in pkg_resources support [applied]