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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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...
@ Yenthe,
Thanks for your help, But i can't get it done.
I'm using a VM with Windows XP, and can't install pysftp or the auto-backup module
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
@ Yenthe,
Thank u so much. This is working
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Sep 23
|
190 | ||
|
1
Sep 23
|
123 | ||
|
2
Aug 24
|
2002 | ||
problem backup
Solved
|
|
3
Jun 24
|
5920 | |
|
2
May 24
|
675 |