From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: 'bzr init-repo .' crashes for lack of module bz2. Help, please! Date: Thu, 31 Dec 2009 12:06:48 +0000 Message-ID: <20091231120648.GA2801@muc.de> References: <20091228170401.GA4553@muc.de> <4B3939AB.7070501@harpegolden.net> <20091229200832.GA5097@muc.de> <20091229205734.GB5097@muc.de> <4B3A957B.9050106@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262260869 6269 80.91.229.12 (31 Dec 2009 12:01:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 12:01:09 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 31 13:01:01 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQJi8-00083C-0H for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2009 13:01:00 +0100 Original-Received: from localhost ([127.0.0.1]:39728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQJi7-0006W5-TI for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2009 07:00:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQJi3-0006Vo-Bx for emacs-devel@gnu.org; Thu, 31 Dec 2009 07:00:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQJhx-0006VI-Hv for emacs-devel@gnu.org; Thu, 31 Dec 2009 07:00:54 -0500 Original-Received: from [199.232.76.173] (port=45203 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQJhx-0006V9-CW for emacs-devel@gnu.org; Thu, 31 Dec 2009 07:00:49 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:1476 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NQJhw-0007XI-BZ for emacs-devel@gnu.org; Thu, 31 Dec 2009 07:00:49 -0500 Original-Received: (qmail 6386 invoked by uid 3782); 31 Dec 2009 12:00:42 -0000 Original-Received: from acm.muc.de (pD9E23A8C.dip.t-dialin.net [217.226.58.140]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 31 Dec 2009 13:00:41 +0100 Original-Received: (qmail 4216 invoked by uid 1000); 31 Dec 2009 12:06:48 -0000 Content-Disposition: inline In-Reply-To: <4B3A957B.9050106@harpegolden.net> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119140 Archived-At: Hi, David, On Tue, Dec 29, 2009 at 11:49:15PM +0000, David De La Harpe Golden wrote: > Alan Mackenzie wrote: > >On Tue, Dec 29, 2009 at 09:19:06PM +0100, Andreas Schwab wrote: > >>Alan Mackenzie writes: > >>>The sole "necessary bit" for bz2 appears to be bz2module.c, which > >>>exists in the Python source tree. It appears not to have been > >>>compiled (there is no bz2module.o). There is nothing else helpful > >>>in the build procedure's stdout or stderr. Any ideas? > >>Most likely you lack bzip2. > >No, I have bzip2 (used it this morning on the Python tarball), > >including, in particular, /usr/lib/libbz2.so.1.0.2 (with an > >appropriate symlink with a truncated name). > Just in case: and the relevant bz2 header /usr/include/bzlib.h ? > Would probably be in package libbz2-dev in debian. I was lacking this file, so I downloaded and built the latest version of bzip2. I still get the same error message, which I don't understand, namely: bzr: ERROR: exceptions.ImportError: failed to load bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a: No module named bz2 Presumably "bzrlib.repofmt.groupcompress_repo" means the file .../bzrlib/repofmt/groupcompress_repo.py, but what, exactly, is a "module named bz2"? What is its filename, where is bzr (or Python?) looking for it? I've tried, but failed, to submit a bug report for this. The maintainers of bzr use a tool called "Launchpad", which uses a gaudy log-in script which breaks horribly on my ancient Firefox. To submit a bug about Launchpad, you've got to use, er, Launchpad. Talk about sub-optimal intelligence. ;-( I'd really like to get all this difficult stuff fixed so that I can get back to something nice and easy like CC Mode. ;-( Here is the entire diagnostic from my attempt to run 'bzr init-repo .'. Further help would be most appreciated: ************************************************************************* acm@acm:~/emacs/emacs.bzr$ bzr init-repo . bzr: ERROR: exceptions.ImportError: failed to load bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a: No module named bz2 Traceback (most recent call last): File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 842, in exception_to_return_code return the_callable(*args, **kwargs) File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 1037, in run_bzr ret = run(*run_argv) File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 654, in run_argv_aliases return self.run(**all_cmd_args) File "/usr/local/lib/python2.6/site-packages/bzrlib/builtins.py", line 1788, in run format = bzrdir.format_registry.make_bzrdir('default') File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 3452, in make_bzrdir return self.get(key)() File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 3402, in helper bd.repository_format = _load(repository_format) File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 3387, in _load raise ImportError('failed to load %s: %s' % (full_name, e)) ImportError: failed to load bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a: No module named bz2 bzr 2.0.3 on python 2.6.4 (Linux-2.6.8-i686-with-debian-3.1) arguments: ['/usr/local/bin/bzr', 'init-repo', '.'] encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_GB' plugins: launchpad /usr/local/lib/python2.6/site-packages/bzrlib/plugins/launchpad [2.0.3] netrc_credential_store /usr/local/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.0.3] *** 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. ************************************************************************* -- Alan Mackenzie (Nuremberg, Germany).