Skip to Content
Menu
This question has been flagged
2 Replies
2719 Views

Iam trying to install an odoo addons module and it requires netifaces python module so i installed it with cmd/python and i have the same problem 

the problem "File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 515, in response_wrap

    response = f(*args, **kw)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1326, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1314, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 387, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 374, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-59>", line 2, in button_immediate_install
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 72, in check_and_log
    return method(self, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 463, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 573, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 423, in load_modules
    loaded_modules, update_module, models_to_check)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 315, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 182, in load_module_graph
    load_openerp_module(package.name)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\module.py", line 376, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hw_escpos_network_printer\__init__.py", line 3, in <module>
    from . import controllers
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hw_escpos_network_printer\controllers\__init__.py", line 3, in <module>
    from . import main
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hw_escpos_network_printer\controllers\main.py", line 7, in <module>
    from . import hw_escpos as hwEscpos
  File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hw_escpos_network_printer\controllers\hw_escpos.py", line 14, in <module>
    import netifaces as ni 

ModuleNotFoundError: No module named 'netifaces'"

Avatar
Discard
Author Best Answer

I did that but it's installed in python but I get the same error in odoo installation

Avatar
Discard
Best Answer

Dear edu-smartech-dz,

Please try this command to install the library.

sudo apt install python3-netifaces

or

Download the source, unpack it run and python setup.py install
[https://pypi.org/project/netifaces/]
Avatar
Discard
Related Posts Replies Views Activity
4
May 24
10071
1
Apr 24
1562
0
Nov 23
525
1
Sep 23
566
2
Aug 23
2424