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

Hi,

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>
    admin.run(options)
  File "/usr/local/lib/python3.9/dist-packages/trytond/admin.py", line 57, in run
    pool.init(update=options.update, lang=list(lang),
  File "/usr/local/lib/python3.9/dist-packages/trytond/pool.py", line 153, in init
    self.start()
  File "/usr/local/lib/python3.9/dist-packages/trytond/pool.py", line 106, in start
    register_classes()
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/__init__.py", line 355, in register_classes
    for node in create_graph(get_module_list()):
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/__init__.py", line 147, in create_graph
    info = get_module_info(module)
  File "/usr/local/lib/python3.9/dist-packages/trytond/modules/__init__.py", 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/misc.py", line 29, in file_open
    path = find_path(name, subdir)
  File "/usr/local/lib/python3.9/dist-packages/trytond/tools/misc.py", line 51, in find_path
    location = os.path.dirname(epoint.load().__file__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", 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 setup.py 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.