On Mon, 2003-07-28 at 03:00, Michael Stenner wrote: > python2 urlgrabber.py ftp://user:pass@xxxxxxxxxxxxxx/path/to/file testfile Works for me too. But FYI; I can't retrieve anything from a FTP server's root dir. A urllib2 bug? Probably not a huge issue for yum, since nothing will usually be retrieved from a root dir, I guess? Grabbing from non-root dirs works fine. And HTTP doesn't seem to be affected. $ python urlgrabber.py ftp://ftp.duke.edu/welcome.msg foo throttle: 1.0, throttle bandwidth: 32768 B/s Traceback (most recent call last): File "urlgrabber.py", line 532, in ? _main_test() File "urlgrabber.py", line 423, in _main_test try: name = apply(urlgrab, (url, filename), kwargs) File "urlgrabber.py", line 306, in urlgrab fo = urllib2.urlopen(url) File "/usr/lib/python2.2/urllib2.py", line 138, in urlopen return _opener.open(url, data) File "/usr/lib/python2.2/urllib2.py", line 322, in open '_open', req) File "/usr/lib/python2.2/urllib2.py", line 301, in _call_chain result = func(*args) File "/usr/lib/python2.2/urllib2.py", line 931, in ftp_open if not dirs[0]: IndexError: list index out of range $ Oh, and this is Python 2.2.2 on RHL 9. -- \/