tensorflow / datasets

TFDS is a collection of datasets ready to use with TensorFlow, Jax, ...
https://www.tensorflow.org/datasets
Apache License 2.0
4.23k stars 1.52k forks source link

etils.epy.lazy_imports not found #5448

Closed hhoppe closed 4 weeks ago

hhoppe commented 4 weeks ago

When running the import of version 4.9.5, it complains that etils.epy.lazy_imports() is not found. My version of etils is 1.7.0. (etils==1.9.0 would require Python 3.11 and I still have Python 3.10.) Importing version 4.9.4 works fine --- I notice it is also the current default in Colab.

marcenacp commented 4 weeks ago

etils recently dropped support for Python 3.10 (following the calendar for scientific packages). Could you migrate to Python 3.11?

hhoppe commented 4 weeks ago

@marcenacp Is "you" referring to me or to tensorflow-datasets (which still only requires Python 3.10)?

From the calendar for scientific packages:

Support for Python versions be dropped 3 years after their initial release.

However, Python 3.10 was released less than 3 years ago: October 4, 2021.

(Note that https://colab.research.google.com/ still runs Python 3.10.)

marcenacp commented 4 weeks ago

TFDS supports 3.10, 3.11 and very soon 3.12. The GitHub Actions run for all versions in the CI. So it should also work.

What do you have on https://colab.research.google.com when you run:

!pip install --upgrade tensorflow_datasets
import etils
import tensorflow_datasets as tfds
print(etils.__version__)
print(tfds.__version__)

Thanks!

hhoppe commented 4 weeks ago

Darn, I'm unfortunately not able to reproduce the problem anymore with tensorflow_datasets==4.9.5. The error was definitely lazy_imports not found in epy but I can't recreate it. Sorry about the bother.

marcenacp commented 4 weeks ago

No worries, also we'll keep in mind that Colab still runs Python 3.10 before deprecating 3.10. Thanks!