Skip to content
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

File system scheme 's3' not implemented #1731

Open
greper opened this issue Nov 16, 2022 · 6 comments
Open

File system scheme 's3' not implemented #1731

greper opened this issue Nov 16, 2022 · 6 comments

Comments

@greper
Copy link

greper commented Nov 16, 2022

An error occurred when I ran tensorboard using s3 as logdir

tensorboard --logdir=s3://mnist/log --port=6123

I find this method is the cause of the problem

tf.io.gfile.exists("s3://minst/log/xxxxxx") 
import os

os.environ.setdefault("S3_ENDPOINT", "https://xxxx")
os.environ.setdefault("AWS_ACCESS_KEY_ID", "xxx")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "xxxx")
os.environ.setdefault("AWS_REGION", "us-east-1")

import tensorflow as tf
import tensorflow_io as tfio

gfile = tf.io.gfile.GFile("s3://minst/log/xxxxxx")
print(gfile)
# ↑ ↑ ↑ ---------it's ok

v = tf.io.read_file('s3://minst/log/xxxxx')
print(v) 
# ↑ ↑ ↑ ---------it's ok

tf.io.gfile.exists("s3://minst/log/xxxxxx")
# ↑ ↑ ↑ ---------error

tensorboard.run_main()
# ↑ ↑ ↑ ---------error

os.system("tensorboard --logdir=s3://mnist/log --port=6123")
# ↑ ↑ ↑ ---------error

# will got same error
Traceback (most recent call last):
  File "D:\Users\xiaojunnuo\Desktop\tensorboard\venv\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 288, in file_exists_v2
    _pywrap_file_io.FileExists(compat.path_to_bytes(path))
tensorflow.python.framework.errors_impl.UnimplementedError: File system scheme 's3' not implemented (file: 's3://minst/log/xxxxxxxxxxxxxxxx')

@greper
Copy link
Author

greper commented Nov 16, 2022

https://github.com/tensorflow/tensorflow/blob/359c3cdfc5fabac82b3c70b3b6de2b0a8c16874f/tensorflow/python/lib/io/file_io.py#L270-L272

If 'tf.io.gfile.exists' does not support s3, then what interface can determine whether s3 files and directories exist

@dilverse
Copy link

I am also running into this issue, any updates on this?

@dilverse
Copy link

@greper I tried with the latest tensor board build and that seems to work fine along with tensor flow-io, did you try that?

@dilverse
Copy link

dilverse commented Nov 28, 2022

@greper I tried with the latest tensor board build and that seems to work fine along with tensor flow-io, did you try that?

On further digging I found that there is a tight dependency between the tensorflow version WRT tensorflow-io. Here is the compatibility table, this is going to be trickier during each tensorflow/tensorboard upgrade without any backward compatibility

@slittle-twilio
Copy link

@dilverse I had the same issue because I did not pin the version of tensorflow-io when using tensorflow 2.10. Pinning tensorflow-io to version 0.27.0 solved the issue for me. I would have thought that this dependency should have been taken care of from the package installer.

@rwo-work
Copy link

I have the same Problem only when using Windows. I am using Tensorflow 2.11.0 and tensorflow-io 0.31.0. Under Linux i can use tf.io.gfile.glob perfectly fine. Under Windows however, i get the File system scheme 's3' not implemented error. Is there support for the s3 filesystem under Windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants