New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 644808 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Server deployment failed at running build_externals

Project Member Reported by shuqianz@chromium.org, Sep 7 2016

Issue description

Download/install links of several packages are out of date, which fail the server deployment process. 


....
10:44:55 ERROR| could not get version from <module 'astroid' from '/usr/local/autotest/site-packages/astroid/__init__.pyc'>
10:44:55 INFO | imported astroid version .
10:44:55 INFO | Good checksum for existing Astroid package.
10:44:55 ERROR| could not get version from <module 'logilab' from '/usr/local/autotest/site-packages/logilab/__init__.pyc'>
10:44:55 INFO | imported logilab version .
10:44:55 INFO | Good checksum for existing LogilabCommon package.
10:44:55 ERROR| could not get version from <module 'pylint' from '/usr/local/autotest/site-packages/pylint/__init__.pyc'>
10:44:55 INFO | imported pylint version .
10:44:55 INFO | Good checksum for existing PyLint package.
10:44:55 DEBUG| Running '/usr/bin/git --git-dir=/tmp/tmpCLfDmihdctools/.git --work-tree=/tmp/tmpCLfDmihdctools count-objects'
......

Installed /usr/local/autotest/ExternalSource/mock-2.0.0/pbr-1.10.0-py2.7.egg
Marker evaluation failed, see the following error.  For more information see: http://docs.openstack.org/developer/pbr/compatibility.html#evaluate-marker
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/local/autotest/ExternalSource/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/local/autotest/ExternalSource/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
    kwargs = setup_cfg_to_setup_kwargs(config, script_args)
  File "/usr/local/autotest/ExternalSource/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
    if pkg_resources.evaluate_marker('(%s)' % env_marker):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1271, in evaluate_marker
    return cls.interpret(parser.expr(text).totuple(1)[1])
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in interpret
    return op(nodelist)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1223, in atom
    return cls.interpret(nodelist[2])
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in interpret
    return op(nodelist)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1241, in comparison
    raise SyntaxError(repr(cop)+" operator not allowed in environment markers")
SyntaxError: '<' operator not allowed in environment markers
error in setup command: Error parsing /usr/local/autotest/ExternalSource/mock-2.0.0/setup.cfg: SyntaxError: '<' operator not allowed in environment markers
10:45:10 ERROR| bdist_egg of setuptools failed.
10:45:10 ERROR| Unable to build and install Mock.
Error: None
10:45:10 INFO | tar -xzf '/usr/local/autotest/ExternalSource/Imaging-1.1.7.tar.gz'
10:45:10 INFO | '/usr/bin/python' setup.py build

......
SyntaxError: invalid syntax

Compiling /usr/local/autotest/site-packages/pylint/test/input/func_return_outside_func.py ...
  File "/usr/local/autotest/site-packages/pylint/test/input/func_return_outside_func.py", line 3
    return
SyntaxError: 'return' outside function

Compiling /usr/local/autotest/site-packages/pylint/test/input/func_return_yield_mix.py ...
SyntaxError: 'return' with argument inside generator (func_return_yield_mix.py, line 8)

Compiling /usr/local/autotest/site-packages/pylint/test/input/func_syntax_error.py ...
  File "/usr/local/autotest/site-packages/pylint/test/input/func_syntax_error.py", line 1
    def toto
           ^
SyntaxError: invalid syntax

Compiling /usr/local/autotest/site-packages/pylint/test/input/func_unknown_encoding.py ...
  File "/usr/local/autotest/site-packages/pylint/test/input/func_unknown_encoding.py", line 0
SyntaxError: unknown encoding: IBO-8859-1

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

Compiling /usr/local/autotest/site-packages/pylint/test/input/func_yield_outside_func.py ...
  File "/usr/local/autotest/site-packages/pylint/test/input/func_yield_outside_func.py", line 3
    yield 1
SyntaxError: 'yield' outside function

Compiling /usr/local/autotest/site-packages/pylint/test/input/syntax_error.py ...
Sorry: IndentationError: expected an indented block (syntax_error.py, line 2)
10:45:56 INFO | chmod -R a+rX '/usr/local/autotest/site-packages'
10:45:56 ERROR| Unable to build and install Mock.
Error: None

Traceback (most recent call last):
  File "./site_utils/deploy_server_local.py", line 474, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./site_utils/deploy_server_local.py", line 461, in main
    behaviors.skip_service_status)
  File "./site_utils/deploy_server_local.py", line 327, in run_deploy_actions
    update_command(cmd, dryrun=dryrun)
  File "./site_utils/deploy_server_local.py", line 218, in update_command
    stderr=subprocess.STDOUT)
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/local/autotest/utils/build_externals.py' returned non-zero exit status 1

 
After some checking, it's found that errors like "cannot get version of pylint" are not fatal error. Commenting the 'install mock package' can pass the build_externals.py.

The next steps are:

1. revert the mock package installation, and re-do the deployment.
2. close this bug, and try to fix the bug:  crbug.com/644834 . With the newest version of all packages, the 'cannot get version' error may disappear. 
Status: WontFix (was: Assigned)

Sign in to add a comment