تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
7 الردود
50348 أدوات العرض

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
ديسمبر 24
1235
ODOO.sh تم الحل
2
أكتوبر 24
13144
1
سبتمبر 24
1769
1
مايو 24
3571
1
مايو 25
4478