← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1350644] [NEW] On Centos7 pylint fails to build

 

Public bug reported:

This appears to be because the tests wont bitcompile:

+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos
.x86_64/usr/lib/python2.7/ using /usr/bin/python2.7
/usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:4: SyntaxWarning: assertion is always true, perhaps remove 
parentheses?
/usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:5: SyntaxWarning: assertion is always true, perhaps remove 
parentheses?
/usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:7: SyntaxWarning: assertion is always true, perhaps remove 
parentheses?
/usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:8: SyntaxWarning: assertion is always true, perhaps remove 
parentheses?
/usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:9: SyntaxWarning: assertion is always true, perhaps remove 
parentheses?
/usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:11: SyntaxWarning: assertion is always true, perhaps remove
 parentheses?
Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_3k_removed_stuff_py_30.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_3k_removed_stuff_py_30.py", line 4
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_continue_not_in_loop.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_continue_not_in_loop.py", line 8
SyntaxError: 'continue' not properly in loop

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_keyword_repeat.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_keyword_repeat.py", line 8
SyntaxError: keyword argument repeated

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_return_outside_func.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_return_outside_func.py", line 3
SyntaxError: 'return' outside function

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_return_yield_mix.py ...
SyntaxError: 'return' with argument inside generator (func_return_yield_mix.py, line 8)

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_syntax_error.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_syntax_error.py", line 1
    def toto
           ^
SyntaxError: invalid syntax

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_unknown_encoding.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_unknown_encoding.py", line 0
SyntaxError: unknown encoding: IBO-8859-1

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_w0705.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_w0705.py", line 28
SyntaxError: default 'except:' must be last

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/func_yield_outside_func.py ...
  File "/usr/lib/python2.7/site-packages/pylint/test/input/func_yield_outside_func.py", line 3
SyntaxError: 'yield' outside function

Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
on2.7/site-packages/pylint/test/input/syntax_error.py ...
Sorry: IndentationError: expected an indented block (syntax_error.py, line 2)
error: Bad exit status from /var/tmp/rpm-tmp.T9uxtI (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.T9uxtI (%install)
[root@localhost anvil]#

** Affects: anvil
     Importance: Undecided
         Status: New

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

Title:
  On Centos7 pylint fails to build

Status in ANVIL for forging OpenStack.:
  New

Bug description:
  This appears to be because the tests wont bitcompile:

  + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
  Bytecompiling .py files below /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos
  .x86_64/usr/lib/python2.7/ using /usr/bin/python2.7
  /usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:4: SyntaxWarning: assertion is always true, perhaps remove 
  parentheses?
  /usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:5: SyntaxWarning: assertion is always true, perhaps remove 
  parentheses?
  /usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:7: SyntaxWarning: assertion is always true, perhaps remove 
  parentheses?
  /usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:8: SyntaxWarning: assertion is always true, perhaps remove 
  parentheses?
  /usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:9: SyntaxWarning: assertion is always true, perhaps remove 
  parentheses?
  /usr/lib/python2.7/site-packages/pylint/test/input/func_assert_2uple.py:11: SyntaxWarning: assertion is always true, perhaps remove
   parentheses?
  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_3k_removed_stuff_py_30.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_3k_removed_stuff_py_30.py", line 4
  SyntaxError: from __future__ imports must occur at the beginning of the file

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_continue_not_in_loop.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_continue_not_in_loop.py", line 8
  SyntaxError: 'continue' not properly in loop

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_keyword_repeat.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_keyword_repeat.py", line 8
  SyntaxError: keyword argument repeated

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_return_outside_func.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_return_outside_func.py", line 3
  SyntaxError: 'return' outside function

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_return_yield_mix.py ...
  SyntaxError: 'return' with argument inside generator (func_return_yield_mix.py, line 8)

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_syntax_error.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_syntax_error.py", line 1
      def toto
             ^
  SyntaxError: invalid syntax

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_unknown_encoding.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_unknown_encoding.py", line 0
  SyntaxError: unknown encoding: IBO-8859-1

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_w0705.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_w0705.py", line 28
  SyntaxError: default 'except:' must be last

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/func_yield_outside_func.py ...
    File "/usr/lib/python2.7/site-packages/pylint/test/input/func_yield_outside_func.py", line 3
  SyntaxError: 'yield' outside function

  Compiling /root/openstack/deps/rpmbuild/pylint-0.25.2-0.el7.centos.src.rpm/BUILDROOT/pylint-0.25.2-0.el7.centos.x86_64/usr/lib/pyth
  on2.7/site-packages/pylint/test/input/syntax_error.py ...
  Sorry: IndentationError: expected an indented block (syntax_error.py, line 2)
  error: Bad exit status from /var/tmp/rpm-tmp.T9uxtI (%install)

  
  RPM build errors:
      Bad exit status from /var/tmp/rpm-tmp.T9uxtI (%install)
  [root@localhost anvil]#

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


Follow ups

References