# Module Not Found Error

**URL:** https://discuss.tryton.org/t/module-not-found-error/4743
**Category:** User
**Created:** [November 1, 2021, 8:06pm UTC](https://discuss.tryton.org/t/module-not-found-error/4743 "2021-11-01T20:06:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DaZD](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dazd/32/1502_2.png) [@DaZD](https://discuss.tryton.org/u/DaZD)
#### Post date: [November 1, 2021, 8:06pm UTC](https://discuss.tryton.org/t/module-not-found-error/4743/1 "2021-11-01T20:06:57Z")

</div>

I tried to upgrade our docker image to tryton/tryton:6.2-office but unfortunately now it’s not working anymore. Internal Server Error, the issue seems to be :

```auto
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/web_user/user.py", line 35, in <module>

    from trytond.tools.email_ import set_from_header

ModuleNotFoundError: No module named 'trytond.tools.email_'

```

I don’t have the module “web user” activated. Is it required now ?

Rolling back to tryton/tryton:6.0-office fix the issue.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 1, 2021, 8:58pm UTC](https://discuss.tryton.org/t/module-not-found-error/4743/2 "2021-11-01T20:58:43Z")

</div>

For me you have an older version of `trytond` in the `PYTHONPATH`.

---

<div class="post-metadata">

### Author: ![DaZD](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dazd/32/1502_2.png) [@DaZD](https://discuss.tryton.org/u/DaZD)
#### Post date: [November 2, 2021, 11:14am UTC](https://discuss.tryton.org/t/module-not-found-error/4743/3 "2021-11-02T11:14:37Z")

</div>

Thanks for your reply @ced  
We use the docker image tryton/tryton:6.0-office, we don’t change PYTHONPATH.  
I just changed the docker image to tryton/tryton:6.2-office. Reverting to tryton/tryton:6.0-office solve it.

Here is our dockerfile :

```auto
FROM tryton/tryton:6.0-office
USER root

COPY ./ImportScripts /ImportScripts
RUN apt update && apt -y upgrade && apt -y autoremove
RUN apt install -y procps
RUN apt install -y python3-pandas
RUN pip3 install xlrd==1.2.0
RUN pip3 install openpyxl
RUN apt install -y bash-completion nano
RUN chsh -s /bin/bash trytond
# Copy our modules in the tryton container
COPY ./modules/ /modules
RUN pip3 install /modules/transport \
    && rm -rf /root/.cache

COPY trytond-log.conf /etc/trytond-log.conf
ENV TRYTOND_LOGGING_CONFIG=/etc/trytond-log.conf
USER trytond

```

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [November 2, 2021, 11:27am UTC](https://discuss.tryton.org/t/module-not-found-error/4743/4 "2021-11-02T11:27:43Z")

</div>

You probably got a dependency that depends on the wrong Tryton series.

---

<div class="post-metadata">

### Author: ![DaZD](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dazd/32/1502_2.png) [@DaZD](https://discuss.tryton.org/u/DaZD)
#### Post date: [November 2, 2021, 12:36pm UTC](https://discuss.tryton.org/t/module-not-found-error/4743/5 "2021-11-02T12:36:20Z")

</div>

Thank you very much!  
I needed to update the tryton.cfg of my module and change it to :

```auto
[tryton]
version = 6.2.0
...

```

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [December 2, 2021, 12:36pm UTC](https://discuss.tryton.org/t/module-not-found-error/4743/6 "2021-12-02T12:36:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
