AttributeError: 'Import' object has no attribute 'infer_name_module'

Bug #1818384 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

eg. http://logs.openstack.org/87/199387/127/check/openstack-tox-pep8/340f69c/job-output.txt.gz

2019-03-02 09:15:11.302723 | ubuntu-xenial | pep8 runtests: commands[2] | /home/zuul/src/git.openstack.org/openstack/networking-midonet/tools/coding-checks.sh --pylint ''
2019-03-02 09:15:11.303148 | ubuntu-xenial | setting PATH=/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
2019-03-02 09:15:11.307681 | ubuntu-xenial | /home/zuul/src/git.openstack.org/openstack/networking-midonet$ /home/zuul/src/git.openstack.org/openstack/networking-midonet/tools/coding-checks.sh --pylint ''
2019-03-02 09:15:11.307732 | ubuntu-xenial | Running pylint...
2019-03-02 09:15:11.307790 | ubuntu-xenial | You can speed this up by running it on 'HEAD~[0-9]' (e.g. HEAD~1, this change only)...
2019-03-02 09:15:12.660484 | ubuntu-xenial | Traceback (most recent call last):
2019-03-02 09:15:12.660700 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/bin/pylint", line 10, in <module>
2019-03-02 09:15:12.660786 | ubuntu-xenial | sys.exit(run_pylint())
2019-03-02 09:15:12.660933 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/__init__.py", line 19, in run_pylint
2019-03-02 09:15:12.660985 | ubuntu-xenial | Run(sys.argv[1:])
2019-03-02 09:15:12.661131 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/lint.py", line 1394, in __init__
2019-03-02 09:15:12.661174 | ubuntu-xenial | linter.check(args)
2019-03-02 09:15:12.661300 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/lint.py", line 801, in check
2019-03-02 09:15:12.661409 | ubuntu-xenial | self._do_check(files_or_modules)
2019-03-02 09:15:12.661539 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/lint.py", line 938, in _do_check
2019-03-02 09:15:12.661611 | ubuntu-xenial | self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
2019-03-02 09:15:12.661743 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/lint.py", line 1018, in check_astroid_module
2019-03-02 09:15:12.661803 | ubuntu-xenial | walker.walk(ast_node)
2019-03-02 09:15:12.661921 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/utils.py", line 1162, in walk
2019-03-02 09:15:12.661954 | ubuntu-xenial | self.walk(child)
2019-03-02 09:15:12.662069 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/utils.py", line 1159, in walk
2019-03-02 09:15:12.662100 | ubuntu-xenial | cb(astroid)
2019-03-02 09:15:12.662228 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/pep8/lib/python3.5/site-packages/pylint/checkers/variables.py", line 1360, in visit_import
2019-03-02 09:15:12.662283 | ubuntu-xenial | module = next(node.infer_name_module(parts[0]))
2019-03-02 09:15:12.662382 | ubuntu-xenial | AttributeError: 'Import' object has no attribute 'infer_name_module'
2019-03-02 09:15:12.897003 | ubuntu-xenial | ERROR: InvocationError for command '/home/zuul/src/git.openstack.org/openstack/networking-midonet/tools/coding-checks.sh --pylint ' (exited with code 1)
2019-03-02 09:15:12.897130 | ubuntu-xenial | pep8 finish: runtests after 12.64 seconds
2019-03-02 09:15:12.897323 | ubuntu-xenial | pep8 start: run-test-post
2019-03-02 09:15:12.897417 | ubuntu-xenial | pep8 finish: run-test-post after 0.00 seconds

Tags: gate-failure
Changed in networking-midonet:
importance: Undecided → Critical
tags: added: gate-failure
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
milestone: none → 8.0.0
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/640614
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=5a3668cc6133cb22f0b6942618be8ac0ff3e6962
Submitter: Zuul
Branch: master

commit 5a3668cc6133cb22f0b6942618be8ac0ff3e6962
Author: YAMAMOTO Takashi <email address hidden>
Date: Sun Mar 3 11:35:58 2019 +0900

    Pin astroid versions

    Copied from Neutron.

    astroid 2.2.0 seems to have API incompatibilities.

    Closes-Bug: #1818384
    Change-Id: I40a6d48ab80ad73501de67317712937e02bccee3

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 8.0.0.0rc1

This issue was fixed in the openstack/networking-midonet 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.