-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Error while building tensorflow 0.11.0 - cache (directory not empty) #1970
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
Comments
I am also having the same issue at the moment. |
Same error message also for me. |
Also having the same issue. |
No sure if this is correct, but after I make the following change in the configure file: function bazel_clean_and_fetch() { bazel clean --expunge currently doesn't work on WindowsTODO(pcloudy): Re-enable it after bazel clean --expunge is fixed.if ! is_windows; then I can install tensorflow 0.11 from source, with
Jian |
+meteorcloudy |
Wait there is multiple various issue collated to this one:
Anyway rm the bazel cache should fix the issue all the time. Closing this issue please reopen a specific one for your use cases if you are not on those case. |
hi @damienmg, I encountered the same issue as yours. As you suggested, I used
Does this mean the output base has not changed to my specified folder, i.e. Thanks! |
After having the same problems as @AIROBOTAI , I finally hacked ./configure into submission. In 'bazel_clean_and_fetch', I added '--output_base TARGET_DIRCTORY' to both 'bazel ... clean' and 'bazel ... fetch'. |
I was trying to build TF0.12 from source with bazel using NFS. Neither of the suggestions from above worked for me:
This solution seems to be helping: Solution: |
I attempted both solutions suggest by @sfincke and @yselivonchyk, but without luck. Finally, I managed to change the cache location by running This global variable sets the overall cache directory as described here: https://bazel.build/versions/master/docs/output_directories.html. |
Update, I tried the same thing again: compile latest version of TF with bazel while using NFS file system after adjusting .config "bazel clean --expunge_async". So, I would not recommend doint that on NFS unless you are free to restart your servers. I tried some bazel commands to use custom cache location, but it did not work either. |
I confirm #1970 (comment) works for me as well! |
For anyone still having issues with this note that |
@PiranjaF Should I use |
It'd better to set "export TEST_TMPDIR=/tmp/bazel" before installing TF |
I'm trying to install tensorflow 0.11.0 by running
I'm getting an error saying :
I'm not sure if they are related, but before the error message, I also get a warning saying:
I have no clue what the error message means, but if I try running ./configure right after this error message, I get another message saying:
At this point, I just tried deleting the entire .cache folder (I had to first kill a process which was preventing me from deleting it). I tried running configure with the --expunge_async flag as well but it doesn't help. It takes me back to the first error message.
Not sure if it's relevant, but I'm trying to install tensorflow with GPU support and use cuda 8.0 and cudNN 5
I raised this issue on stackoverflow (http://stackoverflow.com/questions/40144776/tensorflow-installation-error-directory-not-empty), and someone pointed out that it's due to a bug in bazel. Please advise me if I'm wrong.
The text was updated successfully, but these errors were encountered: