[Yum-devel] Bug in HTTPSHandler

Jostein Gogstad Jostein.Gogstad at idi.ntnu.no
Sat Mar 1 19:27:20 UTC 2008


Hi,

I just downloaded python-urlgrabber from the repositories (Version:
3.1.0-3) and I can't seem to get the HTTPSHandler to work:

>>> import urllib2
>>> from urlgrabber import keepalive
>>> handler = keepalive.HTTPSHandler()
>>> opener = urllib2.build_opener(handler)
>>> opener.open('https://example.com')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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 "/var/lib/python-support/python2.5/urlgrabber/keepalive.py", line 347, in https_open
    return self.do_open(req)
  File "/var/lib/python-support/python2.5/urlgrabber/keepalive.py", line 233, in do_open
    h = self._get_connection(host)
  File "/var/lib/python-support/python2.5/urlgrabber/keepalive.py", line 350, in _get_connection
    return self._ssl_factory.get_https_connection(host)
AttributeError: SSLFactory instance has no attribute 'get_https_connection'
>>> 

Any ideas? Running Ubuntu Gutsy

-- 
Jostein Gogstad



More information about the Yum-devel mailing list