Error on FTP Upload .. No such file or directory

2007-05-17 Thread Tarun Kapoor
--- Code -- remotepath = "/incoming" f = FTP(host) f.login(username,password) f.cwd(remotepath) localfile ="C:\\test.txt" fd = open(localfile,'rb') path,filename = os.path.split(localfile) f.storbinary('STOR %s' % filename,fd) fd.close() f.quit

Error on FTP Upload .. No such file or directory

2007-05-17 Thread Tarun Kapoor
By the way... test.txt does exist Disclaimer This e-mail and any attachments is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Waterstone Capita

Paramiko/SSH blues....

2008-01-16 Thread Tarun Kapoor
I am using paramiko to do an SFTP file transfer... I was able to connect to the remote server using an SFTP client I have just to make sure that username and password are working.. But when i try to connect using this script it fails **hostname, username and password are declared. #

paramiko

2008-01-16 Thread Tarun Kapoor
I am using paramiko to do an SFTP file transfer... I was able to connect to the remote server using an SFTP client I have just to make sure that username and password are working.. This is the code. # now, connect and use paramiko Transport to negotiate SSH2 across the connection soc

Re: paramiko

2008-01-16 Thread Tarun Kapoor
= threading.Event() t.auth_password(username=username, password=password, event=event) event.wait() if not t.is_authenticated(): print "not authenticated" output: not authenticated On Jan 16, 11:11 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 20

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > # now, connect and use paramiko Transport to negotiate SSH2 across > > the connection > > sock = socket.socket(sock

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > 2008/1/16, Tarun Kapoor <[EMAIL PRO

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 1:56 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > 2008/1/16, Tarun Kapoor <[EMAIL

RE: paramiko

2008-03-20 Thread Tarun Kapoor
anks !! Tk -Original Message- From: Guilherme Polo [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 11:12 AM To: Tarun Kapoor; python-list@python.org Subject: Re: paramiko 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > I am using paramiko to do an SFTP file trans

Paramiko bugs out on windows 2003 server

2008-03-24 Thread Tarun Kapoor
from paramiko.common import * File "C:\Python23\lib\paramiko\common.py", line 98, in ? from osrandom import OSRandomPool File "C:\Python23\lib\paramiko\osrandom.py", line 54, in ? raise ImportError("Cannot find OS entropy source") ImportError: Cannot find OS ent