Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: invalid syntax when building with python3. #527

Closed
abcfy2 opened this issue Jul 18, 2017 · 2 comments
Closed

SyntaxError: invalid syntax when building with python3. #527

abcfy2 opened this issue Jul 18, 2017 · 2 comments

Comments

@abcfy2
Copy link

abcfy2 commented Jul 18, 2017

I'm using python3 installed by anaconda. But I cannot compile tensorflow-serving:

RROR: /home/fengyu/projects/serving/tensorflow_serving/model_servers/BUILD:181:1: error executing shell command: 'bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar --flagfile=bazel-out/local-py3-fastbuild/bin/tensorflow_serving/model_servers/tensorflow_model_server_tar.args' failed: bash failed: error executing command /bin/bash -c 'bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar --flagfile=bazel-out/local-py3-fastbuild/bin/tensorflow_serving/model_servers/tensorflow_model_server_tar.args': com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Traceback (most recent call last):
  File "/home/fengyu/.cache/bazel/_bazel_fengyu/49d694a6bdfd6ccee39cb10c46d42915/execroot/tf_serving/bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar.runfiles/tf_serving/../bazel_tools/tools/build_defs/pkg/build_tar.py", line 23, in <module>
    from third_party.py import gflags
  File "/home/fengyu/.cache/bazel/_bazel_fengyu/49d694a6bdfd6ccee39cb10c46d42915/execroot/tf_serving/bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar.runfiles/bazel_tools/third_party/py/gflags/__init__.py", line 1091
    except gflags_validators.Error, e:
                                  ^
SyntaxError: invalid syntax
INFO: Elapsed time: 2691.501s, Critical Path: 140.28s
@abcfy2
Copy link
Author

abcfy2 commented Jul 18, 2017

Maybe this issue relate to bazelbuild/bazel#1580

@gautamvasudevan
Copy link
Collaborator

Closing due to staleness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants