cogeotiff/rio-cogeo

ModuleNotFoundError: No module named 'rio_tiler'

thaisbendixen opened this issue · 2 comments

Since this morning we are having issues with the rio-cogeo.

When doing:
from rio_cogeo import models

We get the following error:
ModuleNotFoundError: No module named 'rio_tiler'

Steps to recreate:

  • Create a new virtual environment using pyenv and virtualenvwrapper, using python version 3.8.9
  • Install rio-cogeo using pip install rio-cogeo
  • Start python in terminal
  • from rio_cogeo import models

Here is the full traceback:
Traceback (most recent call last):
File "", line 1, in
File "/Users/thais.bendixen/.virtualenvs/venv_test/lib/python3.8/site-packages/rio_cogeo/init.py", line 3, in
from rio_cogeo.cogeo import cog_info, cog_translate, cog_validate # noqa
File "/Users/thais.bendixen/.virtualenvs/venv_test/lib/python3.8/site-packages/rio_cogeo/cogeo.py", line 24, in
from rio_cogeo import models, utils
File "/Users/thais.bendixen/.virtualenvs/venv_test/lib/python3.8/site-packages/rio_cogeo/models.py", line 6, in
from rio_tiler.constants import BBox
ModuleNotFoundError: No module named 'rio_tiler'

How can we solve this issue?

Thank you

😭 I'm so sorry I introduced this yesterday, I'll fix this first thing this morning. For now you can install rio-tiler.

Thanks for reporting this @thaisbendixen 🙏
FYI, rio-tiler is used in tests which is why we didn't caught this error in our CI.

A new version of rio-tiler 2.2.1 should be available in couple seconds!