Skip to content

Commit c73173f

Browse files
committed
Additional fix for CentOS 7
Signed-off-by: Yong Tang <[email protected]>
1 parent 07c8e9d commit c73173f

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

tensorflow_io/core/BUILD

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -712,25 +712,12 @@ cc_binary(
712712
}),
713713
)
714714

715-
cc_library(
716-
name = "void_plugins",
717-
srcs = [
718-
"kernels/void_kernels.cc",
719-
],
720-
copts = tf_io_copts(),
721-
linkstatic = True,
722-
deps = [],
723-
alwayslink = 1,
724-
)
725-
726715
cc_binary(
727716
name = "python/ops/libtensorflow_io_plugins.so",
728717
copts = tf_io_copts(),
729718
linkshared = 1,
730719
deps = select({
731-
"//tensorflow_io/core:static_build_on": [
732-
"//tensorflow_io/core:void_plugins",
733-
],
720+
"//tensorflow_io/core:static_build_on": [],
734721
"//conditions:default": [
735722
"//tensorflow_io/core:file_system_plugins",
736723
],

tensorflow_io/core/kernels/void_kernels.cc

Lines changed: 0 additions & 18 deletions
This file was deleted.

tensorflow_io/core/python/ops/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ def _load_library(filename, lib="op"):
6464
return l
6565
except (tf.errors.NotFoundError, OSError) as e:
6666
errs.append(str(e))
67+
if lib == "fs":
68+
print(
69+
"WARNING: unable to open file: {}, from paths: {}\ncaused by: {}".format(
70+
filename, filenames, errs
71+
)
72+
)
73+
return None
6774
raise NotImplementedError(
6875
"unable to open file: "
6976
+ "{}, from paths: {}\ncaused by: {}".format(filename, filenames, errs)

0 commit comments

Comments
 (0)