datasets icon indicating copy to clipboard operation
datasets copied to clipboard

Cannot import `tfds` on Apple Silicon since the `array-record` dependency was added

Open rpeloff opened this issue 2 years ago • 2 comments
trafficstars

Short description Cannot import tfds on Apple Silicon since the array-record dependency was added.

Environment information

  • Operating System: macOS 13.2.1 (Apple M2 Chip)

  • Python version: 3.9.16

  • tensorflow-datasets/tfds-nightly version: tfds-nightly>=4.8.3.dev202303030205

  • tensorflow/tf-nightly version: N/A

  • Does the issue still exists with the last tfds-nightly package (pip install --upgrade tfds-nightly) ? Yes

Reproduction instructions

import tensorflow_datasets as tfds

Link to logs See the logs in this issue: https://github.com/google/array_record/issues/44#issue-1635566727

Expected behavior Import successful.

Additional context This is caused by the introduction of the array-record dependency. The shared library files cannot be loaded on Apple Silicon. See https://github.com/google/array_record/issues/44#issue-1635566727.

rpeloff avatar Mar 22 '23 11:03 rpeloff

Any motivation to solve this issue? It's been month without any activity.

gcuder avatar Jan 05 '24 09:01 gcuder

I was able to install the latest version of TFDS (4.9.4) on my M2 Mac.

gcuder avatar Apr 22 '24 13:04 gcuder