How to resolve this error (Tryton 5.0.0 - GnuHealth)

Good morning everyone, I have a problem with a Gnuhealth module, I use Tryton 5.0.0 and the latest version of Gnuhealth, I have the instance hosted on Amazon web services(Debian10). My problem is with the health_pediatrics_growth_charts_who module.
What could be the problem?

    1975 139736506951488 [2020-09-12 15:30:01,532] INFO trytond.modules health_pediatrics_grow
th_charts_who:registering classes
Traceback (most recent call last):
  File "./bin/trytond-admin", line 21, in <module>
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/", line 54, in run
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/", line 149, in init
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/", line 102, in start
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/modules/", line 331, in reg
    the_module = import_module(module)
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/modules/", line 53, in impo
    module = importlib.import_module(fullname)
  File "/usr/lib/python3.7/importlib/", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/modules/health_pediatrics_growth_chart
s_who/", line 24, in <module>
    from .wizard import *
  File "/home/admin/gnuhealth/trytond-5.0.0/trytond/modules/health_pediatrics_growth_chart
s_who/wizard/", line 22, in <module>
    from .wizard_health_pediatrics_growth_charts_who import *
ModuleNotFoundError: No module named 'trytond.modules.health_pediatrics_growth_charts_who.

Hello, Jhon
In the folder of /home/admin/gnuhealth/trytond-5.0.0/trytond/modules/ verify if it finds the folder of the module health_pediatrics_growth_charts_who, in case to exist update the modules.

1 Like

There is bug on the gnuhealht code that tries to import a module which does not exist.
You should report the issue to it’s bug tracker.

Thanks for the help, I was testing and the module “health_pediatrics” managed to load when I delete “health_pediatrics_growth_charts” and “health_pediatrics_growth_charts_who”. I sent an email to explaining my problem.