[Twisted-Python] ftpclient errors

I have been experimenting with using ftpclient.py to access some FTP servers on the net, but have been getting errors with the list() and nlst() calls. I am using Twisted 1.2.0 + Python 2.3.3 + SuSE 8.2 Can anyone shed some light on this problem? Example ======= /usr/local/src/Twisted-1.2.0/doc/examples: python ftpclient.py -h ftp.python.org Success! Got response: --- 257 "/" is current directory. --- Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 L not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 I not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 S not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 T not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ["500 Invalid command ' ': Try being more creative."] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 . not understood.'] Success! Got response: --- 250 CWD command successful. --- Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 N not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 L not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 S not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 T not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ["500 Invalid command ' ': Try being more creative."] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 . not understood.']

On Sun, Mar 14, 2004 at 11:39:56AM +0000, Richard Townsend wrote:
I have been experimenting with using ftpclient.py to access some FTP servers on the net, but have been getting errors with the list() and nlst() calls.
I am using Twisted 1.2.0 + Python 2.3.3 + SuSE 8.2
Can anyone shed some light on this problem?
This is a known bug, and is fixed in CVS. Sorry :( -Andrew.

On Mar 14, 2004, at 12:39 PM, Richard Townsend wrote:
I have been experimenting with using ftpclient.py to access some FTP servers on the net, but have been getting errors with the list() and nlst() calls.
I am using Twisted 1.2.0 + Python 2.3.3 + SuSE 8.2
Can anyone shed some light on this problem?
Example =======
/usr/local/src/Twisted-1.2.0/doc/examples: python ftpclient.py -h ftp.python.org Success! Got response: --- 257 "/" is current directory. --- Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 L not understood.'] Unhandled error in Deferred: Failure: twisted.protocols.ftp.CommandFailed: ['500 I not understood.']
It looks like someone is calling a function with a string, but the function is expecting a sequence of strings. Three cheers for string iteration! This is definitely a bug in Twisted somewhere, so you should go to http://twistedmatrix.com/bugs/ and report the issue. Though, you may want to do a search first; the problem may already be solved in CVS. -bob
participants (3)
-
Andrew Bennetts
-
Bob Ippolito
-
Richard Townsend