[Twisted-Python] ftpclient errors

Richard Townsend richard at reticulatus.plus.com
Sun Mar 14 06:39:56 EST 2004


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.']





More information about the Twisted-Python mailing list