Re: ftplib strange behaviour

2005-01-18 Thread siggy2
Kartic wrote:
> I have used ftplib but never for such a huge file (assuming your
> problem is related to the size of the file).
we're doing that since python 2.2 from different site to different
hosts where our script was installed...
needless to say all the (few) problems we had came from the servers...

> Have you tried downloading the file using another ftp client? Does
that
> download succeed? The reason I ask is because I have attempted
> downloads from servers that terminate the connection after a certain
> connection time, in the middle of a download!
After two weeks the sysadms of the ftp server
discovered a misconficuration in some router... Anyway
we had already change the script: we  managed to trap any exception and

we added a "retry" loop.

>
> That is the best I can help you out with the information.
Thank you for your help anyway.

bye,
   PiErre

-- 
http://mail.python.org/mailman/listinfo/python-list


[PythonWin] how to stop execution in interactive window?

2005-07-08 Thread siggy2
Hi All,
(sorry for my bad english)
  I wrote a __tiny__ and __stupid__ recursive script directly into
pythonwin
interactive window with a time.sleep(1) and a print before each
recursion...
I should have taken a closer look at the ending condition (never
satisfied!),
anyway I was quite confident that a control-C would have stopped the
intepreter as it is (incidentally?) when this break sequence is entered
during a screen-i/o of the python interpreter in a CMD prompt...
Instead I discovered my pythonwin session no more responding even
though the output shows that it was still working correctly... and my
other
open files in pythonwin still needing to be saved - my salvation was
that
while I was searching a solution with google, after 984 nested call
~ more than a quarter later, the recursion stack was full and
an exception was raised! ;-P).
So my question is: is there a keystroke combination to stop the
interpreter
in pythonwin interactive window? Or even better
Is there a "pythonwin interactive window" keystrokes list?
(btw: I remember an old post explaining the keystroke to
reset interactive window memory without being forced to
close and open pythonwin - very usefull but I could not find it
anymore...)
TIA!
bye,
   PiErre

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to stop execution in interactive window?

2005-07-12 Thread siggy2
> Right-click on the Pythonwin icon in the tray and select "Break into running
> code".
[CUT]

Thanks a lot! Oddly enough I'm looking into PythonWin manual to see why

I did not find it before... and there is no mention of it!

Now if only I could find out how to free pythonwin interactive window
memory
(I'm not talking about interactive window output - cleanable with
ctrl-a + delete,
but about variable valorization, function definition etc )...
IIRC there was already a post in this newsgroup that explained how to
do this...
but yesterday google searches return me that the only way was to force
this by
closing and re-opening pythonwin...
Maybe I was wrong and there's no other way...
Again: thanks a lot for your help!
bye,
   PiErre

-- 
http://mail.python.org/mailman/listinfo/python-list


ftplib strange behaviour

2004-12-31 Thread siggy2
Hi,
I'm using
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
on win32
I've noticed a strange (= not deterministic) behaviour of ftplib.py:
sometimes (not always) it fails (after a variable number of minutes
from 15 to 130) downloading a 150 MB BINARY file
(a big gzipped ascii file) with the traceback reported
below.
IMVHO this is not a timeout error because my script import
timeoutsocket.py (__version__ = "$Revision: 1.1.22.1 $"
__author__  = "Timothy O'Malley <[EMAIL PROTECTED]>")
to explicitly trap that...
and whenever a timeout occurs it is correctly reported and handled
(timeout set to 240 seconds)


Traceback (most recent call last):
File "C:\mydir\myscript.py", line 77, in downloadFile
result = ftpObject.retrbinary('RETR '+name, f.write)
File "C:\Python23\lib\ftplib.py", line 386, in retrbinary
return self.voidresp()
File "C:\Python23\lib\ftplib.py", line 221, in voidresp
resp = self.getresp()
File "C:\Python23\lib\ftplib.py", line 207, in getresp
resp = self.getmultiline()
File "C:\Python23\lib\ftplib.py", line 193, in getmultiline
line = self.getline()
File "C:\Python23\lib\ftplib.py", line 183, in getline
if not line: raise EOFError


In ftplib.py I read this comment:
[CUT]
# Internal: return one line from the server, stripping CRLF.
# Raise EOFError if the connection is closed
def getline(self):
[CUT]

May anyone explain me what is this?
Could this error be explained only as a ftp server problem?
TIA!
bye,
   PiErre

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows vs. Linux

2006-08-08 Thread siggy2

Duncan Booth wrote:
[CUT]
>
> C:\>cd /Documents and settings
> The system cannot find the path specified.
>
> C:\>cd /DDocuments and settings
>
> C:\Documents and Settings>

that's because the
cd /D is interpreted as
"change drive and directory"
so I imagine it enables some kind of command extension

but anyway you're right: m$ CMD is weird
bye,
   PiErre

-- 
http://mail.python.org/mailman/listinfo/python-list