Sean DiZazzo <> writes:
> On Oct 16, 4:51Â*pm, Sean DiZazzo <half.ital...@gmail.com> wrote:
>> Hi all,
>>
>> I'm trying to connect to an ftp site from a windows machine with two
>> nics going to two different networks, but I keep getting the below
>> exception:
>>
>> Traceback (most recent call last):
>> Â* File "ftp.pyo", line 70, in connect
>> Â* File "ftp.pyo", line 17, in __init__
>> Â* File "ftplib.pyo", line 131, in connect
>> Â* File "socket.pyo", line 498, in create_connection
>> gaierror: [Errno 10093] getaddrinfo failed
>>
>> I think it is because of the two nics, because the code runs fine on
>> other machines. Â*Any ideas on how to fix this?
>>
>> TIA.
>>
>> ~Sean
>
> What does socket.getaddrinfo() rely on??
First, check if you can ping the FTP server from your client machine.
getaddrinfo relies on either DNS, /etc/hosts, or NIS, depending on how your
system is configured (check the hosts entry in /etc/nsswitch.conf).
|