Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1586028 - python-pocketlint FTBFS with astroid 2.0.0
Summary: python-pocketlint FTBFS with astroid 2.0.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pocketlint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON37
TreeView+ depends on / blocked
 
Reported: 2018-06-05 10:56 UTC by Miro Hrončok
Modified: 2018-06-07 09:14 UTC (History)
2 users (show)

Fixed In Version: python-pocketlint-0.16-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-07 09:14:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2018-06-05 10:56:36 UTC
Description of problem: python-pocketlint FTBFS with astroid 2.0.0 (the version of astroid needed for Python 3.7).


Version-Release number of selected component (if applicable): 0.15-4.fc29


How reproducible: Build in rawhide.

+ make PYTHON=/usr/bin/python3 check
*** Running pylint to verify source ***
PYTHONPATH=./build/lib /usr/bin/python3 tests/pylint/runpylint.py
Traceback (most recent call last):
  File "/usr/bin/pylint-3", line 11, in <module>
    load_entry_point('pylint==2.0.0.dev0', 'console_scripts', 'pylint')()
  File "/usr/lib/python3.6/site-packages/pylint/__init__.py", line 18, in run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 1294, in __init__
    linter.load_plugin_modules(self._plugins)
  File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 503, in load_plugin_modules
    module = modutils.load_module_from_name(modname)
  File "/usr/lib/python3.6/site-packages/astroid/modutils.py", line 190, in load_module_from_name
    return load_module_from_modpath(dotted_name.split('.'), path, use_sys)
  File "/usr/lib/python3.6/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/lib64/python3.6/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/builddir/build/BUILD/pocketlint-0.15/build/lib/pocketlint/checkers/pointless-override.py", line 114, in <module>
    class PointlessFunctionDefinition(PointlessData):
  File "/builddir/build/BUILD/pocketlint-0.15/build/lib/pocketlint/checkers/pointless-override.py", line 117, in PointlessFunctionDefinition
    _DEF_CLASS = astroid.Function
AttributeError: module 'astroid' has no attribute 'Function'
...
make: *** [Makefile:13: check] Error 1

Comment 1 Miro Hrončok 2018-06-05 11:12:53 UTC
Fix ready at https://github.com/rhinstaller/pocketlint/pull/22

Comment 2 Miro Hrončok 2018-06-07 09:14:24 UTC
Builds fine with Python 3.7, astroid 2.0.0. Simpleline builds fine as well. Thanks.


Note You need to log in before you can comment on or make changes to this bug.