Skip to content

tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open #32

Description

@kckohub

I bump into the issue while trying to train based on the data from twitter_en-big

python main.py --mode train --model_name twitter_en_big

My working environment is:
Windows 10 64 bit
Python 3.5
tensorflow-gpu v1.0.0

One more thing that I need to confirm is my file naming correct for the train and test data?

D:\Dev-Projects\tf_chatbot_seq2seq_antilm\works\twitter_en_big\data\train\chat.test.gz
D:\Dev-Projects\tf_chatbot_seq2seq_antilm\works\twitter_en_big\data\test\chat_test.txt

Created model with fresh parameters.
Reading development and training data (limit: 0).
Traceback (most recent call last):
  File "main.py", line 28, in <module>
    tf.app.run()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "main.py", line 18, in main
    train(args)
  File "D:\Dev-Projects\tf_chatbot_seq2seq_antilm\lib\train.py", line 48, in train
    dev_set = data_utils.read_data(dev_data, args.buckets, reversed=args.rev_model)
  File "D:\Dev-Projects\tf_chatbot_seq2seq_antilm\lib\data_utils.py", line 399, in read_data
    source, target = fh.readline(), fh.readline()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 123, in readline
    self._preread_check()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 73, in _preread_check
    compat.as_bytes(self.__name), 1024 * 512, status)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python35\lib\contextlib.py", line 66, in __exit__
    next(self.gen)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python35\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: NewRandomAccessFile failed to Create/Open: works/twitter_en_big/data\chat_test.ids100000.in : The system cannot find the file specified.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions