urllib problem (maybe bugs?)

Fredrik Lundh fredrik at pythonware.com
Wed Mar 30 11:25:56 EST 2005


Timothy Wu wrote:

> After I've done that it works fine for small SEQ values. Then, when I
> try to send large amount of data (1.4MB), it fails miserably with
> AttributeError exception.

the page states that you should send no more than 4000 proteins.  how
many proteins do you have in your 1.4 megabyte file?

> I highly suspect the two problems I have are the result of some bugs
> in the urllib module. Any suggestions?

if the urllib module couldn't handle forms, don't you think anyone else
would have noticed that by now?

>  File "C:\Python24\lib\urllib.py", line 786, in __init__
>    self.read = self.fp.read
> AttributeError: 'NoneType' object has no attribute 'read'

my guess is that the server shuts the connection down when you're send
too much data to it.  have you contacted the server administrators? (see
the bottom of that page).

</F> 






More information about the Python-list mailing list