[maemo-developers] strange urllib2 error , Is this a bug ? if so any way to resolve it
From: Amit Sethi amit.pureenergy at gmail.comDate: Thu Jul 23 02:01:41 EEST 2009
- Previous message: strange urllib2 error , Is this a bug ? if so any way to resolve it
- Next message: =?UTF-8?Q?Re=3A=20strange=20urllib2=20error=20, =20Is=20this=20a=20bug=20=3F=20if=20so=20any=20way=20to=20resolve=20=20it?=
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ok , I ran another test and tried to use google's ip and it works
fine .By the way ... in the last part of my previous mail i am not
using the domain name so it does not matter , just ignore it . I
though it would be helpful if I give the whole trace so:
[sbox-FREMANTLE_X86: ~] > python2.5
Python 2.5.2 (r252:60911, Mar 16 2009, 16:36:21)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> a=urllib2.urlopen("http://209.85.153.104/")
>>> a=urllib2.urlopen("http://www.google.com")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.5/urllib2.py", line 381, in open
response = self._open(req, data)
File "/usr/lib/python2.5/urllib2.py", line 399, in _open
'_open', req)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (-3, 'Temporary failure in name resolution')>
P.S: Should urllib2 even handle name resolution ???
--
A-M-I-T S|S
- Previous message: strange urllib2 error , Is this a bug ? if so any way to resolve it
- Next message: =?UTF-8?Q?Re=3A=20strange=20urllib2=20error=20, =20Is=20this=20a=20bug=20=3F=20if=20so=20any=20way=20to=20resolve=20=20it?=
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
