[Tutor] sftp get single file

Sander Sweers sander.sweers at gmail.com
Mon Jul 20 23:02:52 CEST 2009


2009/7/20 Matt Herzog <msh at blisses.org>:
> Traceback (most recent call last):
>  File "./scpgetter.py", line 20, in ?
>      sftp.get(remotepath, localpath)
>        File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 584, in get
>          File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 240, in open
>            File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 609, in _request
>              File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 656, in _read_response
>                File "build/bdist.linux-x86_64/egg/paramiko/sftp_client.py", line 682, in _convert_status
>                IOError: (2, '')

Ah, now it get interesting. Genrally IOError means the file is not
found. And looking at the source for _convert_status it is axactly
that. The file you are trying to "get" is not found on the server so
check your remotepath.

Greets
Sander


More information about the Tutor mailing list