pythontensorflowtensorflow2.0

NewRandomAccessFile failed to Create/Open : Access is denied. ; Input/output error [Op:ReadFile]


I am trying to read this file using tensorflow

tf.io.read_file("Parsed_Capuchinbird_Clips")

I searched all of over google but they say to give the folder permission and stuff like that, and it's already have that, I really on this problem for 4 hours already, and I don't know what to do. this the error I get {{function_node __wrapped__ReadFile_device_/job:localhost/replica:0/task:0/device:CPU:0}} NewRandomAccessFile failed to Create/Open: Parsed_Capuchinbird_Clips : Access is denied. ; Input/output error [Op:ReadFile]

I am only trying to read the file using tensor file.


Solution

  • If your file "Parsed_Capuchinbird_Clips" is giving this error then I would suggest including the file extension as well in the code. So if this is a txt file then try

    tf.io.read_file("Parsed_Capuchinbird_Clips.txt")
    

    If this still does not work then maybe providing more information on this file would help locate the issue.