Skip to Content
Menu
This question has been flagged
1 Reply
2782 Views

Hello,

I just bought an Odoo 14 enterprise On-Premise license that I installed on a local Windows server. I put my personal modules in the Odoo 14 addons folder. I restarted the server and I updated the list of applications, my applications appeared in the list but, when I try to install one of my module, I get the following error:


Odoo Server Error
Traceback (most recent call last):
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 347, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 912, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 531, in response_wrap
    response = f(*args, **kw)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\web\controllers\main.py", line 1393, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\web\controllers\main.py", line 1381, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\api.py", line 396, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\api.py", line 383, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "", line 2, in button_immediate_install
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\base\models\ir_module.py", line 73, in check_and_log
    return method(self, *args, **kwargs)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\base\models\ir_module.py", line 474, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\base\models\ir_module.py", line 592, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\modules\registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\modules\loading.py", line 455, in load_modules
    loaded_modules, update_module, models_to_check)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\modules\loading.py", line 348, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\modules\loading.py", line 178, in load_module_graph
    load_openerp_module(package.name)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\modules\module.py", line 358, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\hospital_management_patient\__init__.py", line 3, in 
    from . import models
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\hospital_management_patient\models\__init__.py", line 3, in 
    from . import hms_patient_waiting
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\addons\hospital_management_patient\models\hms_patient_waiting.py", line 6, in 
    import matplotlib.pyplot as plt
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 639, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files\Odoo 14.0e.20210518\server\odoo\http.py", line 315, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ModuleNotFoundError: No module named 'matplotlib'


I installed python and matplotlib from the command line. so far it is the same error.

Thanks for your help


Avatar
Discard
Best Answer

Make sure you have installed the matplotlib in the correct python (3 or 3.6 or 3.8) version.

Avatar
Discard
Author

Hello Sudhir,
I was able to install my modules. My problem was the directory. I installed matplotlib in the directory (C: \ Program Files \ Odoo 14.0e.20210518 \ python \ Scripts) and it worked.
Thank you