[paramiko] Exception from paramiko. EOFError
Robey Pointer
robey at lag.net
Mon Oct 2 11:04:28 PDT 2006
On 16 Sep 2006, at 17:44, jd_jedi at sourceforge.net wrote:
> Hi
> I am using paramiko and is a great lib for my application.
>
> I am getting following exception from paramiko....
> Here is the situation. I have paramiko sftp client object that I
> use periodically to get listing on the remote machine. When I open
> a file dialog that uses gnome-vfs and give ssh url, the following
> exception is thrown. The FileChooserDilaog works properly, but the
> sftp client handle consistently gives the errror. (Can not recover
> from this)
> Is there some synchronization problem ? Any hint from the exception.
> It happens quite frequently but not always. I would say evey
> other time.
>
> Thanks in advance
> Thanks
> /Jd
>
> File "/usr/lib/python2.4/site-packages/paramiko/sftp_client.py",
> line 128, in listdir
> return [f.filename for f in self.listdir_attr(path)]
> File "/usr/lib/python2.4/site-packages/paramiko/sftp_client.py",
> line 146, in listdir_attr
> t, msg = self._request(CMD_OPENDIR, path)
> File "/usr/lib/python2.4/site-packages/paramiko/sftp_client.py",
> line 569, in _request
> num = self._async_request(type(None), t, *arg)
> File "/usr/lib/python2.4/site-packages/paramiko/sftp_client.py",
> line 591, in _async_request
> self._send_packet(t, str(msg))
> File "/usr/lib/python2.4/site-packages/paramiko/sftp.py", line
> 162, in _send_packet
> self._write_all(out)
> File "/usr/lib/python2.4/site-packages/paramiko/sftp.py", line
> 141, in _write_all
> raise EOFError()
It looks like at the time that you're sending listdir(), the server
has closed the connection.
robey
More information about the paramiko
mailing list