On Sat, 2008-03-01 at 20:27 +0100, Jostein Gogstad wrote:
> 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
Do you have m2crypto installed?
If so, what version?
-sv
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel