Can someone confirm the following error with python on iPhone? I'm trying to use urllib to access a website but I'm getting a socket error...
I'm getting the following on the phone:Code:import urllib test = urllib.urlopen("http://www.google.com")
Any ideas?Code:Python 2.5.1 (r251:54863, Jul 27 2007, 12:05:57) [GCC 4.0.1 LLVM (Apple Computer, Inc. build 2.0)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import urllib >>> test = urllib.urlopen("http://www.google.com/") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/urllib.py", line 82, in urlopen return opener.open(url) File "/usr/lib/python2.5/urllib.py", line 190, in open return getattr(self, name)(url) File "/usr/lib/python2.5/urllib.py", line 325, in open_http h.endheaders() File "/usr/lib/python2.5/httplib.py", line 856, in endheaders self._send_output() File "/usr/lib/python2.5/httplib.py", line 728, in _send_output self.send(msg) File "/usr/lib/python2.5/httplib.py", line 695, in send self.connect() File "/usr/lib/python2.5/httplib.py", line 663, in connect socket.SOCK_STREAM): IOError: [Errno socket error] (4, 'Non-recoverable failure in name resolution')



LinkBack URL
About LinkBacks








Reply With Quote

Bookmarks