Skip to Content
Menu
This question has been flagged
4 Replies
6110 Views

2022-09-08 23:11:08,232 5619 CRITICAL ? odoo.modules.module: Couldn't load module web 

2022-09-08 23:11:08,232 5619 CRITICAL ? odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 

2022-09-08 23:11:08,232 5619 ERROR ? odoo.service.server: Failed to load server-wide module `web`.

The `web` module is provided by the addons found in the `openerp-web` project.

Maybe you forgot to add those addons in your addons_path configuration. 

Traceback (most recent call last):

  File "/Users/ruthtsegaye/Desktop/odoo/odoo/service/server.py", line 1210, in load_server_wide_modules

    odoo.modules.module.load_openerp_module(m)

  File "/Users/ruthtsegaye/Desktop/odoo/odoo/modules/module.py", line 396, in load_openerp_module

    __import__('odoo.addons.' + module_name)

  File "/Users/ruthtsegaye/Desktop/odoo/addons/web/__init__.py", line 4, in

    from . import controllers

  File "/Users/ruthtsegaye/Desktop/odoo/addons/web/controllers/__init__.py", line 4, in

    from . import main

  File "/Users/ruthtsegaye/Desktop/odoo/addons/web/controllers/main.py", line 34, in

    from odoo.addons.base.models.ir_qweb import render as qweb_render

  File "/Users/ruthtsegaye/Desktop/odoo/odoo/addons/base/__init__.py", line 5, in

    from . import models

  File "/Users/ruthtsegaye/Desktop/odoo/odoo/addons/base/models/__init__.py", line 23, in

    from . import ir_mail_server

  File "/Users/ruthtsegaye/Desktop/odoo/odoo/addons/base/models/ir_mail_server.py", line 19, in

    from OpenSSL import crypto as SSLCrypto

  File "/usr/local/Caskroom/miniconda/base/envs/newenv/lib/python3.8/site-packages/OpenSSL/__init__.py", line 8, in

    from OpenSSL import crypto, SSL

  File "/usr/local/Caskroom/miniconda/base/envs/newenv/lib/python3.8/site-packages/OpenSSL/crypto.py", line 1553, in

    class X509StoreFlags(object):

  File "/usr/local/Caskroom/miniconda/base/envs/newenv/lib/python3.8/site-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags

    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

2022-09-08 23:11:08,255 5619 CRITICAL ? odoo.modules.module: Couldn't load module base 

2022-09-08 23:11:08,256 5619 CRITICAL ? odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 

2022-09-08 23:11:08,256 5619 ERROR ? odoo.service.server: Failed to load server-wide module `base`. 


Avatar
Discard
Best Answer

Please try to add a addons path or config file path as well 

like  :
    python3 odoo-bin  --addons=addons -d mydb

or 
    python3 odoo-bin  -c config_file -d mydb

Avatar
Discard
Best Answer

Try updating the pyOpenSSl package in your env by:

pip install pyOpenSSL --upgrade


Avatar
Discard

this solved my problem. thanks

Author Best Answer

By switching to Odoo version 14, I was able to repair the bug.


Avatar
Discard

yes v14 works ok, install from source right?

Best Answer

i'm having the same issue as you, please tell me the solution if you found one. thanks


Avatar
Discard
Related Posts Replies Views Activity
2
Mar 25
825
0
May 25
82
0
Mar 25
345
2
Mar 25
729
1
Feb 25
396