bzr crashed on 'bzr branch'

Bug #187916 reported by Melissa Reid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Unassigned

Bug Description

I have just installed bzr, and was trying to install a plugin as the user guide suggests:

bzr branch https://launchpad.net/bzr-vimdiff vimdiff

This happened:

Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 806, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 762, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py", line 878, in run
    from_location)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 773, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 651, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 688, in open_from_transport
    redirected)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1661, in do_catching_redirections
    return action(transport)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 665, in find_format
    transport, _server_formats=_server_formats)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1417, in find_format
    return format.probe_transport(transport)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1427, in probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/__init__.py", line 125, in get
    code, response_file = self._get(relpath, None)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/_urllib.py", line 119, in _get
    response = self._perform(request)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/_urllib.py", line 78, in _perform
    response = self._opener.open(request)
  File "/opt/local/lib/python2.5/urllib2.py", line 374, in open
    response = self._open(req, data)
  File "/opt/local/lib/python2.5/urllib2.py", line 392, in _open
    '_open', req)
  File "/opt/local/lib/python2.5/urllib2.py", line 353, in _call_chain
    result = func(*args)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 607, in https_open
    return self.do_open(HTTPSConnection, request)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 500, in do_open
    headers)
  File "/opt/local/lib/python2.5/httplib.py", line 885, in _send_request
    self.endheaders()
  File "/opt/local/lib/python2.5/httplib.py", line 856, in endheaders
    self._send_output()
  File "/opt/local/lib/python2.5/httplib.py", line 728, in _send_output
    self.send(msg)
  File "/opt/local/lib/python2.5/httplib.py", line 695, in send
    self.connect()
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 228, in connect
    self.connect_to_origin()
  File "/opt/local/lib/python2.5/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 231, in connect_to_origin
    ssl = socket.ssl(self.sock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl'

bzr 1.1.0 on python 2.5.1.final.0 (darwin)
arguments: ['/opt/local/bin/bzr', 'branch', 'https://launchpad.net/bzr-vimdiff', 'vimdiff']
encoding: 'US-ASCII', fsenc: 'utf-8', lang: None
plugins:
  bzrtools /opt/local/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.1.0]
  launchpad /opt/local/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /opt/local/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 187916] [NEW] bzr crashed on 'bzr branch'

On Fri, 2008-02-01 at 01:42 +0000, Melissa Reid wrote:
> Public bug reported:
>
> I have just installed bzr, and was trying to install a plugin as the
> user guide suggests:
>
> bzr branch https://launchpad.net/bzr-vimdiff vimdiff
>
> This happened:

> AttributeError: 'module' object has no attribute 'ssl'

Hi,

I believe that you are running Debian, is that correct? If so
do you have the libssl0.9.8 package installed? If you are not
on Debian do you have the equivalent for your distro?

Did you install any part of the stack from source? (python,
openssl, etc.)

Thanks,

James

Revision history for this message
Vincent Ladeuil (vila) wrote :

As James said, there seems to be something strange in you installation.

Nevertheless bzr should not emit such a traceback but kindly inform you that https is not supported since neither pycurl nor ssl python support is available.

Revision history for this message
Melissa Reid (mreid-pobox) wrote :

<email address hidden> (James Westby) sent forth on 2/2/08:

>
>On Fri, 2008-02-01 at 01:42 +0000, Melissa Reid wrote:
>> Public bug reported:
>>
>> I have just installed bzr, and was trying to install a plugin as the
>> user guide suggests:
>>
>> bzr branch https://launchpad.net/bzr-vimdiff vimdiff
>>
>> This happened:
>
>> AttributeError: 'module' object has no attribute 'ssl'
>
>Hi,
>
>I believe that you are running Debian, is that correct? If so
>do you have the libssl0.9.8 package installed? If you are not
>on Debian do you have the equivalent for your distro?

No, sorry, I'm running MacOSX, getting bzr from MacPorts.

I have the MacPorts libssl 0.9.8 installed; the OS appears
to have 0.9.7 and 0.9. The OS's version shouldn't matter,
I think; MacPorts tries to provide all its own dependencies
and not use the OS version of libraries, to the extent it
can.

I found a py-openssl port and installed it, then reinstalled
bzr. Same error.

>Did you install any part of the stack from source? (python,
>openssl, etc.)

Pretty much all of it, I would think; that's what MacPorts
does.

I gather I need to take this to the MacPorts list? Do you
want to know how it gets resolved?

Melissa

Revision history for this message
Melissa Reid (mreid-pobox) wrote :

<email address hidden> (James Westby) sent forth on 2/2/08:

>
>On Fri, 2008-02-01 at 01:42 +0000, Melissa Reid wrote:
>> Public bug reported:
>>
>> I have just installed bzr, and was trying to install a plugin as the
>> user guide suggests:
>>
>> bzr branch https://launchpad.net/bzr-vimdiff vimdiff
>>
>> This happened:
>
>> AttributeError: 'module' object has no attribute 'ssl'
>
>Hi,
>
>I believe that you are running Debian, is that correct? If so
>do you have the libssl0.9.8 package installed? If you are not
>on Debian do you have the equivalent for your distro?
>
>Did you install any part of the stack from source? (python,
>openssl, etc.)

I now have it working. Do you feel that ssl support is important
enough for me to file a MacPorts bug on a missing dependency?

Melissa

Revision history for this message
James Westby (james-w) wrote :

On Sat, 2008-02-02 at 19:15 +0000, Melissa Reid wrote:
> I now have it working. Do you feel that ssl support is important
> enough for me to file a MacPorts bug on a missing dependency?

I think that this would be sensible yes. It would at least alert them to
the issue and get their feedback.

Thanks,

James

Revision history for this message
Melissa Reid (mreid-pobox) wrote :

<email address hidden> (James Westby) sent forth on 2/3/08:

>
>On Sat, 2008-02-02 at 19:15 +0000, Melissa Reid wrote:
>> I now have it working. Do you feel that ssl support is important
>> enough for me to file a MacPorts bug on a missing dependency?
>
>I think that this would be sensible yes. It would at least alert them to
>the issue and get their feedback.

Just so you know, they've added the appropriate dependency. Should
be fixed now. Thanks for your help.

Melissa Reid

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 187916] Re: bzr crashed on 'bzr branch'

vila wrote:
> As James said, there seems to be something strange in you installation.
>
> Nevertheless bzr should not emit such a traceback but kindly inform you
> that https is not supported since neither pycurl nor ssl python support
> is available.
>

True, I believe it is happening deep within httplib, and is happening
because of distributions not including everything from python
"out-of-the-box".

That doesn't mean we can't be aware of this bug in other people's
packaging and have a workaround. I don't know that it is really Bazaar's
place, but ... whatever.

John
=:->

Revision history for this message
Kevin Lewis (klewis) wrote :

I got this same call stack running on Windows XP. Can someone tell me what exactly is missing in my installation?

C:\Work\bzr\Clean>bzr --version
Bazaar (bzr) 1.0.0
  Python interpreter: C:\Sw\Bazaar\python25.dll 2.5.1.final.0
  Python standard library: C:\Sw\Bazaar\lib\library.zip
  bzrlib: C:\Sw\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\klewis\Application Data\bazaar\2.0
  Bazaar log file: C:\Documents and Settings\klewis\My Documents\.bzr.log

Copyright 2005, 2006, 2007 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

C:\Work\bzr\Clean>bzr branch bzr+ssh://<email address hidden>/bzrroot/server/mysql-6.0-falcon mysql-6.0-falcon
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 802, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 758, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 905, in run
  File "bzrlib\bzrdir.pyc", line 841, in sprout
  File "bzrlib\repository.pyc", line 873, in fetch
  File "bzrlib\decorators.pyc", line 165, in write_locked
  File "bzrlib\repository.pyc", line 2763, in fetch
  File "bzrlib\fetch.pyc", line 103, in __init__
  File "bzrlib\fetch.pyc", line 132, in __fetch
  File "bzrlib\fetch.pyc", line 408, in _fetch_everything_for_revisions
  File "bzrlib\repository.pyc", line 778, in insert_data_stream
  File "bzrlib\remote.pyc", line 863, in _deserialise_stream
  File "bzrlib\smart\protocol.pyc", line 549, in read_body_bytes
  File "bzrlib\smart\protocol.pyc", line 257, in accept_bytes
  File "bzrlib\smart\protocol.pyc", line 427, in _state_accept_reading_body
MemoryError

bzr 1.0.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'branch', 'bzr+ssh://<email address hidden>/bzrroot/server/mysql-6.0-falcon', 'mysql-6.0-falcon']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  difftools C:\Sw\Bazaar\plugins\difftools [0.91.0]
  extmerge C:\Sw\Bazaar\plugins\extmerge [unknown]
  gtk C:\Sw\Bazaar\plugins\gtk [0.95.0dev1]
  launchpad C:\Sw\Bazaar\lib\library.zip\bzrlib\plugins\launchpad [unknown]
  multiparent C:\Sw\Bazaar\lib\library.zip\bzrlib\plugins\multiparent.pyc [unknown]
  mysql_plugins C:\Sw\Bazaar\plugins\mysql_plugins [0.2.2]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Hi Kevin,

That's a separate problem, please file a new bug report.

Revision history for this message
Robert Collins (lifeless) wrote :

This was a bug in the distribution packaging of bzr, and has been fixed.

Changed in bzr:
status: New → Fix Released
Revision history for this message
arjmage (arjmage) wrote :
Revision history for this message
Vincent Ladeuil (vila) wrote :

@arjmage, please file a new bug, this one is marked fixed released and won't get much attention without more explanations.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.