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 instance
Code:
from ftplib import FTP
f = FTP("ftp://ftp.leg.uct.ac.za/pub/")
print(f.getwelcome())
throws the following error
Code:
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
What does this mean? Please help
Regards
3v3rgr33n
Bookmarks