Comment 34 for bug 451670

Revision history for this message
kurtis (kurtis318) wrote : Re: [Bug 451670] Re: no HTTPSConnection._tunnel_host in python <= 2.6.2

Yes, looks like the fix works for me too. Thanks...

On Mon, Oct 19, 2009 at 6:05 PM, JTFlint <email address hidden> wrote:

> Yes, Finally, its working after this patch today. Thanks, guys! :) Good
> job.
>
> --
> no HTTPSConnection._tunnel_host in python <= 2.6.2
> https://bugs.launchpad.net/bugs/451670
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in Ubuntu One Client: Fix Released
>
> Bug description:
> The file "ubuntuone/oauthdesktop/auth.py" references
> HTTPSConnection._tunnel_host unconditionally that is only available in
> python/httplib >= 2.6.3 and therefore fails on Jaunty that has 2.6.2
> installed.
>
> xxxxxxxxx~$ ubuntuone-client-applet
> Traceback (most recent call last):
> File "/var/lib/python-support/python2.6/dbus/connection.py", line 578, in
> msg_reply_handler
> reply_handler(*message.get_args_list(**get_args_opts))
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py",
> line 276, in got_state
> self.acquire_access_token(description, store)
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py",
> line 336, in acquire_access_token
> self.request_token = self.make_token_request(oauth_request)
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py",
> line 229, in make_token_request
> fp = opener.open(oauth_request.http_url, oauth_request.to_postdata())
> File "/usr/lib/python2.6/urllib.py", line 205, in open
> return getattr(self, name)(url, data)
> File "/usr/lib/python2.6/urllib.py", line 437, in open_https
> h.endheaders()
> File "/usr/lib/python2.6/httplib.py", line 868, in endheaders
> self._send_output()
> File "/usr/lib/python2.6/httplib.py", line 740, in _send_output
> self.send(msg)
> File "/usr/lib/python2.6/httplib.py", line 699, in send
> self.connect()
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py",
> line 58, in _connect_wrapper
> if self._tunnel_host:
> AttributeError: HTTPSConnection instance has no attribute '_tunnel_host'
>
> ProblemType: Bug
> .home.alexei..cache.ubuntuone.log.syncdaemon.exceptions.log:
>
> .home.alexei..config.ubuntuone.ubuntuone.client.conf:
> [ubuntuone]
> bookmarked = True
> connected = True
> connect = 0
> show_applet = 1
> Architecture: i386
> CrashDB: ubuntuone
> DistroRelease: Ubuntu 9.04
> Package: ubuntuone-client 1.0.0+r255-0ubuntu1~ppa1~jaunty
> PackageArchitecture: all
> ProcEnviron:
> LANGUAGE=
> PATH=(custom, user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: ubuntuone-client
> ThirdParty: True
> Uname: Linux 2.6.28-15-generic i686
> UnreportableReason: This is not a genuine Ubuntu package
>

--
Kurtis (Kurt) W. Ruby
<email address hidden>