콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
7 답글
50301 화면

Hello,

After creating a new staging branch, I am not able to update the modules or even start the branch, getting  the below error:

Original exception was:

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo-bin", line 5, in

import odoo

File "/home/odoo/src/odoo/odoo/__init__.py", line 132, in

from . import cli

File "/home/odoo/src/odoo/odoo/cli/__init__.py", line 10, in

from . import deploy

File "/home/odoo/src/odoo/odoo/cli/deploy.py", line 6, in

import requests

File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in

from urllib3.contrib import pyopenssl

File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in

import OpenSSL.SSL

File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in

from OpenSSL import crypto, SSL

File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in

class X509StoreFlags(object):

File "/usr/lib/python3/dist-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'

아바타
취소

"Having error on odoo sh" is not a question. I have edited your post to make the title a question.
In the future, please consider using a Question that can make it clear what you ask without requiring people to open your post, as this will often increase the chances people will respond and make everything clearer for others looking for the same answer.
With many subjects posted, not everyone wants to open a post to find out what the question is.
See also https://www.odoo.com/forum/help-1/meta-why-do-some-questions-get-answers-and-others-do-not-25620

Hi, I'm having the same problem, please can you help if you found a solution ?

베스트 답변

Found the solution finally. The problem is with cryptography and pyopenssl libraries.
change requirements.txt as:

go to terminal and:

`pip uninstall pyopenssl`

`pip install pyopenssl==22.0.0`

`pip uninstall cryptography`

`pip install cryptography==37.0.0`

 Edit your answer Comment ShareMore 

아바타
취소

Thanks a lot...you helped me a lot

You saved me some much hassles, thanks buddy!

Thanks ....

베스트 답변

It is solved for me, pyopenssl needs to be updated on the stage using the shell.

I tried version 22.0.0 and worked;

use pip3 install pyopenssl==22.0.0

then push an empty commit to the branch

pyopenssl==22.0.0 # AFTER

pyopenssl==22.0.0 # AFTER

아바타
취소
베스트 답변

How can I install a separate package for python3.6?

아바타
취소
베스트 답변

vhj nnbn 

아바타
취소
베스트 답변

Ensure that your OpenSSL library is up-to-date. You might be encountering an issue related to an older version of the library. You can update OpenSSL using your package manager or by downloading the latest version from the official OpenSSL website.

아바타
취소
베스트 답변

The error message "AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'" indicates that the pyopenssl library used by your Odoo instance is outdated and missing the required attribute. This issue often occurs when creating a new staging branch in Odoo.

아바타
취소

Here are some ways to fix this error:

1. Update pyopenssl:

Using pip:
Open a terminal window.
Run the following command: pip install pyopenssl --upgrade
This will update the pyopenssl library to the latest version.
Using Odoo shell:
Open Odoo shell.
Run the following command: python3 -m pip install pyopenssl --upgrade
2. Update OpenSSL:

Occasionally, the error might arise due to an outdated OpenSSL version.
Update OpenSSL to the latest version available for your system.
This might involve using your package manager or downloading the latest version directly from the OpenSSL website (https://www.openssl.org/source/).
Link: https://basketballstarsunblocked.io

베스트 답변

In ma case

I just comment the line :

class X509StoreFlags(object):
"""
Flags for X509 verification, used to change the behavior of
:class:`X509Store`.

See `OpenSSL Verification Flags`_ for details.

.. _OpenSSL Verification Flags:
https://www.openssl.org/docs/manmaster/man3/X509_VERIFY_PARAM_set_flags.html
"""
CRL_CHECK = _lib.X509_V_FLAG_CRL_CHECK
CRL_CHECK_ALL = _lib.X509_V_FLAG_CRL_CHECK_ALL
IGNORE_CRITICAL = _lib.X509_V_FLAG_IGNORE_CRITICAL
X509_STRICT = _lib.X509_V_FLAG_X509_STRICT
ALLOW_PROXY_CERTS = _lib.X509_V_FLAG_ALLOW_PROXY_CERTS
POLICY_CHECK = _lib.X509_V_FLAG_POLICY_CHECK
EXPLICIT_POLICY = _lib.X509_V_FLAG_EXPLICIT_POLICY
INHIBIT_MAP = _lib.X509_V_FLAG_INHIBIT_MAP
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
CHECK_SS_SIGNATURE = _lib.X509_V_FLAG_CHECK_SS_SIGNATURE
#CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK


아바타
취소
관련 게시물 답글 화면 활동
0
12월 24
1206
ODOO.sh 해결 완료
2
10월 24
13129
1
9월 24
1744
1
5월 24
3555
1
5월 25
4443