I'm not sure, if this is my fault or not:
(wxPython 2.6.2.1, Python 2.4)
On the first traceback, I think, I entered the wrong
password:
c:\temp\theftpclient>TheFTPClient.py
Traceback (most recent call last):
File "c:\temp\theftpclient\TheFTPClient.py", line 5, in ?
application = Application(0)
File
"c:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 7668, in __init__
the dialog units are multiplied by the average
character height and
File
"c:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 7320, in _Bootstr
apApp
Set focus to this window as the result of a
keyboard action. Normally
File "c:\temp\theftpclient\Application.py", line 23,
in OnInit
ftp.connect()
File "c:\temp\theftpclient\FTP.py", line 24, in connect
self.ftp.connect(self.hostname)
File "c:\Python24\lib\ftplib.py", line 129, in connect
raise socket.error, msg
socket.error: (10061, 'Connection refused')
Here I think, I entered the right password.
c:\temp\theftpclient>TheFTPClient.py
Traceback (most recent call last):
File "c:\temp\theftpclient\TheFTPClient.py", line 5, in ?
application = Application(0)
File
"c:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 7668, in __init__
the dialog units are multiplied by the average
character height and
File
"c:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 7320, in _Bootstr
apApp
Set focus to this window as the result of a
keyboard action. Normally
File "c:\temp\theftpclient\Application.py", line 23,
in OnInit
ftp.connect()
File "c:\temp\theftpclient\FTP.py", line 24, in connect
self.ftp.connect(self.hostname)
File "c:\Python24\lib\ftplib.py", line 117, in connect
for res in socket.getaddrinfo(self.host, self.port,
0, socket.SOCK_STREAM):
socket.gaierror: (11001, 'getaddrinfo failed')
Logged In: YES
user_id=1549639
Obviously need to handle that more gracefully. Noted to add
exception handling to connection, authentication and any
other possibly volatile ftp procedures.
Logged In: YES
user_id=772872
Hi Jason,
thank you for answering. I'm not aware of making any mistakes
according to username or password.
Hmm, what could that mean:
'getaddrinfo failed'???
Still some parameters not right (from my attempt to login to
a ftp site)?
Logged In: YES
user_id=1549639
'getaddrinfo' is attempting to turn the host, port and socket type into a
socket address structure. In this instance, something has gone awry when it
attempts to do so.
I'm still pretty sure this is not something you are doing. To confirm this, use
the build-in 'ftp' command under Windows to see if you can actually connect
and auth against your host. Silly notion maybe, but it could be something else
entirely.
Keep me updated on this. I will be rolling out a bunch of updates shortly
(next day or two, Alpha 0.2) so this may be a non-issue once posted.
Logged In: NO
(francescoa)
With no internet connection:
c:\temp\theftpclient>TheFTPClient.py
Traceback (most recent call last):
File "c:\temp\theftpclient\TheFTPClient.py", line 5, in ?
application = Application(0)
File
"c:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 7668, in __init__
the dialog units are multiplied by the average character
height and
File
"c:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py",
line 7320, in _Bootstr
apApp
Set focus to this window as the result of a keyboard
action. Normally
File "c:\temp\theftpclient\Application.py", line 23, in OnInit
ftp.connect()
File "c:\temp\theftpclient\FTP.py", line 24, in connect
self.ftp.connect(self.hostname)
File "c:\Python24\lib\ftplib.py", line 117, in connect
for res in socket.getaddrinfo(self.host, self.port, 0,
socket.SOCK_STREAM):
socket.gaierror: (11001, 'getaddrinfo failed')
Now it was working, I'm sorry, I think it was my mistake.
I suspect, either the password was wrong or the ftp address.