<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 16.04</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: 1.13.2 commit</li>
<li>Python version: 2.7</li>
<li>Installed using virtualenv? pip? conda?: pip</li>
<li>Bazel version (if compiling from source): 0.19.2</li>
<li>GCC/Compiler version (if compiling from source): 4.8.5</li>
<li>CUDA/cuDNN version: no</li>
<li>GPU model and memory: no</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/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&quot;, line 27, in &lt;module&gt;
    from tensorflow.python.tools.api.generator import doc_srcs
  File &quot;/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&quot;, line 63, in &lt;module&gt;
    from tensorflow.python.framework.framework_lib import *  # pylint: disable=redefined-builtin
  File &quot;/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&quot;, line 52, in &lt;module&gt;
    from tensorflow.python.framework.importer import import_graph_def
  File &quot;/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&quot;, line 28, in &lt;module&gt;
    from tensorflow.python.framework import function
  File &quot;/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&quot;, line 36, in &lt;module&gt;
    from tensorflow.python.ops import resource_variable_ops
  File &quot;/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&quot;, line 39, in &lt;module&gt;
    from tensorflow.python.ops import variables
  File &quot;/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&quot;, line 133, in &lt;module&gt;
    &quot;* `ONLY_FIRST_TOWER`: Deprecated alias for `ONLY_FIRST_REPLICA`.\n  &quot;)
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."><pre class="notranslate"><code class="notranslate"> 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 &lt;module&gt;
    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 &lt;module&gt;
    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 &lt;module&gt;
    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 &lt;module&gt;
    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 &lt;module&gt;
    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 &lt;module&gt;
    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 &lt;module&gt;
    "* `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.
</code></pre></div>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
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.</p>
<p dir="auto">Please go to Stack Overflow for help and support:</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p>
<p dir="auto">If you open a GitHub issue, here is our policy:</p>
<ol dir="auto">
<li>It must be a bug or a feature request.</li>
<li>The form below must be filled out.</li>
<li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li>
</ol>
<p dir="auto"><strong>Here's why we have that policy</strong>: 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.</p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li>
<p dir="auto"><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</p>
</li>
<li>
<p dir="auto"><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
Redhat</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow installed from (source or binary)</strong>:<br>
source</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow version (use command below)</strong>:<br>
1.0</p>
</li>
<li>
<p dir="auto"><strong>Python version</strong>:<br>
2.7.14</p>
</li>
<li>
<p dir="auto"><strong>Bazel version (if compiling from source)</strong>:</p>
</li>
<li>
<p dir="auto"><strong>GCC/Compiler version (if compiling from source)</strong>:<br>
4.8.5</p>
</li>
<li>
<p dir="auto"><strong>CUDA/cuDNN version</strong>:<br>
8/5</p>
</li>
<li>
<p dir="auto"><strong>GPU model and memory</strong>:</p>
</li>
<li>
<p dir="auto"><strong>Exact command to reproduce</strong>:</p>
</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture script:</p>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p>
<p dir="auto">You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p>
<p dir="auto">Getting the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /home/amalik/tensorflow/tensorflow/tools/test/BUILD:81:1: Traceback (most recent call last):
	File &quot;/home/amalik/tensorflow/tensorflow/tools/test/BUILD&quot;, line 81
		tf_cc_logged_benchmark(name = &quot;cast_op_benchmark&quot;, target...&quot;)
	File &quot;/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl&quot;, line 23, in tf_cc_logged_benchmark
		list((set(tags) + set([&quot;benchmark-tes...&quot;])))
	File &quot;/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl&quot;, 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 &quot;/home/amalik/tensorflow/tensorflow/tools/test/BUILD&quot;, line 86
		tf_py_logged_benchmark(name = &quot;rnn_op_benchmark&quot;, target ...&quot;)
	File &quot;/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl&quot;, line 52, in tf_py_logged_benchmark
		tf_cc_logged_benchmark(name = name, target = target, benchm..., &lt;2 more arguments&gt;)
	File &quot;/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl&quot;, line 23, in tf_cc_logged_benchmark
		list((set(tags) + set([&quot;benchmark-tes...&quot;])))
	File &quot;/home/amalik/tensorflow/tensorflow/tools/test/performance.bzl&quot;, 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 &quot;/home/amalik/tensorflow/tensorflow/core/kernels/BUILD&quot;, line 53
		config_setting(name = &quot;xsmm_backward&quot;, values = {...&quot;})
	File &quot;/home/amalik/tensorflow/tensorflow/core/kernels/BUILD&quot;, line 58, in config_setting
		{&quot;define&quot;: &quot;tensorflow_xsmm=1&quot;, &quot;define&quot;: &quot;tensorflow_xsmm_backward=1&quot;}
Duplicated key &quot;define&quot; when creating dictionary.
ERROR: package contains errors: tensorflow/core/kernels.
ERROR: error loading package 'tensorflow/core/kernels': Package 'tensorflow/core/kernels' contains errors."><pre class="notranslate"><code class="notranslate">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..., &lt;2 more arguments&gt;)
	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.
</code></pre></div>
<p dir="auto">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</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">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.</p>