#6986 make pylint is not working on F26
Closed: fixed 4 years ago Opened 4 years ago by mbasti.

On Fedora26

$ ./configure
....
checking for Pylint... configure: cannot find optional pylint for /usr/bin/python
....
$ make pylint 
make: Nothing to be done for 'pylint'.

The way how pylint is called from makefile is not working in CLI as well

$ python -m pylint
/usr/bin/python: No module named pylint

Packages:

python2-2.7.13-8.fc26.x86_64
pylint-1.7.1-1.fc26.noarch

python2-pylint must be explicitly installed

Metadata Update from @mbasti:
- Issue assigned to mbasti

4 years ago

with installed python2-pylint, still broken

# python2 -m pylint
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/pylint/__main__.py", line 7, in <module>
    pylint.run_pylint()
  File "/usr/lib/python2.7/site-packages/pylint/__init__.py", line 13, in run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 1220, in __init__
    linter.load_default_plugins()
  File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 453, in load_default_plugins
    checkers.initialize(self)
  File "/usr/lib/python2.7/site-packages/pylint/checkers/__init__.py", line 114, in initialize
    register_plugins(linter, __path__[0])
  File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 992, in register_plugins
    module = modutils.load_module_from_file(join(directory, filename))
  File "/usr/lib/python2.7/site-packages/astroid/modutils.py", line 272, in load_module_from_file
    return load_module_from_modpath(modpath, path, use_sys)
  File "/usr/lib/python2.7/site-packages/astroid/modutils.py", line 233, in load_module_from_modpath
    module = imp.load_module(curname, mp_file, mp_filename, mp_desc)
  File "/usr/lib/python2.7/site-packages/pylint/checkers/python3.py", line 100, in <module>
    class Python3Checker(checkers.BaseChecker):
  File "/usr/lib/python2.7/site-packages/pylint/checkers/python3.py", line 501, in Python3Checker
    'sys.version_info < (3, 0)',
  File "/usr/lib/python2.7/site-packages/astroid/node_classes.py", line 624, in repr_tree
    _repr_tree(self, result, set())
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 209, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/usr/lib/python2.7/site-packages/astroid/node_classes.py", line 613, in _repr_node
    depth)
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 209, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/usr/lib/python2.7/site-packages/astroid/node_classes.py", line 613, in _repr_node
    depth)
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 209, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 190, in dispatch
    impl = _find_impl(cls, registry)
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 141, in _find_impl
    mro = _compose_mro(cls, registry.keys())
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 129, in _compose_mro
    return _c3_mro(cls, abcs=mro)
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 83, in _c3_mro
    other_c3_mros = [_c3_mro(base, abcs=abcs) for base in other_bases]
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 87, in _c3_mro
    [explicit_bases] + [abstract_bases] + [other_bases]
  File "/usr/lib/python2.7/site-packages/singledispatch.py", line 38, in _c3_merge
    raise RuntimeError("Inconsistent hierarchy")
RuntimeError: Inconsistent hierarchy

Metadata Update from @mbasti:
- Custom field external_tracker adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1456049

4 years ago

master:

  • be1415b pylint: explicitly depends on python2-pylint

Metadata Update from @mbasti:
- Issue set to the milestone: FreeIPA 4.6
- Issue tagged with: tracker

4 years ago

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata