tensorflow: can't copy tensorflow/python/pywrap_tensorflow_internal.py

porter@fattire:~/Projects/tensorflow$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
Thu Apr 6 17:10:48 PDT 2017 : === Using tmpdir: /tmp/tmp.kCYPVwxjU5
~/Projects/tensorflow/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles ~/Projects/tensorflow
~/Projects/tensorflow
/tmp/tmp.kCYPVwxjU5 ~/Projects/tensorflow
Thu Apr 6 17:10:49 PDT 2017 : === Building wheel
error: can't copy 'tensorflow/python/pywrap_tensorflow_internal.py': doesn't exist or not a regular file

This happens after building tensorflow with bazel and running the binary build by bazel:

bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

pywrap_tensorflow_internal.py doesn’t exist in the source directories:

Tensorflow commit f8dce81 Bazel 0.4.5 CUDA release 8.0, V8.0.26, cuDNN 5105 GPU: NVIDIA Titan 6GB

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

This problem is random. On another machine (same OS, same cuda version, but different GPU), tf can be built successfully. So I just copy the built file to my machine, install it…

I had a similar issue and was able to fix it by removing the VERBS support from the configure. This is what (I guess) happened: bazel build with the VERBS support actually failed, but I didn’t notice it and it still created the file of ‘bazel-bin/tensorflow/tools/pip_package/build_pip_package’. And this file gives me the error.