Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
6675 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

Try updating the pyOpenSSl package in your env by:

pip install pyOpenSSL --upgrade


Avatar
Ignorer

this solved my problem. thanks

Auteur Meilleure réponse

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


Avatar
Ignorer

yes v14 works ok, install from source right?

Meilleure réponse

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


Avatar
Ignorer
Publications associées Réponses Vues Activité
2
août 25
2552
0
août 25
161
1
août 25
770
0
juil. 25
467
1
juin 25
1323