← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1186188] Re: gate-keystone-pep8 fail with InvocationError

 

See the exception:

  H302 import only modules.'from keystone.openstack.common.gettextutils
import _' does not import a module

'_' is not a module

** Changed in: keystone
       Status: New => Invalid

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

Title:
  gate-keystone-pep8 fail with InvocationError

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  I have seen this after Jenkins verify my
  patchs:https://review.openstack.org/#/c/31074/ due to code "from
  keystone.openstack.common.gettextutils import _", but this is right
  code, it should pass pep8 checking

   using tox.ini: /home/jenkins/workspace/gate-keystone-pep8/tox.ini
  2013-05-31 08:27:24.583 | using tox-1.4.3 from /usr/local/lib/python2.7/dist-packages/tox/__init__.pyc
  2013-05-31 08:27:24.583 | GLOB sdist-make: /home/jenkins/workspace/gate-keystone-pep8/setup.py
  2013-05-31 08:27:24.593 |   /home/jenkins/workspace/gate-keystone-pep8$ /usr/bin/python /home/jenkins/workspace/gate-keystone-pep8/setup.py sdist --formats=zip --dist-dir /home/jenkins/workspace/gate-keystone-pep8/.tox/dist >/home/jenkins/workspace/gate-keystone-pep8/.tox/log/tox-0.log
  2013-05-31 08:27:27.169 | pep8 create: /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8
  2013-05-31 08:27:27.179 |   /home/jenkins/workspace/gate-keystone-pep8/.tox$ /usr/bin/python2.7 /usr/local/lib/python2.7/dist-packages/virtualenv.py --distribute pep8 >/home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/log/pep8-0.log
  2013-05-31 08:27:29.035 | pep8 installdeps: -r/home/jenkins/workspace/gate-keystone-pep8/requirements.txt, -r/home/jenkins/workspace/gate-keystone-pep8/test-requirements.txt
  2013-05-31 08:27:29.042 |   /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/log$ /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/bin/pip install -r/home/jenkins/workspace/gate-keystone-pep8/requirements.txt -r/home/jenkins/workspace/gate-keystone-pep8/test-requirements.txt >/home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/log/pep8-1.log
  2013-05-31 08:28:28.338 | pep8 inst: /home/jenkins/workspace/gate-keystone-pep8/.tox/dist/keystone-2013.2.b1.30.g0b936d4.zip
  2013-05-31 08:28:28.363 |   /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/log$ /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/bin/pip install /home/jenkins/workspace/gate-keystone-pep8/.tox/dist/keystone-2013.2.b1.30.g0b936d4.zip >/home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/log/pep8-2.log
  2013-05-31 08:28:30.454 | pep8 runtests: commands[0]
  2013-05-31 08:28:30.462 |   /home/jenkins/workspace/gate-keystone-pep8$ /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/bin/flake8 
  2013-05-31 08:28:40.991 | ./keystone/exception.py:20:1: H302  import only modules.'from keystone.openstack.common.gettextutils import _' does not import a module
  2013-05-31 08:28:40.991 | from keystone.openstack.common.gettextutils import _
  2013-05-31 08:28:40.991 | ^
  2013-05-31 08:28:41.202 | ERROR: InvocationError: '/home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/bin/flake8'
  2013-05-31 08:28:41.202 | pep8 runtests: commands[1]
  2013-05-31 08:28:41.208 |   /home/jenkins/workspace/gate-keystone-pep8$ /home/jenkins/workspace/gate-keystone-pep8/.tox/pep8/bin/flake8 --filename=keystone* bin 
  2013-05-31 08:28:41.774 | ___________________________________ summary ____________________________________
  2013-05-31 08:28:41.774 | ERROR:   pep8: commands failed
  2013-05-31 08:28:41.814 | Build step 'Execute shell' marked build as failure
  2013-05-31 08:28:42.202 | [SCP] Connecting to static.openstack.org
  2013-05-31 08:28:42.830 | [SCP] Trying to create /srv/static/logs/31074/2/check/gate-keystone-pep8
  2013-05-31 08:28:42.837 | [SCP] Trying to create /srv/static/logs/31074/2/check/gate-keystone-pep8/5415
  2013-05-31 08:28:42.858 | [SCP] Copying console log.
  2013-05-31 08:28:43.062 | Notifying upstream projects of job completion
  2013-05-31 08:28:43.062 | Finished: FAILURE

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