Key 'xml' already registered

Asked by Omer Sabic

Hi, I tried to install the xmloutput plugin. I copied it to /home/user/.bazaar/plugins/
Then I ran the setup.py script as instructed on the plugin page.
Next I tried to check if it was correctly installed:

$ omer@Q9400-ubuntu:~/.bazaar/plugins/bzr-xmloutput-0.8.4$ python setup.py build_ext -i
$ running build_ext
$ omer@Q9400-ubuntu:~/.bazaar/plugins/bzr-xmloutput-0.8.4$ bzr plugins
$ invalid syntax (<string>, line 1)
$ Unable to load 'bzr-xmloutput-0.8.4' in '/home/omer/.bazaar/plugins' as a plugin because the file path isn't a valid
$ module name; try renaming it to 'xmloutput_0_8_4'.

So I tried renaming it and run the setup again. I see now this was a mistake:

$ omer@Q9400-ubuntu:~/.bazaar/plugins/xmloutput_0_8_4$ python setup.py build_ext -i
$ running build_ext
$ omer@Q9400-ubuntu:~/.bazaar/plugins/xmloutput_0_8_4$ bzr plugins
$ "Key 'xml' already registered"
$ Unable to load plugin 'xmloutput' from '/usr/lib/python2.6/dist-packages/bzrlib/plugins'

So, how do I fix this? I somehow need to unregister this key and... ?
Kind regards =)

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Omer Sabic
Solved:
Last query:
Last reply:
Revision history for this message
Omer Sabic (omer-sabic) said :
#1

Hello,
I don't know if this is the correct solution, but deleting the xmloutput_0_8_4 from ~/.bazaar/plugins/ stopped the error from appearing and it seems everything works.
And I am loving it, just amazing how easily you checkout a versioned project directly into the Workspace.
If I was rich I'd send you a 1.000€ :D

Best regards,
Omer