I have the same problem described below.
There is any solution at this time?
Juan Manuel Rodr=EDguez.
>>Im getting an AttributeError in the httplib.py standard library when
>>Traceback (innermost last):
>> File "FutureSourceSpider.py", line 86, in ?
>> File "c:\software\jython\Lib\urllib.py", line 68, in urlretrieve
>> File "c:\software\jython\Lib\urllib.py", line 198, in retrieve
>> File "c:\software\jython\Lib\urllib.py", line 169, in open
>> File "c:\software\jython\Lib\urllib.py", line 273, in open_http
>> File "c:\software\jython\Lib\httplib.py", line 430, in putrequest
>>The line throwing the error in inside an exception handler:
>> except socket.error, v:
>> # trap 'Broken pipe' if we're allowed to automatically
>>>>>> if v !=3D 32 or not self.auto_open: <<<<<
>> # try one more time (the socket was closed; this will
>>I instrumented this code and determined that it executes when there is=
>>timeout setting up a socket connection. This timeout condition is for =
>>purpoises, transient and non-fatal.
>>The underlying message: java.net.NoRouteToHostException: Operation tim=
>>out: no further information
>>Possibly because this section rarely executes, a bug has gone
>>I dont fully understand what would cause the AttributeError on the lin=
>>above, can someone explain?
>In CPython, the exception would have been a subclass of Exception, whic=
>defines a __getitem__ method. Index 0 would then contain the error
>number and index 1 an textual description. So the httplib will most
>likely work on CPython.
>OTOH, the java exception is just passed back from the jython socket
>module. This exception can not be indexed as a list, therefore we get
>the AttributeError: __getitem__. There is also no error number in a jav=
>I'm not yet sure what the right long term solution is. Either httplib
>could test that the exception is a sequence before doing any indexing.
>Or the socket module could catch the java.net exception and reraise it
>as a SocketException.
>Can anyone tell when the resend condition should occur under jython?