openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
19 stars 16 forks source link

ModuleNotFoundError: No module named 'iso639.exceptions' #143

Closed rgaudin closed 7 months ago

rgaudin commented 7 months ago

on main branch

In [1]: from zimscraperlib.i18n import get_language_details
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 from zimscraperlib.i18n import get_language_details

File ~/src/scraperlib/src/zimscraperlib/i18n.py:14
     12 import babel
     13 import iso639
---> 14 import iso639.exceptions
     16 ISO_LEVELS = ["1", "2b", "2t", "3", "5"]
     19 class NotFound(ValueError):  # noqa: N818

ModuleNotFoundError: No module named 'iso639.exceptions'

In [2]: from zimscraperlib.i18n import get_language_details
rgaudin commented 7 months ago

Oh wait, I see ipython is not in the dependencies (isn't it part of bootstrap?). Might be looking at wrong env

rgaudin commented 7 months ago

Yep, that was it. Sorry