Re: [Tutor] ftp socket.error

2015-09-14 Thread richard kappler
Thanks for all the assistance, turned out it was a problem with the iptables not having an accept for eth1. Onward and upward! regards, Richard On Sat, Sep 12, 2015 at 12:24 PM, Martin A. Brown wrote: > > Hello and good morning > > I may be mistaken, but it looks like you are trying to open the

Re: [Tutor] ftp socket.error

2015-09-12 Thread Martin A. Brown
Hello and good morning 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? Ooof! And, in fact, that is a great point! I overlooked that in the original snippet! Everything I wrote still stands, excep

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

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] 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 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 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 =

[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/