MemoryError - IMAP retrieve self._sock.recv(recv_size)

Stephen G sgreszcz at
Wed Oct 18 16:49:12 CEST 2006


Thanks for the response.  I did see that, but having been dated 2005 I thought that it might have been patched.  I am also sometimes getting the same problem with the module.  T

his may have to do with the interaction between Python and the mobile optimization client that I am testing.  I do not see this problem when using Internet Explorer and the optimization client, nor is there a problem when using Python and no optimization client.  I am working with the optimization client vendor to have them test my Python script with their product.  This problem is intermittent with the optimization client which is annoying since most of the time it works.

Iteration Number 12
18/10/2006 14:01:23
Error: problem downloading 3MB.doc

<no args>
  File "C:\Documents and Settings\root\Desktop\TMO\Python scripts\", line 130, in main
    urllib.urlretrieve(total_URL, downloaded_file)

  File "C:\Python25\lib\", line 89, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)

  File "C:\Python25\lib\", line 248, in retrieve
    block =

  File "C:\Python25\lib\", line 308, in read
    data = self._sock.recv(recv_size)

I am hesitant to make any changes to the python libraries as I need to distribute these scripts with a standard Python install.  I guess an other option is to try and learn something like Perl and recode all the test scripts...

More information about the Python-list mailing list