auto_backup
auto_backup copied to clipboard
installing pysftp breaks openssl and odoo with it (Linux Ubuntu 16.04.3 LTS)
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
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.
we had the same problem with pyOpenSSL, thx for the solution @eng-eslam-a-y
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 .
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.
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