ftpilb.FTP.stor...() freeze mystery

A

Anthra Norell

Hi,
I am trying to upload a bunch of web pages to a hosting service. I
have a connected ftplib.FTP object and can upload files manually from an
IDLE command line using the methods storlines () for html files and
storbinary () for the pictures. So far no problem. In order to upload
the whole set of files I wrote a loop that iterates through the file
names and calls either of the stor... () methods as appropriate. The
loop successfully uploads eight of some twenty files and then freezes.
Ctrl-C doesn't unlock the freeze. I have to kill the IDLE window which
raises a confirmation request "are you sure? The program is still
running." Having no alternative I am sure. I open a new IDLE window and
start over. Every retry fails the exact same way.
My upload method with the loop has a preview mode. It goes through
all the motions including opening and closing my source files but skips
the stor... () methods and in addition displays all commands. The
preview mode completes the iteration sequence and shows nothing unexpected.
What could be the problem? I am totally
fazed and will be most grateful for expert suggestions.

Frederic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,961
Messages
2,570,131
Members
46,689
Latest member
liammiller

Latest Threads

Top