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

Datasets cannot be downloaded in the colab #29

Open
vmoens opened this issue Dec 11, 2023 · 1 comment
Open

Datasets cannot be downloaded in the colab #29

vmoens opened this issue Dec 11, 2023 · 1 comment

Comments

@vmoens
Copy link

vmoens commented Dec 11, 2023

Running the first and second cells of the "download datasets" section of the google colab linked in the readme results in

Downloading 1 datasets to ~/tensorflow_datasets.
  0%|          | 0/1 [00:00<?, ?it/s]
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/tensorflow_datasets/core/dataset_info.py](https://localhost:8080/#) in read_from_json(path)
   1033   try:
-> 1034     json_str = epath.Path(path).read_text()
   1035   except OSError as e:

27 frames
FileNotFoundError: [Errno 2] No such file or directory: 'kuka/0.1.0/dataset_info.json'

The above exception was the direct cause of the following exception:

FileNotFoundError                         Traceback (most recent call last)
FileNotFoundError: Could not load dataset info from kuka/0.1.0/dataset_info.json

The above exception was the direct cause of the following exception:

FileNotFoundError                         Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/tensorflow_datasets/core/utils/py_utils.py](https://localhost:8080/#) in reraise(e, prefix, suffix)
    381     else:
    382       exception = RuntimeError(f'{type(e).__name__}: {msg}')
--> 383     raise exception from e
    384   # Otherwise, modify the exception in-place
    385   elif len(e.args) <= 1:

FileNotFoundError: Failed to construct dataset "kuka", builder_kwargs "{'data_dir': '~/tensorflow_datasets'}": Could not load dataset info from kuka/0.1.0/dataset_info.json

(I selected only the kuka dataset but the exception is identical with the others).

@kpertsch
Copy link

I have also observed this with the most recent version of tensorflow_datasets (4.9.4) -- this unfortunately seems to be a bug introduced with the recent update. I have raised an issue about it (tensorflow/datasets#5203)
In the meantime, please downgrade to the previous version of tensorflow_datasets (4.9.3) which should work!

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

2 participants