# I18n generate does not work in the Maple version

**URL:** <https://discuss.openedx.org/t/i18n-generate-does-not-work-in-the-maple-version/12232>\
**Category:** i18n\
**Tags:** tutor, maple\
**Created:** [February 2, 2024, 3:54pm UTC](https://discuss.openedx.org/t/i18n-generate-does-not-work-in-the-maple-version/12232 "2024-02-02T15:54:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zevitagem](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/zevitagem/32/6409_2.png) [@zevitagem](https://discuss.openedx.org/u/zevitagem)\
**Post date:** [February 2, 2024, 3:54pm UTC](https://discuss.openedx.org/t/i18n-generate-does-not-work-in-the-maple-version/12232/1 "2024-02-02T15:54:34Z")

</div>

I’m using the version: [tutor/CHANGELOG.md at master · overhangio/tutor · GitHub](https://github.com/overhangio/tutor/blob/master/CHANGELOG.md#v1331-2022-06-06)

The tutor in this version uses the Openedx version: (`open-release/maple.3`)

If we open the Openedx code, in the final repository, in the `MAPLE` version, we see that it uses a third library called: `edx-i18n-tools==0.8.1` as a dependency:

> <https://github.com/openedx/edx-platform/blob/open-release/maple.master/requirements/edx/development.txt#L544>

And parallel to that, it uses the Django version: `django==3.2.13`.

* * *

In this version of the tutor, I need to run the following command via DockerFile:  
`RUN i18n_tool generate -v`

When running, the following error is displayed:

```auto
INFO:i18n.generate:Merging djangojs.po locale en
INFO:i18n.execute:Executing in . ...
INFO:i18n.execute:django-admin.py compilemessages -v1
/openedx/venv/bin/django-admin.py:17: RemovedInDjango40Warning: django-admin.py is deprecated in favor of django-admin.

```

As we saw earlier, we are using Django 3.2.13 and,  
Django in version 3.1 reported several changes as per the link:

> **[Django](https://docs.djangoproject.com/en/4.1/releases/3.1/#deprecated-features-3-1)**
>
> The web framework for perfectionists with deadlines.

Including: `The django-admin.py entry point is deprecated in favor of django-admin.`

And for me, the error is obvious, because really, in this version of Django we have to use a more updated version of `18n-tools:

> **[Release 1.0.0 · openedx/i18n-tools](https://github.com/openedx/i18n-tools/releases/tag/1.0.0)**
>
> What's Changed
> 
> Use django-admin instead of django-admin.py by @toxinu in #122
> Update standard workflow files. by @feanil in #128
> Always remove POT-Creation-Date metadata by @shadinaif in #129
> 
> New...

In this version 1.0.0 of i18n-tools, we have the following topic:

- Use django-admin instead of django-admin.py

* * *

Okay, we already understand the problem and now here are some comparisons.

In the i18n-tools dependency file, we have the following content:

> <https://github.com/openedx/i18n-tools/blob/1.0.0/requirements/base.txt>

And in the OpenEdx dependencies file, we have the following content:  
…

We clearly see the difference in:

```auto
- [openedx] django==3.2.13
- [i18n-tools] django==3.2.17

- [openedx] path==16.2.0
- [i18n-tools] path==16.6.0

```

And so on …

If I manually install via Dockerfile the latest i18n-tools before running the command, I get the following error:  
`RUN pip install edx-i18n-tools==1.0.0`

```auto
     self._wrapped = Settings(settings_module)
   File "/openedx/venv/lib/python3.8/site-packages/django/conf/ __init__.py", line 170, in __init__
     mod = importlib.import_module(self.SETTINGS_MODULE)
   File "/opt/pyenv/versions/3.8.12/lib/python3.8/importlib/ __init__.py", line 127, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
   File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'lms.envs.tutor.production'

```

Then I bring the questions that don’t want to be silenced;

- How is this tutor version using this version of i18n?
- Did no one notice this error when compiling the locales?
- What approach has the community taken to overcome this problem?
- Can I simply match the number of packages contained within i18n to be the same as the tutor and it will work?
