Tecnativa / doodba-copier-template

A Copier template for Doodba projects
Boost Software License 1.0
80 stars 113 forks source link

ODOO V15 CE: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' #381

Open luismata01 opened 1 year ago

luismata01 commented 1 year ago

When I try to deploy for first time whit this command, for create database and install apps whiout localization

docker-compose run --rm odoo click-odoo-initdb -n devel -m sale_management,account,crm,stock,purchase,point_of_sale,mail,contacts,calendar,mass_editing,web_responsive,web_no_bubble,web_environment_ribbon --no-demo --no-cache

appear this error AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' image

Affected versions: ODOO CE v15 on development ambient

Can you help me please

pleirb commented 3 months ago

This error is familiar to me. Try putting cryptography==2.6.1 in the pip.txt

aleuffre commented 1 month ago

I've encountered this problem as well, when trying to use https://github.com/OCA/server-tools/blob/15.0/auto_backup/__manifest__.py

Because the version of pysftp is very old, and there's some incompatibility with the version of cryptography. I ended up removing the module and pysftp entirely, but the suggestion in the comment above of using cryptography==2.6.1 should also work.