auto_backup icon indicating copy to clipboard operation
auto_backup copied to clipboard

installing pysftp breaks openssl and odoo with it (Linux Ubuntu 16.04.3 LTS)

Open eng-eslam-a-y opened this issue 7 years ago • 5 comments

i'm writing this issue to help any one has got the same error

platform: Odoo 10 enterprise Linux Ubuntu 16.04.3 LTS Steps to reproduce 1- pip install pysftp 2- restart odoo server 3-odoo server doesn't start and no error in log 4-try to start odoo from command line and got that error

SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

work around 1- need to uninstall pyOpenSSL and then reinstall it unfortunately pip didn't work with me i had to use apt-get --auto-remove --yes remove python-openssl then sudo pip install pyOpenSSL==16.2.0 now restart odoo it worked! you can then install auto_backup module and it works fine

did any one had a similar problem? is there is any way to avoid it from the beginning

eng-eslam-a-y avatar Oct 21 '17 21:10 eng-eslam-a-y

Hi @eng-eslam-a-y,

Thanks for your report. There have been multiple issues with the dependency itself, I'll be moving away from pysftp in V11.

Yenthe666 avatar Oct 24 '17 08:10 Yenthe666

we had the same problem with pyOpenSSL, thx for the solution @eng-eslam-a-y

diezcode avatar Oct 26 '17 06:10 diezcode

You are welcome

Islam youssef

On 26 Oct 2017 8:17 a.m., "Stéphane Diez" [email protected] wrote:

had the same problem with pyOpenSSL, thx for the solution @eng-eslam-a-y https://github.com/eng-eslam-a-y

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Yenthe666/auto_backup/issues/69#issuecomment-339562786, or mute the thread https://github.com/notifications/unsubscribe-auth/AJHToi8ddfR54XiFqSFQaix0yBdhF7b9ks5swCPhgaJpZM4QBuNa .

eng-eslam-a-y avatar Oct 26 '17 06:10 eng-eslam-a-y

I think I have fixed this by removing the python-openssl package (and it's dependencies) with:

apt-get --auto-remove --yes remove python-openssl

Then installing the latest version with pip:

pip install pyOpenSSL

Of course, if you install another apt package that depends on it, it'll pull it back in. I hope if you use pip for everything you can from now on instead of apt, it should be fine.

lefas avatar Dec 25 '17 23:12 lefas

The error is also in Odoo.sh, since it is in Ubuntu 16.04. The way to solve it in Odoo.sh is adding in requirements.txt:

pip==18.1 pyOpenSSL==16.2.0

As first and second line.

Thanks

rockcesar avatar Oct 29 '18 21:10 rockcesar