Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Network access error from scripts
is a discussion within theiPhone / iPod Touch SDK | Development Discussion
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;Hi. i have a python script that uses urllib2 to download one file, when urlopen is called it show the following error: Code: >>> urllib2.urlopen("http://yahoo.com") Traceback (most recent call last):
...-
11-23-2007, 12:34 AM #1
Network access error from scripts
Hi.
i have a python script that uses urllib2 to download one file, when urlopen is called it show the following error:
The code that causes the error is:Code:>>> urllib2.urlopen("http://yahoo.com") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/urllib2.py", line 121, in urlopen return _opener.open(url, data) File "/usr/lib/python2.5/urllib2.py", line 380, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 412, in error result = self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 575, in http_error_302 return self.parent.open(new) File "/usr/lib/python2.5/urllib2.py", line 374, in open response = self._open(req, data) File "/usr/lib/python2.5/urllib2.py", line 392, in _open '_open', req) File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 1100, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.5/urllib2.py", line 1075, in do_open raise URLError(err) urllib2.URLError: <urlopen error (4, 'Non-recoverable failure in name resolution')>
i can ping yahoo.com from ipod touch without problems.Code:urllib2.urlopen("http://yahoo.com")
is there any network access restriction in iphone/itouch?
is there any workaround for this?
Thanks in advance.
-
12-24-2007, 02:32 AM #2
i get this problem too...




LinkBack URL
About LinkBacks
Reply With Quote