ModuleNotFoundError: No module named 'trytond.modules.public_notes'


since three days our custom tryton module is not working anymore with the error above. We did not change anything - only build a new Image with the latest tryton/tryton:6.6 image (sha256:fd1ff4d154f1c9ec32f03f2ef81997376ba4952e4071433d5e91cc7a67d4b58f) from dockerhub.

Traceback (most recent call last):
  File "/usr/local/bin/trytond-admin", line 31, in <module>
  File "/usr/local/lib/python3.9/dist-packages/trytond/", line 57, in run
    pool.init(update=options.update, lang=list(lang),
  File "/usr/local/lib/python3.9/dist-packages/trytond/", line 153, in init
  File "/usr/local/lib/python3.9/dist-packages/trytond/", line 106, in start
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/", line 355, in register_classes
    for node in create_graph(get_module_list()):
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/", line 147, in create_graph
    info = get_module_info(module)
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/", line 85, in get_module_info
    with tools.file_open(os.path.join(name, 'tryton.cfg')) as fp:
  File "/usr/local/lib/python3.9/dist-packages/trytond/tools/", line 29, in file_open
    path = find_path(name, subdir)
  File "/usr/local/lib/python3.9/dist-packages/trytond/tools/", line 51, in find_path
    location = os.path.dirname(epoint.load().__file__)
  File "/usr/lib/python3/dist-packages/pkg_resources/", line 2450, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'trytond.modules.public_notes'

What could have changed that our install process is not working anymore?
What can i provide to help finding the issue?

Thanks in advance

P.S. i tried to create an issue in Tryton / Tryton · GitLab and Tryton / Tryton Docker · GitLab, but gitlab keeps saying that my issue is spam. Same text as above.

It’s already reported, you can find more details here:

Thanks for the hint. Our build process included python install calls. I replaced them with pip install . and everything is working again.

See Python 3.9 breaks module import (#10513) · Issues · Tryton / Tryton · GitLab

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