<p dir="auto">Here is the stackoverflow question: <a href="https://stackoverflow.com/questions/52394305/creating-pip-package-for-tensorflow-with-gpu-support-results-in-0-byte-simple-co" rel="nofollow">https://stackoverflow.com/questions/52394305/creating-pip-package-for-tensorflow-with-gpu-support-results-in-0-byte-simple-co</a></p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10</li>
<li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: N/A</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.11</li>
<li><strong>Python version</strong>: 3.6.5</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.16.1</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>: 9.2/7.2.1</li>
<li><strong>GPU model and memory</strong>: Nvidia M1000M</li>
<li><strong>Exact command to reproduce</strong>: bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">After successfully building TensorFlow with GPU support, I'm trying to build the pip package and I'm getting an error saying it can't read the simple_console_for_windows.zip file.</p>
<p dir="auto">I've confirmed that the file is in C:\tensorflow\bazel-bin\tensorflow\tools\pip_package folder, but it is 0 bytes.</p>
<p dir="auto">This is my pip build command:<br>
bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg</p>
<p dir="auto">My build command was:<br>
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">This is the full error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unzipping simple_console_for_windows.zip to create runfiles tree...
[./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or
        ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period."><pre class="notranslate"><code class="notranslate">Unzipping simple_console_for_windows.zip to create runfiles tree...
[./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or
        ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period.
</code></pre></div>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: no</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10 1803</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: v1.11.0-rc1</li>
<li><strong>Python version</strong>: 3.6.5</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.15.2</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: vs2017 15.8 / cl.exe 19.15.26726</li>
<li><strong>CUDA/cuDNN version</strong>: 9.2.148.1/7.2.1</li>
<li><strong>GPU model and memory</strong>: 1080ti 11GB</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg"><pre class="notranslate"><code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg
</code></pre></div>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">If build artifact large than 4GB, it can't generate the python package.</p>
<p dir="auto">A easy way to reproduce the issue</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0,3.2,3.5,5.0,5.2,5.3"><pre class="notranslate"><code class="notranslate">Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0,3.2,3.5,5.0,5.2,5.3
</code></pre></div>
<p dir="auto">related link:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="336090628" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/20332" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/20332/hovercard?comment_id=415974623&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/20332#issuecomment-415974623">#20332 (comment)</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="361772394" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/22382" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/22382/hovercard" href="https://github.com/tensorflow/tensorflow/issues/22382">#22382</a><br>
<a href="https://github.com/bazelbuild/bazel/blob/0.17.1/third_party/ijar/zip.cc#L74">https://github.com/bazelbuild/bazel/blob/0.17.1/third_party/ijar/zip.cc#L74</a></p>
<h3 dir="auto">Source code / logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncompressed input jar has size ???, which exceeds the maximum supported output size 4294967295.
Assuming that ijar will be smaller and hoping for the best.

Unzipping simple_console_for_windows.zip to create runfiles tree...
[./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or
        ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period.
"><pre class="notranslate"><code class="notranslate">Uncompressed input jar has size ???, which exceeds the maximum supported output size 4294967295.
Assuming that ijar will be smaller and hoping for the best.

Unzipping simple_console_for_windows.zip to create runfiles tree...
[./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or
        ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period.

</code></pre></div>