[BUG] bzr.exe is unable to load built-in plugin 'launchpad'

Alexander Belchenko bialix at ukr.net
Wed Oct 25 07:44:27 BST 2006


John Arbash Meinel пишет:
> Alexander Belchenko wrote:
>> I just discover (when test bzr.exe on clean machine) that standalone
>> bzr.exe unable to load and use built-in plugins 'launchpad'.
>>
>> This is because bzrlib (and all subpackages) packed to one library.zip
>> file, therefore plugin launchpad is also resides inside this zip file.
>> And current implementation of plugin load mechanism is unable to look
>> into zip and load module from zip.
> 
> I agree it is a bug. I'm not sure how to fix it at this point.
> 
> One possibility would be to check the path for bzrlib.plugins.__path__,
> and if it is in a zip file, do the extra work to read the zip file, and
> see what files are inside.

Another approach could be following: when bzr compiled to standalone 
bzr.exe in standard sys module appears attribute 'frozen' with value 
'console' (because we compile it to console program). So, plugin loader 
engine could check for this attribute and search (and load) plugins 
inside bzrlib/plugins with zipimport module.

Help from people who comfortable with zipimport is very appreciated.

> So you can certainly file it as a bug, though the resolution of it is a
> little unclear to me.

Filed: https://launchpad.net/products/bzr/+bug/68124

--
Alexander





More information about the bazaar mailing list