I am getting an error while trying to read a file within the code.
File isn't open for reading") PermissionDeniedError: File isn't open for reading
file is located within the trainer folder on the google cloud shell. This is what I have given to read the file with file_io.FileIO('/home/arpit_agrawal/DeepSpeech/trainer/data/spell/words.txt','r+') as f: WORDS = set(words(f.read()))
THIS WAS THE ERROR IN LOG FILES : WORDS = set(words(f.read())) File "/root/.local/lib/python2.7/site-packages/tensorflow/python/lib/io/file_io.py", line 106, in read self._preread_check() File "/root/.local/lib/python2.7/site-packages/tensorflow/python/lib/io/file_io.py", line 70, in _preread_check "File isn't open for reading") PermissionDeniedError: File isn't open for reading
result of ls -la for words.txt
-rwxr-xr-x 1 arpit_agrawal arpit_agrawal 12124743 Apr 11 17:53 words.txt