[Tutor] ftp socket.error

2015-09-11 Thread richard kappler
I can connect via ftp, but when I try to send a file, I get a no route to host error, I don't understand. code: >>> import ftplib >>> from ftplib import FTP >>> fBOT = FTP() >>> oldfile = '/home/test/DataFeed/input/images/BOT/1.jpg' >>> newfile = 'new.jpg' >>> oldfile = open('/home/test/DataFeed/

Re: [Tutor] ftp socket.error

2015-09-11 Thread Reuben
Check if the ftp server ip is pinging Sent from my iPhone > On 11-Sep-2015, at 9:30 pm, richard kappler wrote: > > I can connect via ftp, but when I try to send a file, I get a no route to > host error, I don't understand. > > code: > import ftplib from ftplib import FTP fBOT =

Re: [Tutor] ftp socket.error

2015-09-11 Thread richard kappler
Figured it out. On the receiving machine I had to # modprobe ip_conntrack_ftp On Fri, Sep 11, 2015 at 12:00 PM, richard kappler wrote: > I can connect via ftp, but when I try to send a file, I get a no route to > host error, I don't understand. > > code: > > >>> import ftplib > >>> from ftpli

Re: [Tutor] ftp socket.error

2015-09-11 Thread richard kappler
No, apparently I didn't figure it out. I thought I had as after the modprobe I was getting a an EOFError, but now I'm getting the no route to host error again. I can ping it, and as you can see from the original post, I am able to establish a connection and log in, it's just when I try to send a fi

Re: [Tutor] ftp socket.error

2015-09-11 Thread Martin A. Brown
Hi there Richard, Strictly speaking, it's no Python question, but... good ol' FTP. socket.error: [Errno 113] No route to host Your program is receiving an EHOSTUNREACH. >>> import errno >>> errno.errorcode[113] 'EHOSTUNREACH' This occurs at precisely the moment that your program is t

Re: [Tutor] About using list in a function

2015-09-11 Thread Mark Lawrence
On 10/09/2015 23:46, D Wyatt wrote: Scrambled on gmail here too. Please provide some context when you reply, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor m

Re: [Tutor] ftp socket.error

2015-09-11 Thread Robert Nanney
I may be mistaken, but it looks like you are trying to open the socket on port 2021. Standard ftp uses 21. Is the server listening on 2021? On Sep 11, 2015 5:29 PM, "Martin A. Brown" wrote: > > Hi there Richard, > > Strictly speaking, it's no Python question, but... good ol' FTP. > > socket.error