Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409097 - dev-vcs/bzr throws AttributeError with dev-lang/python[-ssl]
Summary: dev-vcs/bzr throws AttributeError with dev-lang/python[-ssl]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: bazaar+obsolete
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 08:09 UTC by dE
Modified: 2012-04-11 21:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2012-03-21 08:09:13 UTC
Otherwise cloning the https repository fails.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2012-03-21 16:02:08 UTC
The ebuild has EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/". Where do you see https?
Comment 2 dE 2012-03-23 15:07:48 UTC
I don't, but bzr does.

I'll post the output with python[-ssl]
Comment 3 dE 2012-03-24 12:39:33 UTC
>>> Emerging (1 of 1) sys-boot/grub-9999
>>> Unpacking source...
 * bzr pull start -->
 *    repository: http://bzr.savannah.gnu.org/r/grub/trunk/grub/
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'HTTPSConnection'
Comment 4 Mike Gilbert gentoo-dev 2012-03-26 06:14:23 UTC
This is a bzr problem, not a problem with the grub ebuild.

floppym@naomi tmp % bzr-2.6 branch http://bzr.savannah.gnu.org/r/grub/trunk/grub/

bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'HTTPSConnection'

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 1131, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 695, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/builtins.py", line 1420, in run
    from_location)
  File "/usr/lib64/python2.6/site-packages/bzrlib/controldir.py", line 778, in open_tree_or_branch
    controldir = klass.open(location)
  File "/usr/lib64/python2.6/site-packages/bzrlib/controldir.py", line 685, in open
    t = _mod_transport.get_transport(base, possible_transports)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/__init__.py", line 1679, in get_transport
    return get_transport_from_url(location_to_url(base), possible_transports)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/__init__.py", line 1654, in get_transport_from_url
    transport, last_err = _try_transport_factories(url, factory_list)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/__init__.py", line 1686, in _try_transport_factories
    return factory.get_obj()(base), None
  File "/usr/lib64/python2.6/site-packages/bzrlib/registry.py", line 74, in get_obj
    self._obj = get_named_object(self._module_name, self._member_name)
  File "/usr/lib64/python2.6/site-packages/bzrlib/pyutils.py", line 51, in get_named_object
    obj = __import__(module_name, {}, {}, from_list)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib.py", line 26, in <module>
    from bzrlib.transport.http._urllib2_wrappers import (
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 455, in <module>
    class HTTPSConnection(AbstractHTTPConnection, httplib.HTTPSConnection):
AttributeError: 'module' object has no attribute 'HTTPSConnection'

bzr 2.5.0 on python 2.6.7 (Linux-3.2.13-x86_64-AMD_Phenom-tm-
    _II_X6_1055T_Processor-with-gentoo-2.0.3)
arguments: ['/usr/bin/bzr-2.6', 'branch',
    'http://bzr.savannah.gnu.org/r/grub/trunk/grub/']
plugins: bash_completion[2.5.0], bisect[1.1.0dev], bzrtools[2.5.0],
    changelog_merge[2.5.0], launchpad[2.5.0], netrc_credential_store[2.5.0],
    news_merge[2.5.0], po_merge[2.5.0], weave_fmt[2.5.0]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.utf8'

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
Comment 5 dE 2012-03-26 15:58:19 UTC
Ok, I'll file it.
Comment 6 Mike Gilbert gentoo-dev 2012-03-26 16:03:53 UTC
(In reply to comment #5)
> Ok, I'll file it.

If you hadn't noticed, I've already reassigned this bug. :P

No need for a new one.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2012-04-11 21:34:36 UTC
Bzr requires USE=ssl for Python now.  Thanks for the report.