etils example fails to load on public colab due to missing mediapy dependency
gcr opened this issue · 2 comments
gcr commented
running the example colab out of the box on the public instance of Google Colab (colab.research.google.com
) immediately fails with:
[/usr/local/lib/python3.10/dist-packages/etils/ecolab/array_as_img.py](https://localhost:8080/#) in <module>
37 import IPython
38 import IPython.display
---> 39 import mediapy as media
40 # pylint: enable=g-import-not-at-top
41
ModuleNotFoundError: No module named 'mediapy'
Each etils sub-modules require deps to be installed separately (e.g. `from etils import ecolab` -> `pip install etils[ecolab]`)
gcr commented
on public colab, the correct incantation is:
!pip -q install mediapy
from etils.lazy_imports import *
Conchylicultor commented
Thank you for reporting, sending a fix