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: Tue, 29 Dec 2009 20:08:32 +0000 Message-ID: <20091229200832.GA5097@muc.de> References: <20091228170401.GA4553@muc.de> <4B3939AB.7070501@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262117076 17792 80.91.229.12 (29 Dec 2009 20:04:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2009 20:04:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 29 21:04:29 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 1NPiHK-0008Sr-OH for ged-emacs-devel@m.gmane.org; Tue, 29 Dec 2009 21:02:51 +0100 Original-Received: from localhost ([127.0.0.1]:59319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPiHL-0006oo-5c for ged-emacs-devel@m.gmane.org; Tue, 29 Dec 2009 15:02:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPiH8-0006kF-O9 for emacs-devel@gnu.org; Tue, 29 Dec 2009 15:02:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPiH4-0006gF-4K for emacs-devel@gnu.org; Tue, 29 Dec 2009 15:02:38 -0500 Original-Received: from [199.232.76.173] (port=45598 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPiH3-0006gC-Ur for emacs-devel@gnu.org; Tue, 29 Dec 2009 15:02:33 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:4690 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 1NPiH3-00056f-Bn for emacs-devel@gnu.org; Tue, 29 Dec 2009 15:02:33 -0500 Original-Received: (qmail 79598 invoked by uid 3782); 29 Dec 2009 20:02:29 -0000 Original-Received: from acm.muc.de (pD9E515BD.dip.t-dialin.net [217.229.21.189]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 29 Dec 2009 21:02:28 +0100 Original-Received: (qmail 5477 invoked by uid 1000); 29 Dec 2009 20:08:32 -0000 Content-Disposition: inline In-Reply-To: <4B3939AB.7070501@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:118969 Archived-At: Hi, David, Thanks for the reply! On Mon, Dec 28, 2009 at 11:05:15PM +0000, David De La Harpe Golden wrote: > Alan Mackenzie wrote: > >Would somebody help me, please. > What debian version are you running? Probably lenny (current stable), as > etch (current oldstable) is about to EOL. I've got an old Debian Sarge with a hosed package management system. That's why I always build from source. > Firstly, bzr 2.0.2 is currently packaged in debian lenny-backports. > http://packages.debian.org/lenny-backports/bzr > Dunno if 2.0.2->2.0.3 matters much. But using a nicely packaged > backport is likely to be less painful. > Note 2.0.3 is packaged in debian unstable. > As regards your error: > > No module named bz2 > Hmm. Module bz2 is bundled with python since python 2.3 > Can you type "python" to get a python repl, then type "import bz2" to > try to import it? Thanks! I'd assumed that bz2 was part of bzr (similar name), but it really is part of Python. My previous build of Python hadn't built bz2. So I downloaded Python-2.6.4 this morning and built it. It failed to build bz2, the sole diagnostic being: Failed to find the necessary bits to build these modules: _bsddb _hashlib _sqlite3 _ssl _tkinter bsddb185 bz2 dbm gdbm readline sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. 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? > If that fails, there's something broken with your python - though > presumably you're using the debian packaging of it? No. My package manager is totally hosed. Yes. My python is broken. -- Alan Mackenzie (Nuremberg, Germany).