-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Failed to create a directory: ./logdir\train\2017-04-16T14-17-39 #255
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'm not a Windows user, but maybe you need to use .\logdir\train\2017-04-16T14-17-39 instead of ./logdir\train\2017-04-16T14-17-39 ? It looks like this is the default logdir though, so try specifying the logdir directly as a command line argument. |
I am also having a similar issue: but with ./logdir Using default logdir: ./logdir/train/2017-12-03T23-24-51 |
I had that problem. Can't remember the solution. Try running the program with sudo.
Devin Roth
… On Dec 3, 2017, at 3:25 PM, racheljchen ***@***.***> wrote:
I am also having a similar issue:\ but with ./logdir
Using default logdir: ./logdir/train/2017-12-03T23-24-51
Traceback (most recent call last):
File "train.py", line 337, in
main()
File "train.py", line 263, in main
writer = tf.summary.FileWriter(logdir)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/summary/writer/writer.py", line 336, in init
filename_suffix)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/summary/writer/event_file_writer.py", line 67, in init
gfile.MakeDirs(self._logdir)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 367, in recursive_create_dir
pywrap_tensorflow.RecursivelyCreateDir(compat.as_bytes(dirname), status)
File "/usr/lib/python2.7/contextlib.py", line 24, in exit
self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.PermissionDeniedError: ./logdir
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
realized I was in the wrong directory for tensorflow-wavenet (was using another implementation of it). switched to the folder pulled directly from cloning this project and it didn't give me this problem anymore. |
I'm having same problem with logdir pl help me |
I also have such issue ,but resolved by below command above is my command run successfully in windows 10 |
I think this is simply a 'path' issue. In Windows, just modify the Log directory ROOT from LOGDIR_ROOT = ./logdir to LOGDIR_ROOT = 'logdir' |
In Windows, create folder manually. |
please can you explain further, do you mean the logs folder should be created manually |
@hallibay Yes, I had this issue too on my Windows 10 machine. My error looked like this:
So, for me, within the directory of my project's .py file, or whichever folder I'm running the program from, I needed to manually create a folder called 23_logs, then within that folder, manually create a new folder called train, and then within the train folder, create a new folder called plugins, and again for profile. Then I just re-ran the program and it worked. Not sure why TF doesn't just make the directory's as it needs but whatever. Hope that helps? |
Fix that worked for me in Windows10 Use this: |
I found out the solution. just replace the path with "r" in the beginning in the code wherever the path strings are mentioned. ex. try this: |
This worked for me..thanks@StenkinVlad |
Failed to create a directory: Logs\20200303/27/20-013517\train; No such file or directory [Op:CreateSummaryFileWriter] I am using windows 10. |
this worked for me. |
|
it worked,thank you |
I had the same issue with the log file location for tensorboard. The following quick fix worked for me on Win10:
|
Doesn't it work if i have used os instead of path ? I have used all these things to set path but it still seems to be taking the wrong path |
@NEMO-WXL replacing the slashes worked. What is the purpose behind the replacement? Is this a windows specific fix? |
|
Thanks :) |
This bug still exists on Windows:
Anyone can help? Thanks! |
What helped me, is wrapping the path with Path object (from pathlib module) and converting back to str |
I am having the following error when trying to train the VCTK-Corpus. I am using tensorflow version "0.12.1". Does anybody knows how to resolve this error.
Using default logdir: ./logdir\train\2017-04-16T14-17-39
Traceback (most recent call last):
File "E:/Spring 2017/CS 523/project 3/part-3/tensorflow-wavenet-master/tensorflow-wavenet-master/train.py", line 337, in
main()
File "E:/Spring 2017/CS 523/project 3/part-3/tensorflow-wavenet-master/tensorflow-wavenet-master/train.py", line 263, in main
writer = tf.summary.FileWriter(logdir)
File "C:\Anaconda3\lib\site-packages\tensorflow\python\summary\writer\writer.py", line 308, in init
event_writer = EventFileWriter(logdir, max_queue, flush_secs)
File "C:\Anaconda3\lib\site-packages\tensorflow\python\summary\writer\event_file_writer.py", line 69, in init
gfile.MakeDirs(self._logdir)
File "C:\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 299, in recursive_create_dir
pywrap_tensorflow.RecursivelyCreateDir(compat.as_bytes(dirname), status)
File "C:\Anaconda3\lib\contextlib.py", line 66, in exit
next(self.gen)
File "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 469, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: ./logdir\train\2017-04-16T14-17-39
The text was updated successfully, but these errors were encountered: