Bazaar Version Control System

missing extensions warning is unclear

Reported by Georgi Kodinov on 2009-09-16
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
High
Martin Pool

Bug Description

I'm running bzr.dev from the source directory.
On normal operation (e.g. update of bzr.dev own repository) it started returning warnings:

$ bzr pull
Using saved parent location: http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/
No revisions to pull.
/home/kgeorge/bzr.dev/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:
    No module named _chunks_to_lines_pyx
    cannot import name _btree_serializer_pyx
    No module named _bencode_pyx
    No module named _rio_pyx
    No module named _dirstate_helpers_pyx
    No module named _chk_map_pyx
    No module named _known_graph_pyx
    No module named _annotator_pyx
    No module named _knit_load_data_pyx
    No module named _groupcompress_pyx
    No module named _readdir_pyx
    Bazaar can run, but performance may be reduced.
    Check Bazaar is correctly installed or set ignore_missing_extensions
  % '\n '.join(_extension_load_failures,))
magare:~/bzr.dev$

It's doing this on bzr version as well :

$ bzr --version
Bazaar (bzr) 2.1dev
  from bzr checkout /home/kgeorge/bzr.dev
    revision: 4692
    revid: <email address hidden>
    branch nick: bzr.dev
  Python interpreter: /usr/bin/python 2.6
  Python standard library: /usr/lib64/python2.6
  Platform: Linux-2.6.30.5-43.fc11.x86_64-x86_64-with-fedora-11-Leonidas
  bzrlib: /home/kgeorge/bzr.dev/bzrlib
  Bazaar configuration: /home/kgeorge/.bazaar
  Bazaar log file: /home/kgeorge/.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 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.

/home/kgeorge/bzr.dev/bzrlib/osutils.py:928: UserWarning: bzr: warning: Failed to load compiled extensions:
    No module named _chunks_to_lines_pyx
    cannot import name _btree_serializer_pyx
    No module named _rio_pyx
    No module named _dirstate_helpers_pyx
    No module named _chk_map_pyx
    No module named _bencode_pyx
    No module named _known_graph_pyx
    No module named _annotator_pyx
    No module named _knit_load_data_pyx
    No module named _groupcompress_pyx
    Bazaar can run, but performance may be reduced.
    Check Bazaar is correctly installed or set ignore_missing_extensions
  % '\n '.join(_extension_load_failures,))

Related branches

lp:~mbp/bzr/430529-extension-warnings
Merged into lp:bzr
Vincent Ladeuil: Approve on 2009-09-17
Robert Collins (community): Approve on 2009-09-17
Martin Pool (mbp) wrote :

Hi Joro,

What this means is that you should run 'make' in the source directory each time you update/pull into it, to make sure the compiled extensions are built. However, the message is apparently unclear and I'll update it so that it

- has a shorter list of the failed extensions
- specifically suggests running make

summary: - warning "Failed to load compiled extensions" on normal bzr.dev operation
+ missing extensions warning is unclear
Changed in bzr:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pool (mbp)
Martin Pool (mbp) wrote :

It looks like Python does not i18nize its messages so we can shorten this by matching strings::

mbp@lithe% LANG=de_DE.UTF-8 python -m aotehuaoteu
/usr/bin/python: No module named aotehuaoteu

Georgi Kodinov (kgeorge-mysql) wrote :

Hi Martin,

Thanks for the tip. That did it for me. I've updated my cronjob now and it's all back to normal.

John A Meinel (jameinel) on 2009-10-14
Changed in bzr:
status: In Progress → Fix Released
milestone: none → 2.1.0b1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers