Skip to content

can't use gfile to access oss:// since tensorflow_io.oss is refactored #1448

@railic

Description

@railic

Now the following sample code will fail with error: "File system scheme 'oss' not implemented"

`

from tensorflow.io import gfile
# import tensorflow_io.oss <- this won't work

access_id = 'Access Key ID'
access_key = 'Access Key Secret'
host = "oss-cn-beijing.aliyuncs.com"
bucket = "oss://yikan-test-gfile"
oss_bucket_root = "{}\x01id={}\x02key={}\x02host={}/".format(bucket,
                                                             access_id,
                                                             access_key,
                                                             host)
oss_file = oss_bucket_root + 'test.txt'

gfile.stat(oss_file)

`

the problem is "tensorflow_io.oss" is not available in latest io pkg. How shall I include the oss plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions