Re: Caching of ftp connections
Yakov Lerner <[email protected]> Sun, 07 Mar 2004 17:05:32 +0200
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Bram Moolenaar wrote:
> Jacob Lerner complained about ftp download not working with Python 1.5.
> ... A zip archive is
> available here: http://www.a-a-p.org/files/aap-latest.zip
Thanks, it works now under python 1.5.2.
Only it bombs out if ~/.netrc does not contain an entry for the server
(the ftp.vim.org), with ugly output. The output is below.
Jacob
P.S.
Output when ~/.netrc does not contain the entry for the server:
# aap -f ftp://ftp.vim.org/pub/vim/runtime/main.aap
"main.aap" exists, overwrite? (y/n) y
Aap: Attempting download of "ftp://ftp.vim.org/pub/vim/runtime/main.aap"
Aap: Internal Error
Traceback (innermost last):
File "/usr/local/lib/aap/Exec-1.058/Main.py", line 101, in do_the_work
work = doread(find_recipe)
File "/usr/local/lib/aap/Exec-1.058/DoRead.py", line 158, in doread
{"name" : dest}, {"interactive" : 1}, 0, errmsg = 1)
File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 519, in remote_copy_move
tmpfile, rtime = url_download(recdict, fname, destpath)
File "/usr/local/lib/aap/Exec-1.058/Remote.py", line 203, in url_download
ftp, msg = ftpConnect(fmach)
File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 220, in ftpConnect
res = n.authenticators(machname)
File "/usr/local/lib/aap/Exec-1.058/aapnetrc.py", line 92, in authenticators
elif 'default' in self.hosts:
TypeError: 'in' or 'not in' needs sequence right argument
Aap: Traceback (innermost last):
File "/usr/local/lib/aap/Exec-1.058/Main.py", line 101, in do_the_work
work = doread(find_recipe)
File "/usr/local/lib/aap/Exec-1.058/DoRead.py", line 158, in doread
{"name" : dest}, {"interactive" : 1}, 0, errmsg = 1)
File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 519, in remote_copy_move
tmpfile, rtime = url_download(recdict, fname, destpath)
File "/usr/local/lib/aap/Exec-1.058/Remote.py", line 203, in url_download
ftp, msg = ftpConnect(fmach)
File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 220, in ftpConnect
res = n.authenticators(machname)
File "/usr/local/lib/aap/Exec-1.058/aapnetrc.py", line 92, in authenticators
elif 'default' in self.hosts:
TypeError: 'in' or 'not in' needs sequence right argument
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click