[Twisted-Python] ftpclient errors

Bob Ippolito bob at redivi.com
Sun Mar 14 05:00:27 MST 2004


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





More information about the Twisted-Python mailing list