New issue
Advanced search Search tips

Issue 684118 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner: ----
Closed: Jun 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

setup_lab_tools.py fails with multiple python errors

Project Member Reported by benchan@chromium.org, Jan 23 2017

Issue description

15:01:40 INFO | compiling .py files in /work/labtools/src/third_party/autotest/files/site-packages to .pyc
Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_3k_removed_stuff_py_30.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_3k_removed_stuff_py_30.py", line 4
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_continue_not_in_loop.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_continue_not_in_loop.py", line 8
    continue
SyntaxError: 'continue' not properly in loop

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_e0108.py ...
SyntaxError: duplicate argument '_' in function definition (func_e0108.py, line 4)

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_exec_used_py30.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_exec_used_py30.py", line 6
    exec('a = 1', globals={})
                         ^
SyntaxError: invalid syntax

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_keyword_repeat.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_keyword_repeat.py", line 8
    function_default_arg(two=5, two=7)
SyntaxError: keyword argument repeated

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_kwoa_py30.py...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_kwoa_py30.py",line 3
    def function(*, foo):
                  ^
SyntaxError: invalid syntax

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_return_outside_func.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_return_outside_func.py", line 3
    return
SyntaxError: 'return' outside function

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_return_yield_mix.py ...
SyntaxError: 'return' with argument inside generator (func_return_yield_mix.py, line 8)

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_syntax_error.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_syntax_error.py", line 1
    def toto
           ^
SyntaxError: invalid syntax

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_unknown_encoding.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_unknown_encoding.py", line 0
SyntaxError: unknown encoding: IBO-8859-1

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_w0705.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_w0705.py", line 28
    __revision__ += 1
SyntaxError: default 'except:' must be last

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_yield_outside_func.py ...
  File "/work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/func_yield_outside_func.py", line 3
    yield 1
SyntaxError: 'yield' outside function

Compiling /work/labtools/src/third_party/autotest/files/site-packages/pylint/test/input/syntax_error.py ...
Sorry: IndentationError: expected an indented block (syntax_error.py, line 2)
15:01:42 INFO | chmod -R a+rX '/work/labtools/src/third_party/autotest/files/site-packages'
 
setup_lab_tools.error.txt
108 KB View Download

Comment 1 by dchan@google.com, Jun 6 2017

Mergedinto: 690737
Status: Duplicate (was: Untriaged)
dupto 690737 since it has more responses.

Sign in to add a comment