Christopher Mahan <[email protected]> added the comment:
When running scritp with python 2.5.4, got this error. I'll remove the
"timeout=2" and run again. see below.
Traceback (most recent call last):
File "C:\python_scripts\python3\candee_processor.py", line 3, in <module>
ftp = ftplib.FTP('ftp.edgecastcdn.net',
user='[email protected]', passwd='1210184520', timeout=2)
TypeError: __init__() got an unexpected keyword argument 'timeout'
Same without the timeout argument:
>>>
*cmd* 'CWD chrismahan-675'
*put* 'CWD chrismahan-675\r\n'
*get* '250 CWD command successful\r\n'
*resp* '250 CWD command successful'
*cmd* 'TYPE A'
*put* 'TYPE A\r\n'
*get* '200 Type set to A\r\n'
*resp* '200 Type set to A'
*cmd* 'PASV'
*put* 'PASV\r\n'
*get* '227 Entering Passive Mode (72,21,82,190,228,195).\r\n'
*resp* '227 Entering Passive Mode (72,21,82,190,228,195).'
*cmd* 'LIST'
*put* 'LIST\r\n'
*get* '150 Opening ASCII mode data connection for file list\r\n'
*resp* '150 Opening ASCII mode data connection for file list'
*retr* '-rwxrwxrwx 1 nobody nogroup 3905538 Dec 29 09:51 Bronski
Beat - Why.mp3\r\n'
-rwxrwxrwx 1 nobody nogroup 3905538 Dec 29 09:51 Bronski Beat -
Why.mp3
*retr* '-rwxrwxrwx 1 nobody nogroup 873966 Dec 28 13:53
test9.avi\r\n'
-rwxrwxrwx 1 nobody nogroup 873966 Dec 28 13:53 test9.avi
*retr* '-rwxrwxrwx 1 nobody nogroup 2512653 Dec 29 08:28
test9_lg.wmv\r\n'
-rwxrwxrwx 1 nobody nogroup 2512653 Dec 29 08:28 test9_lg.wmv
*retr* '-rwxrwxrwx 1 nobody nogroup 6549 Dec 29 08:28
test9_lg.wmv.jpg\r\n'
-rwxrwxrwx 1 nobody nogroup 6549 Dec 29 08:28 test9_lg.wmv.jpg
*retr* '-rwxrwxrwx 1 nobody nogroup 1788466 Dec 29 03:04
test9_med.flv\r\n'
-rwxrwxrwx 1 nobody nogroup 1788466 Dec 29 03:04 test9_med.flv
*retr* '-rwxrwxrwx 1 nobody nogroup 6394 Dec 29 03:04
test9_med.flv.jpg\r\n'
-rwxrwxrwx 1 nobody nogroup 6394 Dec 29 03:04 test9_med.flv.jpg
*retr* '-rwxrwxrwx 1 nobody nogroup 1263041 Dec 28 13:53
test9_sm.flv\r\n'
-rwxrwxrwx 1 nobody nogroup 1263041 Dec 28 13:53 test9_sm.flv
*retr* '-rwxrwxrwx 1 nobody nogroup 6465 Dec 28 13:53
test9_sm.flv.jpg\r\n'
-rwxrwxrwx 1 nobody nogroup 6465 Dec 28 13:53 test9_sm.flv.jpg
*retr* ''
*get* '226 Transfer complete\r\n'
*resp* '226 Transfer complete'
>>>
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue4791>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com