"No module named launchpadlib" on lp-propose-merge

Bug #822677 reported by Bastian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Windows Installers
Confirmed
Medium
Unassigned

Bug Description

When I call
bzr lp-propose-merge
in any branch I'll get
bzr: ERROR: Unable to import library "launchpadlib": No module named launchpadlib

I've installed Bazaar (bzr) 2.3.3 on Windows 7 from the official installer.

Jelmer Vernooij (jelmer)
affects: bzr → bzr-windows-installers
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 822677] [NEW] "No module named launchpadlib" on lp-propose-merge

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/8/2011 3:24 PM, Launchpad Bug Tracker wrote:
> You have been subscribed to a public bug:
>
> When I call bzr lp-propose-merge in any branch I'll get bzr: ERROR:
> Unable to import library "launchpadlib": No module named
> launchpadlib
>
> I've installed Bazaar (bzr) 2.3.3 on Windows 7 from the official
> installer.
>
> ** Affects: bzr-windows-installers Importance: Undecided Status: New
>

Do we really want to bundle all of launchpadlib into the Windows
installer? I suppose we could just remove lp-propose? The issue is
launchpadlib carries a *lot* of dependencies in with it.

We can, but I'm hesitant to do so.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5BLNUACgkQJdeBCYSNAAM3dgCgraPglLpOfIEE7yuYf7kDZI/l
9nAAoI72FnyoA2V5pryyjY2lf7e/lhbP
=pEA+
-----END PGP SIGNATURE-----

Revision history for this message
Bastian (baztian) wrote :

On Tue, Aug 9, 2011 at 2:49 PM, John A Meinel <email address hidden> wrote:
> Do we really want to bundle all of launchpadlib into the Windows
> installer? I suppose we could just remove lp-propose? The issue is
> launchpadlib carries a *lot* of dependencies in with it.

There should be at least an easy way to install it onto a bzr rolled
out via installer. I didn't find the information how to install the
plugin manually.

Bastian

Revision history for this message
Martin Pool (mbp) wrote :

On 9 August 2011 22:49, John A Meinel <email address hidden> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 8/8/2011 3:24 PM, Launchpad Bug Tracker wrote:
>> You have been subscribed to a public bug:
>>
>> When I call bzr lp-propose-merge in any branch I'll get bzr: ERROR:
>> Unable to import library "launchpadlib": No module named
>> launchpadlib
>>
>> I've installed Bazaar (bzr) 2.3.3 on Windows 7 from the official
>> installer.
>>
>> ** Affects: bzr-windows-installers Importance: Undecided Status: New
>>
>
> Do we really want to bundle all of launchpadlib into the Windows
> installer? I suppose we could just remove lp-propose? The issue is
> launchpadlib carries a *lot* of dependencies in with it.

I think it's reasonable to want to run launchpad-related commands from
bzr on Windows.

There are a few options to get there:
 * just include them (but there are a lot of dependencies)
 * have some separate way to install the dependencies, and make
lp-propose fail cleanly with a recommendation to add them (perhaps
this is already possible through eg pip, but that might not work well
with py2exe?)
 * rewrite this to work on top of lp_api_lite, though that will take
some new development to let it send signed requests, get tokens, etc,
so it's not a short term solution

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 822677] [NEW] "No module named launchpadlib" on lp-propose-merge

Bastian пишет:
> On Tue, Aug 9, 2011 at 2:49 PM, John A Meinel <email address hidden> wrote:
>> Do we really want to bundle all of launchpadlib into the Windows
>> installer? I suppose we could just remove lp-propose? The issue is
>> launchpadlib carries a *lot* of dependencies in with it.
>
> There should be at least an easy way to install it onto a bzr rolled
> out via installer. I didn't find the information how to install the
> plugin manually.

Use Python interpreter and python-based installer. This way you can
install anything you need using python tools like pip or setuptools.

You can add extra Python libraries to standalone bzr.exe though: just
put them into site-packages directory of your bzr installation directory.

Revision history for this message
John A Meinel (jameinel) wrote :

I did try just installing launchpadlib onto the build machine, and it didn't seem to actually include it. I haven't had time to track down the what-or-why. So the bug is still open, and my 'easy' fix didn't seem to work.

Changed in bzr-windows-installers:
status: New → Confirmed
importance: Undecided → Medium
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.