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

Install from sources: Error: can't copy 'tensorflow/python/pywrap_tensorflow.py': doesn't exist or not a regular file #1594

Closed
tamhd opened this issue Mar 23, 2016 · 9 comments

Comments

@tamhd
Copy link

tamhd commented Mar 23, 2016

I recently tried to install Tensorflow on Ubuntu 14.10. I had cuda 7.0 and cudnn 3.0, so I had to install from sources following the instructions. I got "error: can't copy 'tensorflow/python/pywrap_tensorflow.py': doesn't exist or not a regular file" when building the pip package (with GPU support):

$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
So far, I have set the configuration for cuda and cudnn correctly. What should I do? Thanks.

@mrry
Copy link
Contributor

mrry commented Mar 23, 2016

Just to check: have you installed swig on your machine? It has to be installed manually (via apt-get) and is reponsible for producing that file. (I would have expected a different error message though.)

@tamhd
Copy link
Author

tamhd commented Mar 24, 2016

@mrry: It's what I forgot. problem fixed. Thanks.

@tamhd tamhd closed this as completed Mar 24, 2016
@KendallWeihe
Copy link

I do have swig installed, but I'm still getting the same error. My process is outlined in this SO post (it was about a different question, but still explains everything).

@asimonov
Copy link

I see the same error on latest 1.0 version. on MacOS ElCapitan

error: can't copy 'tensorflow/python/pywrap_tensorflow.py': doesn't exist or not a regular file

@asimonov
Copy link

here is full error message:

mymac:tensorflow myuser$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
Fri 24 Feb 2017 22:41:56 GMT : === Using tmpdir: /var/folders/r5/njbm4bmx7x540l67m3zfp4lm0000gn/T/tmp.XXXXXXXXXX.hKT7gN4Z
~/dev/tensorflow/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles ~/dev/tensorflow
~/dev/tensorflow
/var/folders/r5/njbm4bmx7x540l67m3zfp4lm0000gn/T/tmp.XXXXXXXXXX.hKT7gN4Z ~/dev/tensorflow
Fri 24 Feb 2017 22:41:58 GMT : === Building wheel
error: can't copy 'tensorflow/python/pywrap_tensorflow.py': doesn't exist or not a regular file
mymac:tensorflow myuser$
mymac:tensorflow myuser$ sudo bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
Password:
Fri 24 Feb 2017 22:42:16 GMT : === Using tmpdir: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.XXXXXXXXXX.KZWr2rvk
~/dev/tensorflow/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles ~/dev/tensorflow
~/dev/tensorflow
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.XXXXXXXXXX.KZWr2rvk ~/dev/tensorflow
Fri 24 Feb 2017 22:42:18 GMT : === Building wheel
error: can't copy 'tensorflow/python/pywrap_tensorflow.py': doesn't exist or not a regular file

@PapaMadeleine2022
Copy link

@KendallWeihe @asimonov i got the same error. Do you have solved the problem?
@tamhd @mrry do you have any else solution?

@asimonov
Copy link

asimonov commented Mar 4, 2017 via email

@PapaMadeleine2022
Copy link

@asimonov can you tell me how turn off SIP? I can not understand your mean. Thank you very much

@asimonov
Copy link

asimonov commented Mar 4, 2017 via email

fsx950223 pushed a commit to fsx950223/tensorflow that referenced this issue Nov 28, 2023
…sc_220228_2

Raising the error tolerance for float32 comparison for one subtest within `//tensorflow/python/kernel_tests/nn_ops:ctc_loss_op_test_gpu`
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

5 participants