← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1696403] [NEW] Pep8 fails due to six 1.10.0

 

Public bug reported:

2017-06-07 09:29:49.968889 | Traceback (most recent call last):
2017-06-07 09:29:49.968921 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/bin/pylint", line 11, in <module>
2017-06-07 09:29:49.968933 |     sys.exit(run_pylint())
2017-06-07 09:29:49.968974 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/__init__.py", line 23, in run_pylint
2017-06-07 09:29:49.968986 |     Run(sys.argv[1:])
2017-06-07 09:29:49.969025 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 1332, in __init__
2017-06-07 09:29:49.969037 |     linter.check(args)
2017-06-07 09:29:49.969074 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 747, in check
2017-06-07 09:29:49.969090 |     self._do_check(files_or_modules)
2017-06-07 09:29:49.969129 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 869, in _do_check
2017-06-07 09:29:49.969152 |     self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
2017-06-07 09:29:49.969193 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 946, in check_astroid_module
2017-06-07 09:29:49.969206 |     walker.walk(ast_node)
2017-06-07 09:29:49.969245 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 874, in walk
2017-06-07 09:29:49.969255 |     self.walk(child)
2017-06-07 09:29:49.969294 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 871, in walk
2017-06-07 09:29:49.969304 |     cb(astroid)
2017-06-07 09:29:49.969349 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 249, in visit_import
2017-06-07 09:29:49.969368 |     importedmodnode = self.get_imported_module(node, name)
2017-06-07 09:29:49.969411 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 288, in get_imported_module
2017-06-07 09:29:49.969428 |     return importnode.do_import_module(modname)
2017-06-07 09:29:49.969469 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/mixins.py", line 119, in do_import_module
2017-06-07 09:29:49.969484 |     relative_only=level and level >= 1)
2017-06-07 09:29:49.969525 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/scoped_nodes.py", line 415, in import_module
2017-06-07 09:29:49.969542 |     return MANAGER.ast_from_module_name(modname)
2017-06-07 09:29:49.969584 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/manager.py", line 161, in ast_from_module_name
2017-06-07 09:29:49.969592 |     raise e
2017-06-07 09:29:49.969620 | astroid.exceptions.AstroidImportError: Failed to import module six.moves.urllib.parse with error:
2017-06-07 09:29:49.969636 | No module named six.moves.urllib.parse.
2017-06-07 09:29:50.688358 | ERROR: InvocationError: '/bin/sh ./tools/coding-checks.sh --pylint '
2017-06-07 09:29:50.688923 | ___________________________________ summary ____________________________________
2017-06-07 09:29:50.688975 | ERROR:   pep8: commands failed

** Affects: neutron
     Importance: Undecided
         Status: New

** Description changed:

- 2017-06-07 11:29:07.751893 | Traceback (most recent call last):
- 2017-06-07 11:29:07.751925 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/bin/pylint", line 11, in <module>
- 2017-06-07 11:29:07.751938 |     sys.exit(run_pylint())
- 2017-06-07 11:29:07.751979 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/__init__.py", line 23, in run_pylint
- 2017-06-07 11:29:07.751992 |     Run(sys.argv[1:])
- 2017-06-07 11:29:07.752033 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 1332, in __init__
- 2017-06-07 11:29:07.752046 |     linter.check(args)
- 2017-06-07 11:29:07.752085 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 747, in check
- 2017-06-07 11:29:07.752103 |     self._do_check(files_or_modules)
- 2017-06-07 11:29:07.752143 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 869, in _do_check
- 2017-06-07 11:29:07.752167 |     self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
- 2017-06-07 11:29:07.752213 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 946, in check_astroid_module
- 2017-06-07 11:29:07.752226 |     walker.walk(ast_node)
- 2017-06-07 11:29:07.752265 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 874, in walk
- 2017-06-07 11:29:07.752276 |     self.walk(child)
- 2017-06-07 11:29:07.752315 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 871, in walk
- 2017-06-07 11:29:07.752325 |     cb(astroid)
- 2017-06-07 11:29:07.752368 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 249, in visit_import
- 2017-06-07 11:29:07.752388 |     importedmodnode = self.get_imported_module(node, name)
- 2017-06-07 11:29:07.752433 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 288, in get_imported_module
- 2017-06-07 11:29:07.752450 |     return importnode.do_import_module(modname)
- 2017-06-07 11:29:07.752492 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/mixins.py", line 119, in do_import_module
- 2017-06-07 11:29:07.752507 |     relative_only=level and level >= 1)
- 2017-06-07 11:29:07.752550 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/scoped_nodes.py", line 415, in import_module
- 2017-06-07 11:29:07.752568 |     return MANAGER.ast_from_module_name(modname)
- 2017-06-07 11:29:07.752611 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/manager.py", line 161, in ast_from_module_name
- 2017-06-07 11:29:07.752620 |     raise e
- 2017-06-07 11:29:07.752647 | astroid.exceptions.AstroidImportError: Failed to import module six.urllib.parse with error:
- 2017-06-07 11:29:07.752667 | No module named six.urllib.parse.
- 2017-06-07 11:29:08.561853 | ERROR: InvocationError: '/bin/sh ./tools/coding-checks.sh --pylint '
- 2017-06-07 11:29:08.563465 | ___________________________________ summary ____________________________________
+ 2017-06-07 09:29:49.968889 | Traceback (most recent call last):
+ 2017-06-07 09:29:49.968921 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/bin/pylint", line 11, in <module>
+ 2017-06-07 09:29:49.968933 |     sys.exit(run_pylint())
+ 2017-06-07 09:29:49.968974 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/__init__.py", line 23, in run_pylint
+ 2017-06-07 09:29:49.968986 |     Run(sys.argv[1:])
+ 2017-06-07 09:29:49.969025 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 1332, in __init__
+ 2017-06-07 09:29:49.969037 |     linter.check(args)
+ 2017-06-07 09:29:49.969074 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 747, in check
+ 2017-06-07 09:29:49.969090 |     self._do_check(files_or_modules)
+ 2017-06-07 09:29:49.969129 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 869, in _do_check
+ 2017-06-07 09:29:49.969152 |     self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
+ 2017-06-07 09:29:49.969193 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 946, in check_astroid_module
+ 2017-06-07 09:29:49.969206 |     walker.walk(ast_node)
+ 2017-06-07 09:29:49.969245 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 874, in walk
+ 2017-06-07 09:29:49.969255 |     self.walk(child)
+ 2017-06-07 09:29:49.969294 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 871, in walk
+ 2017-06-07 09:29:49.969304 |     cb(astroid)
+ 2017-06-07 09:29:49.969349 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 249, in visit_import
+ 2017-06-07 09:29:49.969368 |     importedmodnode = self.get_imported_module(node, name)
+ 2017-06-07 09:29:49.969411 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 288, in get_imported_module
+ 2017-06-07 09:29:49.969428 |     return importnode.do_import_module(modname)
+ 2017-06-07 09:29:49.969469 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/mixins.py", line 119, in do_import_module
+ 2017-06-07 09:29:49.969484 |     relative_only=level and level >= 1)
+ 2017-06-07 09:29:49.969525 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/scoped_nodes.py", line 415, in import_module
+ 2017-06-07 09:29:49.969542 |     return MANAGER.ast_from_module_name(modname)
+ 2017-06-07 09:29:49.969584 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/manager.py", line 161, in ast_from_module_name
+ 2017-06-07 09:29:49.969592 |     raise e
+ 2017-06-07 09:29:49.969620 | astroid.exceptions.AstroidImportError: Failed to import module six.moves.urllib.parse with error:
+ 2017-06-07 09:29:49.969636 | No module named six.moves.urllib.parse.
+ 2017-06-07 09:29:50.688358 | ERROR: InvocationError: '/bin/sh ./tools/coding-checks.sh --pylint '
+ 2017-06-07 09:29:50.688923 | ___________________________________ summary ____________________________________
+ 2017-06-07 09:29:50.688975 | ERROR:   pep8: commands failed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1696403

Title:
  Pep8 fails due to six 1.10.0

Status in neutron:
  New

Bug description:
  2017-06-07 09:29:49.968889 | Traceback (most recent call last):
  2017-06-07 09:29:49.968921 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/bin/pylint", line 11, in <module>
  2017-06-07 09:29:49.968933 |     sys.exit(run_pylint())
  2017-06-07 09:29:49.968974 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/__init__.py", line 23, in run_pylint
  2017-06-07 09:29:49.968986 |     Run(sys.argv[1:])
  2017-06-07 09:29:49.969025 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 1332, in __init__
  2017-06-07 09:29:49.969037 |     linter.check(args)
  2017-06-07 09:29:49.969074 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 747, in check
  2017-06-07 09:29:49.969090 |     self._do_check(files_or_modules)
  2017-06-07 09:29:49.969129 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 869, in _do_check
  2017-06-07 09:29:49.969152 |     self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
  2017-06-07 09:29:49.969193 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/lint.py", line 946, in check_astroid_module
  2017-06-07 09:29:49.969206 |     walker.walk(ast_node)
  2017-06-07 09:29:49.969245 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 874, in walk
  2017-06-07 09:29:49.969255 |     self.walk(child)
  2017-06-07 09:29:49.969294 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/utils.py", line 871, in walk
  2017-06-07 09:29:49.969304 |     cb(astroid)
  2017-06-07 09:29:49.969349 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 249, in visit_import
  2017-06-07 09:29:49.969368 |     importedmodnode = self.get_imported_module(node, name)
  2017-06-07 09:29:49.969411 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/pylint/checkers/imports.py", line 288, in get_imported_module
  2017-06-07 09:29:49.969428 |     return importnode.do_import_module(modname)
  2017-06-07 09:29:49.969469 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/mixins.py", line 119, in do_import_module
  2017-06-07 09:29:49.969484 |     relative_only=level and level >= 1)
  2017-06-07 09:29:49.969525 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/scoped_nodes.py", line 415, in import_module
  2017-06-07 09:29:49.969542 |     return MANAGER.ast_from_module_name(modname)
  2017-06-07 09:29:49.969584 |   File "/home/jenkins/workspace/gate-neutron-pep8-ubuntu-xenial/.tox/pep8/local/lib/python2.7/site-packages/astroid/manager.py", line 161, in ast_from_module_name
  2017-06-07 09:29:49.969592 |     raise e
  2017-06-07 09:29:49.969620 | astroid.exceptions.AstroidImportError: Failed to import module six.moves.urllib.parse with error:
  2017-06-07 09:29:49.969636 | No module named six.moves.urllib.parse.
  2017-06-07 09:29:50.688358 | ERROR: InvocationError: '/bin/sh ./tools/coding-checks.sh --pylint '
  2017-06-07 09:29:50.688923 | ___________________________________ summary ____________________________________
  2017-06-07 09:29:50.688975 | ERROR:   pep8: commands failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1696403/+subscriptions


Follow ups