Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 16.04

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary): source

TensorFlow version: 1.13.2 commit

Python version: 2.7

Installed using virtualenv? pip? conda?: pip

Bazel version (if compiling from source): 0.19.2

GCC/Compiler version (if compiling from source): 4.8.5

CUDA/cuDNN version: no

GPU model and memory: no

Describe the problem

File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 27, in <module>
from tensorflow.python.tools.api.generator import doc_srcs
File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 63, in <module>
from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin
File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/framework/framework_lib.py", line 52, in <module>
from tensorflow.python.framework.importer import import_graph_def
File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/framework/importer.py", line 28, in <module>
from tensorflow.python.framework import function
File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/framework/function.py", line 36, in <module>
from tensorflow.python.ops import resource_variable_ops
File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/ops/resource_variable_ops.py", line 39, in <module>
from tensorflow.python.ops import variables
File "/home/p.patel/.cache/bazel/_bazel_root/1bd8cf0b6a86ac78985c768eb3530621/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_1_tf_python_api_gen_v1.runfiles/org_tensorflow/tensorflow/python/ops/variables.py", line 133, in <module>
"* `ONLY_FIRST_TOWER`: Deprecated alias for `ONLY_FIRST_REPLICA`.\n ")
AttributeError: attribute '__doc__' of 'type' objects is not writable
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.

Provide the exact sequence of commands / steps that you executed before running into the problem

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue 2:
Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow

If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.

The form below must be filled out.

It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

Redhat

TensorFlow installed from (source or binary):

source

TensorFlow version (use command below):

1.0

Python version:

2.7.14

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

4.8.5

CUDA/cuDNN version:

8/5

GPU model and memory:

Exact command to reproduce:

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

Getting the following error:

ERROR: /home/amalik/tensorflow/tensorflow/tools/test/BUILD:81:1: Traceback (most recent call last):
File "/home/amalik/tensorflow/tensorflow/tools/test/BUILD", line 81
tf_cc_logged_benchmark(name = "cast_op_benchmark", target...")
File "/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl", line 23, in tf_cc_logged_benchmark
list((set(tags) + set(["benchmark-tes..."])))
File "/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl", line 23, in list
set(tags)
The `set` constructor for depsets is deprecated and will be removed. Please use the `depset` constructor instead. You can temporarily enable the deprecated `set` constructor by passing the flag --incompatible_disallow_set_constructor=false.
ERROR: package contains errors: tensorflow/tools/test.
ERROR: /home/amalik/tensorflow/tensorflow/tools/test/BUILD:86:1: Traceback (most recent call last):
File "/home/amalik/tensorflow/tensorflow/tools/test/BUILD", line 86
tf_py_logged_benchmark(name = "rnn_op_benchmark", target ...")
File "/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl", line 52, in tf_py_logged_benchmark
tf_cc_logged_benchmark(name = name, target = target, benchm..., <2 more arguments>)
File "/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl", line 23, in tf_cc_logged_benchmark
list((set(tags) + set(["benchmark-tes..."])))
File "/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl", line 23, in list
set(tags)
The `set` constructor for depsets is deprecated and will be removed. Please use the `depset` constructor instead. You can temporarily enable the deprecated `set` constructor by passing the flag --incompatible_disallow_set_constructor=false.
ERROR: /home/amalik/tensorflow/tensorflow/core/kernels/BUILD:58:14: Traceback (most recent call last):
File "/home/amalik/tensorflow/tensorflow/core/kernels/BUILD", line 53
config_setting(name = "xsmm_backward", values = {..."})
File "/home/amalik/tensorflow/tensorflow/core/kernels/BUILD", line 58, in config_setting
{"define": "tensorflow_xsmm=1", "define": "tensorflow_xsmm_backward=1"}
Duplicated key "define" when creating dictionary.
ERROR: package contains errors: tensorflow/core/kernels.
ERROR: error loading package 'tensorflow/core/kernels': Package 'tensorflow/core/kernels' contains errors.

Note: Tried other plateforms but could get any reply. I am not sure its a bug or else. I apologize if I am using the wrong forum. I am trying to install tensorflow from source so I can use MPI

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.