Module installation won't open. Giving Errors

So I already installed some of modules, some of them getting an error like this when I open some menu

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/dispatcher.py", line 47, in rpc
    return methods.get(request.rpc_method, _dispatch)(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/wrappers.py", line 156, in wrapper
    return func(request, pool, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/dispatcher.py", line 181, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/ir/action.py", line 269, in get_keyword
    for value in Action.get_action_values(type_, action_ids):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/ir/action.py", line 129, in get_action_values
    actions = Action.read(action_ids, columns)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/model/modelsql.py", line 867, in read
    getter_results = field.get(
                     ^^^^^^^^^^
  File "/trytond/model/fields/function.py", line 105, in get
    return dict((name, call(name)) for name in names)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/model/fields/function.py", line 105, in <genexpr>
    return dict((name, call(name)) for name in names)
                       ^^^^^^^^^^
  File "/trytond/model/fields/function.py", line 98, in call
    return method(records, name)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/ir/action.py", line 891, in get_pyson
    getattr(pool.get(window.res_model), '_order', 'null'))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/pool.py", line 187, in get
    return self._pool[self.database_name][type][name]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'gnuhealth.appointment'.

I already checked it on my database, gnuhealth_appointment were exist. I don’t know where did it go wrong?

Is the module defining the gnuhealth.appointment model activated for the database?
Is the database update was performed without any error?

Yes, when i run trytond-admin, it does not giving any errors. But after that I run again my application, and some of the menu in the sidebar gives this error not only from gnuhealth. Should I just reinstall the modules??

Are you running trytond-admin and trytond with the same environment and configuration?
Have you deactivate (or uninstall) some modules?
Have you updated with trytond-admin the module that contains gnuhealth.appointment definition?

Yes, I made a virtual env for it. I have gnuhealth version 4.4.0 and trytond 6.0.0 version. But, how do i deactivate a module? when the modules menu brings new error such as: KeyError: ‘ir.translations’.

So something is wrong once i moved gnuhealth modules to trytond modules directory. Something is definitely wrong because of that.

You should not move module but install them otherwise you can not be sure that you are not missing a dependency or that you have incompatibilities.

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