View Single Post
Posts: 481 | Thanked: 190 times | Joined on Feb 2006 @ Salem, OR
#223
Originally Posted by marxian View Post
That bug was incorrectly filed against Python 2.5. The OP intended to file against 2.3. It's unlikely therefore that the bug is present in Python 2.5, which is what is installed on Maemo 5.
This bug (or another one that acts the same) is in the Python that comes with maemo.

I run this code on my n900 with ipv6 (with ANY https address):

Code:
import urllib2
response = urllib2.urlopen('https://www.google.com/voice')
html = response.read()
print html
and this is the result:

Code:
Traceback (most recent call last):
  File "1.py", line 2, in <module>
    response = urllib2.urlopen('https://www.google.com/voice')
  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 1115, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (101, 'Network is unreachable')>
Same code works fine with IPv4.

BTW: with IPv6, any of the https addresses that fail in Python can be opened without problems in the browser.

Last edited by ioan; 2010-11-24 at 21:09.