By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

python network access restriccion in ipod touch/iphone?

P: n/a

i have a python script that uses urllib2 to download one file, it runs
ok in any pc but when urlopen is called in the ipod it show the
following error:

<urlopen error (4, 'Non-recoverable failure in name resolution')>

The complete stack:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/", line 121, in urlopen
return, data)
File "/usr/lib/python2.5/", line 380, in open
response = meth(req, response)
File "/usr/lib/python2.5/", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.5/", line 412, in error
result = self._call_chain(*args)
File "/usr/lib/python2.5/", line 353, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/", line 575, in http_error_302
File "/usr/lib/python2.5/", line 374, in open
response = self._open(req, data)
File "/usr/lib/python2.5/", line 392, in _open
'_open', req)
File "/usr/lib/python2.5/", line 353, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/", line 1100, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.5/", line 1075, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (4, 'Non-recoverable failure in name

this is the line where the error raises:


i can ping or google from ipod touch without problems, i
even tried urlopen with IP from google and yahoo and the got the same

is there any walkaround for this problem?

thanks in advance...
Nov 24 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.