ConfigParse: configparser.NoSectionError: No section: 'tryton'

So I was trying to run trytond.conf and suddenly this error get in the way

(dudu) mahi@DESK:~/gnuhealth-4.4.0$ trytond -c trytond.conf
Traceback (most recent call last):
  File "/usr/lib/python3.10/configparser.py", line 848, in items
    d.update(self._sections[section])
KeyError: 'tryton'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mahi/.virtualenvs/dudu/bin/trytond", line 34, in <module>
    Pool.start()
  File "/home/mahi/.virtualenvs/dudu/lib/python3.10/site-packages/trytond/pool.py", line 105, in start
    register_classes()
  File "/home/mahi/.virtualenvs/dudu/lib/python3.10/site-packages/trytond/modules/__init__.py", line 338, in register_classes
    for node in create_graph(get_module_list()):
  File "/home/mahi/.virtualenvs/dudu/lib/python3.10/site-packages/trytond/modules/__init__.py", line 147, in create_graph
    info = get_module_info(module)
  File "/home/mahi/.virtualenvs/dudu/lib/python3.10/site-packages/trytond/modules/__init__.py", line 88, in get_module_info
    info = dict(module_config.items('tryton'))
  File "/usr/lib/python3.10/configparser.py", line 851, in items
    raise NoSectionError(section)
configparser.NoSectionError: No section: 'tryton'

Can somebody enlight me?

You have an installed module that does not have a [tryton] section in its tryton.cfg.

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