doesn't work with bzr standalone windows installer

Bug #258890 reported by Timmie
4
Affects Status Importance Assigned to Milestone
bzr-xmloutput
Fix Released
High
Guillermo Gonzalez

Bug Description

I tried to use this plugin (bzr-xmloutput) but bzr couldn't load it.

I was using the bzr standalone windows installer branching a plugin (bzr-xmloutput) to $APPDATA/bazaar/2.0/plugins fails.

Here is the error message:
>bzr plugins
Unable to load plugin u'xmloutput' from u'C:/Programme/Bazaar/plugins'
launchpad
    Launchpad.net integration plugin for Bazaar.

Revision history for this message
Martin Albisetti (beuno) wrote :

You you attach your "My Documents/.bzr.log" file?

That should have the traceback that's causing this.

Thanks!

Revision history for this message
Timmie (timmie) wrote :

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to https://bugs.launchpad.net/bzr/+filebug

0.301 encoding stdout as sys.stdout encoding 'cp850'
0.301 bzr arguments: [u'plugins']
0.311 looking for plugins in $APPDATA/bazaar/2.0/pluginslugins
0.311 looking for plugins in C:/Programme/Bazaar/plugins
[ 4080] 2008-08-18 01:02:11.621 WARNING: Unable to load plugin u'xmloutput' from u'C:/Programme/Bazaar/plugins'
0.351 Traceback (most recent call last):
  File "bzrlib\plugin.pyc", line 210, in load_from_dir
  File "<string>", line 1, in <module>
  File "$APPDATA/bazaar/2.0/plugins\xmloutput\__init__.py", line 401, in <module>
  File "bzrlib\lazy_import.pyc", line 106, in __getattribute__
  File "bzrlib\lazy_import.pyc", line 89, in _replace
  File "bzrlib\lazy_import.pyc", line 195, in _import
  File "$APPDATA/bazaar/2.0/plugins\xmloutput\service.py", line 22, in <module>
ImportError: No module named SimpleXMLRPCServer

0.441 encoding stdout as sys.stdout encoding 'cp850'
0.441 return code 0

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Tim,
Thanks for reporting this.
The current bzr.exe don't include the required modules to run the plugin (SimpleXMLRPCServer)
The only workaround for the moment is to use the Python based installer.

Regards,

Changed in bzr-xmloutput:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Tim,
This should be fixed in bzr 1.7.
In the meantime, you can workaround it by following the instructions at: https://answers.edge.launchpad.net/bzr-xmloutput/+question/42183

Cheers,

Revision history for this message
Timmie (timmie) wrote :

Hello,
please not that this isn't fixed in 1.7

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Tim,
Apologize, my patch to standalone bzr was rejected.
I need to get a windows pc and learn how to use Nsis to build a installer for xmloutput to be used with bzr.exe

Cheers,

Revision history for this message
Timmie (timmie) wrote :

Hello,
no need to apologize.
But strange, that there is no mechanism to make these plugin work on windows.

Revision history for this message
Timmie (timmie) wrote :

And strange that other plugins such as the launchepad one work well.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Tim,
Let me elaborate a bit more the problem :)
bzr.exe includes the parts of the python library needed by bzr.
xmloutput uses the XMLRPCServer module, which is not used by bzr itself, so it's not included in bzr.exe.
the launchpad plugin is bundled with bzr.exe so all it dependecies are included.

To make xmloutput compatible with bzr.exe, it should be packaged in an installer using NSIS (like qbzr does)
The main blocker (to me at least) is that I don't own a PC with windows, (I'm setting up a VM), and need to learn how to use NSIS and build the installer :)

Regards,

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Well it was'nt so difficult after all :)
There is a installer available for 0.8 at: https://edge.launchpad.net/bzr-xmloutput/trunk/0.8

Regards

Changed in bzr-xmloutput:
assignee: nobody → guillo.gonzo
status: Confirmed → Fix Released
Revision history for this message
Timmie (timmie) wrote :

Thanks for the effort you are putting in this!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.