Repository navigation
Closed
Description
Running on AWS in EMR, bootstrapping as follows:
pip3 install --user tensorflow==2.4.0
pip3 install --user tensorflow_recommenders==v0.4.0
# Nightly fixes https://github.com/tensorflow/io/issues/1254 (has support for strings in input parquet).
pip3 install --user tensorflow-io-nightly
Seeing a library load error as below. The code is basically like this:
def load_dataset(ds_name, files, columns):
dataset = tfio.IODataset.from_parquet(files[0], columns=columns)
for file_name in files[1:]:
ds = tfio.IODataset.from_parquet(file_name, columns=columns)
dataset = dataset.concatenate(ds)
return dataset
I'm loading a parquet file like this: Loading s3://my-bucket/dir1/dir2/part-00000-6f1f5a9d-95ac-462c-b148-fcb9404d6972-c000.snappy.parquet
Error:
Traceback (most recent call last):
...
(my code) -- line 236, in load_dataset
File "/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/io_dataset.py", line 275, in from_parquet
filename, columns=columns, internal=True
File "/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/parquet_dataset_ops.py", line 30, in __init__
components, shapes, dtypes = core_ops.io_parquet_readable_info(
File "/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/__init__.py", line 88, in __getattr__
return getattr(self._load(), attrb)
File "/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/__init__.py", line 84, in _load
self._mod = _load_library(self._library)
File "/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/__init__.py", line 71, in _load_library
+ "{}, from paths: {}\ncaused by: {}".format(filename, filenames, errs)
NotImplementedError: unable to open file: libtensorflow_io.so, from paths: ['/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/libtensorflow_io.so']
caused by: ['/home/hadoop/.local/lib/python3.7/site-packages/tensorflow_io/core/python/ops/libtensorflow_io.so: undefined symbol: _ZNK10tensorflow10FileSystem8BasenameEN4absl14lts_2020_02_2511string_viewE']
Metadata
Metadata
Assignees
Labels
No labels
Activity
yongtang commentedon Feb 25, 2021
@dgoldenberg-audiomack With PR #1309, the tensorflow-io-nightly has been switched to depending on tf-nightly. Since there are some changes in tensorflow core repo, tf-nightly's API might be slightly different from tensorflow 2.4.0.
For your specific issues, I think if you use a specific tensorflow-io-nightly version earlier than 2021/02/10:
The issue will be resolved for your case for now.
dgoldenberg-audiomack commentedon Feb 25, 2021
@yongtang Thanks for your fast response on this one. Oddly, I pushed my configuration back to
tensorflow_io==0.17.0from nightly. And with that, my parquet reads appear to be working. They looked broken per #1254. Somehow, I'm not seeing the #1254 error now. I'm thinking to run on 0.17.0 for now and if something breaks with parquet reading, then use your recommendation and switch totensorflow-io-nightly=<earlier than 2021/02/10>.dgoldenberg-audiomack commentedon Mar 27, 2021
@yongtang Hi, I'm looking to run some code with Tensorflow v.2.3.1.
What version of tensorflow io would you recommend that would be compatible with 2.3.1?
Also, any way to get a hold of a compatible version which would have this fix for parquet processing?
When installing tensorflow-io with pip, any way to cause it not to install tensorflow? I want to make sure I'm using the pre-installed TF 2.3.1 and not change anything there.
Thanks.
yongtang commentedon Mar 27, 2021
@dgoldenberg-audiomack You can find version compatibility on:
https://github.com/tensorflow/io#tensorflow-version-compatibility
We normally don't do patch for past releases due to the resource limitation. We can consider it if there is a great need (or for security/vulnerability reasons).
dgoldenberg-audiomack commentedon Mar 27, 2021
Thank you for that pointer, @yongtang.
Specifically for TF 2.3.1, it was released on Sep 24, 2020. Looking at that table, I see
I assume I'll want to run TF IO 0.16.0.
So without a patch to 0.16.0, there is no support for strings in Parquet, which I would classify as a great need. Could we please have this patch generated? Thank you.
yongtang commentedon Mar 29, 2021
@dgoldenberg-audiomack Do you know the specific commit that fixed this issue? To release a patch we will need the following:
dgoldenberg-audiomack commentedon Mar 29, 2021
@yongtang Hi, I don't know, I was just going by your earlier comment
yongtang commentedon Apr 2, 2021
@dgoldenberg-audiomack The issue fixed by #1309 is the API compatibility issue which is different from the comment of
there is no support for strings in Parquet,. Can you explain a little more about the "strings support" you are referring to in the comment?dgoldenberg-audiomack commentedon Apr 2, 2021
@yongtang My goal is to be able to read parquet into tf datasets without any issues.
We had started this discussion here: #1254.
You had added PR #1262 for the fix to that issue.
If I'm using this:
then the question is, will I be able to? TF 2.4.0 or 2.4.1, TFRS v0.4.0. What version of TF IO should I use? so that I have the fix for #1254 but also don't get the error described in this ticket:
I'm just looking for a clean deployment. Whether any more fixes or patches are necessary, I cannot tell you.
It seems like if I do
then parquet is loaded with no issues. Maybe your fix for #1254 is already in TF IO latest? With this, I don't seem to get the undefined symbol, either...
yongtang commentedon Apr 7, 2021
To release a version that includes #1262 and works with tensorflow 2.4.x, I think the easiest paths could be:
cc @kvignesh1420 @terrytangyuan any insight on next release?
kvignesh1420 commentedon Apr 7, 2021
@yongtang I think it's better to go with the first option: "Release 0.17.1 with cherry-pick of #1262 and pin to tensorflow 2.4.x" due to the following reasons:
yongtang commentedon Apr 16, 2021
V0.17.1 has been released:
https://github.com/tensorflow/io/releases/tag/v0.17.1
https://pypi.org/project/tensorflow-io/0.17.1/
binaries:
yongtang commentedon Apr 18, 2021
@dgoldenberg-audiomack With the release of 0.17.1 the issue should have been fixed. I will close this issue for now, but please feel free to re-open if the issue persists.
dgoldenberg-audiomack commentedon Apr 18, 2021
@yongtang Hi. Great, thanks very much for the fix and for the update.