SystemError: Parent module 'bzrlib.plugins.search' not loaded

Bug #252259 reported by Eduardo de Oliveira Padoan
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Invalid
Undecided
Unassigned
bzr search plugin
Invalid
Undecided
Unassigned

Bug Description

When trying to use the plugin, I get this exception:
"""
bzr: ERROR: exceptions.SystemError: Parent module 'bzrlib.plugins.search' not loaded

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/edcrypt/.bazaar/plugins/search/commands.py", line 62, in run
    index = _mod_index.open_index_url(trans.base)
  File "/home/edcrypt/.bazaar/plugins/search/index.py", line 143, in open_index_url
    return open_index_branch(branch)
  File "/home/edcrypt/.bazaar/plugins/search/index.py", line 154, in open_index_branch
    from bzrlib.plugins.svn.branch import SvnBranch
SystemError: Parent module 'bzrlib.plugins.search' not loaded

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'search', 'reverse']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'pt_BR.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  stats /home/edcrypt/.bazaar/plugins/stats [unknown]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.9]
  upload /home/edcrypt/.bazaar/plugins/upload [0.1.0]
*** 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.
"""

Using bzr 1.3.1 (from gutsy).

Revision history for this message
Eduardo de Oliveira Padoan (eopadoan) wrote :

Sorry, I mean from hardy, obviouly. Also, I installed the plugin using the sugested method on the project page.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 252259] [NEW] SystemError: Parent module 'bzrlib.plugins.search' not loaded

On Sun, 2008-07-27 at 06:34 +0000, Eduardo de Oliveira Padoan wrote:
> Public bug reported:
>
> When trying to use the plugin, I get this exception:
> """
> bzr: ERROR: exceptions.SystemError: Parent module
> 'bzrlib.plugins.search' not loaded
> ...

> File "/home/edcrypt/.bazaar/plugins/search/index.py", line 154, in
> open_index_branch
> from bzrlib.plugins.svn.branch import SvnBranch
> SystemError: Parent module 'bzrlib.plugins.search' not loaded

This is strange - my line 154 with context is:

    try:
        from bzrlib.plugins.svn.branch import SvnBranch
    except ImportError:
        SvnBranch = None

So this should be catching an svn import error. It looks like some
*other* error is being raised from the import of bzr-svn (which you do
have installed), so I'm opening a task on bzr-svn. Lets hope
launchpad-bugs understands what I want it to do :)

 status invalid
 affects bzr-svn

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Changed in bzr-search:
status: New → Invalid
Revision history for this message
Eduardo de Oliveira Padoan (eopadoan) wrote :

Using bzr-search pre-1.6, I cant reproduce the error.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 252259] Re: SystemError: Parent module 'bzrlib.plugins.search' not loaded

On Sun, 2008-07-27 at 23:52 +0000, Eduardo de Oliveira Padoan wrote:
> Using bzr-search pre-1.6, I cant reproduce the error.

Interesting. Well, lets close this for now - if it happens again when
bzr 1.6 is released please reopen (or just file a new bug)

 status invalid

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

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

Any chance you can run the following in a python interpreter:

from bzrlib.plugin import load_plugins
load_plugins()
from bzrlib.plugins.svn.branch import SvnBranch

Also, does loading bzr-search still fail if you remove the section around line 154:

 try:
        from bzrlib.plugins.svn.branch import SvnBranch
    except ImportError:
        SvnBranch = None

Changed in bzr-svn:
status: New → Invalid
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.