Package: python-urlgrabber
Version: 3.1.0-4
Severity: normal

I can't open https links with method urlopen of class URLGrabber (in
urlgrabber.grabber).  But it works fine in version 2.9.9-1.

% python
Python 2.5.2 (r252:60911, May 28 2008, 08:35:32) 
[GCC 4.2.4 (Debian 4.2.4-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from urlgrabber.grabber import URLGrabber
>>> f = URLGrabber(timeout = 
>>> 15).urlopen("https://addons.mozilla.org/ru/firefox/";)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 884, in 
urlopen
    return self._retry(opts, retryfunc, url)
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 845, in 
_retry
    r = apply(func, (opts,) + args, {})
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 883, in 
retryfunc
    return URLGrabberFileObject(url, filename=None, opts=opts)
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1001, in 
__init__
    self._do_open()
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1072, in 
_do_open
    fo, hdr = self._make_request(req, opener)
  File "/var/lib/python-support/python2.5/urlgrabber/grabber.py", line 1168, in 
_make_request
    fo = opener.open(req)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 419, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
    return self.parent.open(new)
  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 345, 
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 348, 
in _get_connection
    return self._ssl_factory.get_https_connection(host)
AttributeError: SSLFactory instance has no attribute 'get_https_connection'
>>> f = URLGrabber(timeout = 15).urlopen("http://www.google.ru";)
>>> f.close()


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.24-1-686

Debian Release: lenny/sid
  990 testing         pier.botik.ru 
  500 unstable        pier.botik.ru 
  500 unstable        ms.pereslavl.ru 
  500 stable          pier.botik.ru 
    1 experimental    pier.botik.ru 

--- Package information. ---
Depends             (Version) | Installed
=============================-+-===========
python2.5                     | 2.5.2-6
python-support       (>= 0.2) | 0.8.4



-- 
Best regards,
Max V. Stotsky. 
:wq

Attachment: signature.asc
Description: Digital signature

Reply via email to