tensorflow / tensorflow/datasets

RecursionError using tfds.load to import tensorflow-dataset (Mac)

Open
#5,417 2 comments 0 reactions 1 assignee View on GitHub

@pierrot0 is already working on this.

Since May 17, 2024.

bug
Dominant language
Python
Stars
4.6k
Forks
1.6k
Avg merge
3h 54m
Merged PRs (30d)
1

Description

Short description
tfds.load function does not work properly.

Environment information

  • Operating System: Mac OS Sonoma 14.5 (tested also on Windows 11)

  • Python version: 3.12.3

  • tensorflow-datasets version: 4.9.4

  • tensorflow version: 2.16.1

  • Does the issue still exists with the last tfds-nightly package (pip install --upgrade tfds-nightly) ?
    I don't know. This is the first version installed on my pc.

Reproduction instructions

import tensorflow as tf
import sklearn
import tensorflow_datasets as tfds

print(tf.__version__)
print(sklearn.__version__)

# Load the Iris dataset
(data), info = tfds.load('iris', with_info=True, split='train')

Link to logs
the log is in the attached file
log.docx

Expected behavior
What you expected to happen.

Additional context
The code is the same available in google documentation and inside the Google Cloud Machine Learning didactic materials from EICTA.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.