Hi All
I've been playing around with PyQt lately and I wanted to use it and the module ftplib for something cool. I've been having issues with the ftplib module, I do not know why it's not working and google isn't helping
The simplest code for instancethrows the following errorCode:from ftplib import FTP f = FTP("ftp://ftp.leg.uct.ac.za/pub/") print(f.getwelcome())
What does this mean? Please helpCode:File "test.py", line 2, in <module> f = FTP("ftp://ftp.leg.uct.ac.za/pub/") File "/usr/lib/python3.2/ftplib.py", line 113, in __init__ self.connect(host) File "/usr/lib/python3.2/ftplib.py", line 142, in connect self.sock = socket.create_connection((self.host, self.port), self.timeout) File "/usr/lib/python3.2/socket.py", line 386, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): socket.gaierror: [Errno -2] Name or service not known
Regards
3v3rgr33n



Adv Reply

Bookmarks