Repeated "Two plugins defined for same command"

Asked by Jake Swanson on 2008-10-21

First, I'm a bzr newbie following a tutorial that uses bzr-gtk as an example of creating your own branch (tutorial location: http://doc.bazaar-vcs.org/latest/en/mini-tutorial/index.html ). I'm now trying to follow the README in my branch to manually install my bzr-gtk, so I can then make changes and test them.

Anyways, I've tried creating a symlink in ~/.bazaar/plugins/ called 'gtk'. After doing that, I then run 'bzr visualise' in a branch, it first says "Not running as bzrlib.plugins.gtk, things may break" and then repeatedly mentions "two plugins defined for same command". Finally, it breaks with the output "bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'Dialog'". I've pasted this complete output at the bottom of this post.

My first clue is that I should run it "as bzrlib.plugins.gtk," which seems to relate to an alternate install method I read in the README: "Other ways include doing the same in the bzrlib/plugins directory of your bzr working tree."

If that is the way I need to be installing it, how do I find the "bzr working tree"? I'm sorry if any of this has been said before, I couldn't find it anywhere else (noob).

Thanks greatly for your time!

My complete 'bzr visualise' output:
-------------------------------------------
jake@jake-laptop:~/bazaar/bzr-gtk.swajak$ bzr visualise
Not running as bzrlib.plugins.gtk, things may break.
Two plugins defined the same command: 'cmd_gannotate'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gbranch'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gcheckout'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gcommit'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gconflicts'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gdiff'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_ginit'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_ginfo'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gmerge'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gmissing'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gpreferences'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gpush'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gsend'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gstatus'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gtags'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_visualise'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
Two plugins defined the same command: 'cmd_gselftest'
Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>
Previously this command was registered from <module 'bzrlib.plugins.gtk' from '/home/jake/.bazaar/plugins/gtk/__init__.pyc'>
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'Dialog'

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/jake/.bazaar/plugins/gtk/__init__.py", line 278, in run
    set_ui_factory()
  File "/home/jake/.bazaar/plugins/gtk/__init__.py", line 104, in set_ui_factory
    from ui import GtkUIFactory
  File "/home/jake/.bazaar/plugins/gtk/ui.py", line 29, in <module>
    class PromptDialog(gtk.Dialog):
AttributeError: 'module' object has no attribute 'Dialog'

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'visualise']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  gtk /home/jake/.bazaar/plugins/gtk [0.96.0dev1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** 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.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar GTK+ Frontends Edit question
Assignee:
No assignee Edit question
Solved by:
Jake Swanson
Solved:
2008-10-21
Last query:
2008-10-21
Last reply:
Jake Swanson (swajak) said : #1

Oops. I'm retarded. I should have just read the output more closely...
"Not loading the one in <module 'bzrlib.plugins.gtk.gtk' from '/home/jake/.bazaar/plugins/gtk/gtk/__init__.pyc'>"

I had accidentally created another symlink in the bzr-gtk folder...

Sorry!