[ftputil] 421 Login Timeout (25 seconds)

geon geon at post.cz
Tue Jul 12 15:33:27 CEST 2005


Christopher Arndt napsal(a):

>Please look at the traceback carefully. The exception doesn't happen in
>the code you showed at all! there is no x=host.upload(... line below.
>
>  
>
Very sorry, I made in between some changes to solve this problem. That 
is why my error message didnt folllow the code. Anyway it was in that  
x= host.upload_if_newer(myFile, myFileFTP,'b'). I swear that I got that 
error message, sometimes. But now I am not able to made the Login 
Timeout  any more....

But now I face another one, if I can .....  

Now I got this error (plus some commands from prompt):


----> kapka/vz2004_soubory/image048.gif
----> kapka/vz2004_soubory/image049.gif
----> kapka/vz2004_soubory/image050.gif

kapka/zpravodaje
Traceback (most recent call last):
  File "i:\Python\edu\ftp\ftputil_pokus_english.py", line 32, in ?
    host.mkdir(pathRelFTP)
  File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 550, 
in mkdir
    ftp_error._try_with_oserror(self._session.mkd, path)
  File "C:\prg\python24\Lib\site-packages\ftputil\ftp_error.py", line 
80, in _try_with_oserror
    raise PermanentError(obj)
ftputil.ftp_error.PermanentError: 550 kapka/zpravodaje: File exists
 >>> myFileFTP
'kapka/vz2004_soubory/image050.gif'
 >>> host
<ftputil.ftputil.FTPHost instance at 0x009258F0>
 >>> host.listdir('.')
[]
 >>>

The last line is very strange ....

I made a special site now, not to have to change name and password: 
site: amos.wz.cz, user: amos.wz.cz, pswrd: glass.
There you can find also the script.

Hoping now its all ;-)



-- 
geon
Vyjímka je pravidlo. Rekurzivní.



More information about the ftputil mailing list