Odoo Help

Welcome!

This community 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.

0

How to install pysftp to backup data?

By
Naduni Pulsarani
on 6/24/15, 6:38 AM 10,160 views

I downloaded pysftp-0.2.8 from this link (https://pypi.python.org/pypi/pysftp). I double click setup.py but command prompt will come and there is nothing happening. How I install pysftp for my PC?

1
Hari Bhogaita
On 5/27/16, 9:06 AM

Similar problem on my Ubuntu instance. Specifically
'ffi.h: No such file or directory'

I googled around and found this post
https://bugs.launchpad.net/congress/+bug/1503095

It suggested installing some sort of 'essentials package' using the code
sudo apt-get install build-essential libssl-dev libffi-dev python-dev

That worked no problem

I then used the code from the post by Yenthe
sudo pip install pysftp

That worked
Running setup.py install for pysftp
Successfully installed cffi-1.6.0 cryptography-1.3.2 enum34-1.1.6 idna-2.1 ipaddress-1.0.16 paramiko-2.0.0 pyasn1-0.1.9 pysftp-0.2.8


No idea what the 'essentials' package is but it seemed to work...

0
Julian Robbins
On 8/4/15, 11:52 AM

With Ubuntu 14.04, 64 bit install and with pip installed, I get an error during compilation when doing

sudo pip install pysftp

ie

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o

src/MD2.c:31:20: fatal error: Python.h: No such file or directory

#include "Python.h"

^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


As this is a vanilla Ubuntu install, I think there is another step such as installing dev headers but either way, I can go no further at the moment

same problem here

wizardz
on 11/19/15, 3:12 AM
0
Naduni Pulsarani
On 6/25/15, 6:50 AM

@ Yenthe,

Thank u so much. This is working

0

Yenthe

--Yenthe--
6721
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 6/24/15, 10:44 AM

Hi Naduni,

I assume you're the guy that asked me about how to install this on my blog?
If you're on Ubuntu open up a terminal and type the following command:

sudo pip install pysftp 

If you're on Windows you'll need to install the lib from the terminal. Open cmd and navigate in to the folder where pysftp-0.2.8 is located. After this you can execute the file to install:

cd ./pysftp-0.2.8/
setup.py install

In case you get an error about 'no module named setuptools' download this and install it too.

With kind regards,
Yenthe

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pycrypto/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8b7HAk-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pycrypto Storing debug log for failure in /home/giordano/.pip/pip.log Error

wizardz
on 2/16/16, 5:39 AM

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/24/15, 6:38 AM
Seen: 10160 times
Last updated: 6/29/16, 1:07 AM