Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hello, I'm trying to install the auto_backup module (https://apps.openerp.com/apps/modules/8.0/auto_backup/).
When I update modules to get it in odoo, this message is shown:
ImportError: This module needs pysftp to automaticly write backups to the FTP through SFTP.
Please install pysftp on your system. (sudo pip install pysftp)
I installed pysftp on my os (win7) and it's working (I can use and import the library in python codes), but I still get that error message in odoo. Do I need to install something else?
Any help is appreciated.
You need to manually install pysftp module.
First download the module:
tar xvzf pysftp-0.2.9.tar.gz
Then install libffi:
sudo apt-get install libffi-dev
move into the exctracted pysftp-0.2.9 directory and run:
sudo python setup.py install
and finally restart odoo:
sudo service odoo-server restart
That should fix the issue
auto_backup module is not working with the new debiant Odoo8 Version on Ubuntu 14.04
If pysftp is installed and you want to install the auto_backup modules, it says that pysftp is not installed.
But pysftp 0.2.8 is correctly installed and tested. auto_backup module need a refresh I think.
This issue can have two reasons. The first being that Odoo/Python cannot access pysftp, the second being an underlaying package that is used by pysftp that is causing issues. First test issue 1, since it is easier:
It looks like sometimes the pysftp library is restricted too much on Linux, in which case Odoo cannot access it. The easiest solution to change this is to give the main pysftp repository (the package) more rights:
sudo chmod -R 755 /usr/local/lib/python2.7/dist-packages/pysftp
In some cases it looks like you even need a 777 in regards to rights. After doing this and restarting the Odoo service you should be able to use the pysftp library with Odoo though.
If this does not work the underlaying problem may be coming from Paramiko (or a package that Paramiko requires) which pysftp needs. You can test this by creating a simple Python file that imports pysftp and by just running it. If you get an output along the lines of:
administrator@admin:~$ python pysftp_tester.py Traceback (most recent call last): File "pysftp_tester.py", line 1, in <module> import pysftp File "build/bdist.linux-x86_64/egg/pysftp/__init__.py", line 12, in <module> File "/usr/local/lib/python2.7/dist-packages/paramiko/__init__.py", line 30, in <module> from paramiko.transport import SecurityOptions, Transport File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 32, in <module> from cryptography.hazmat.backends import default_backendThis means that there is an underlaying package that is missing. Now re-run the installer for cryptography:
pip install cryptography --force-reinstallAfter running this command test again if your simple Python file works that imports pysftp, it should now be fixed! If the import of pysftp succeeds you need to restart the odoo service and install the auto_backup module.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/31/15, 3:10 AM|
|Seen: 3205 times|
|Last updated: 2/22/17, 12:33 AM|