emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'bzr init-repo .' crashes for lack of module bz2. Help, please!


From: Alan Mackenzie
Subject: Re: 'bzr init-repo .' crashes for lack of module bz2. Help, please!
Date: Thu, 31 Dec 2009 12:06:48 +0000
User-agent: Mutt/1.5.9i

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 <address@hidden> 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:

*************************************************************************

address@hidden:~/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).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]