bzr: ERROR: No module named PyQt4

Bug #327487 reported by Anthony Bush
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
QBzr
Fix Released
Medium
Alexander Belchenko

Bug Description

1. I installed bzr 1.11 from Mac OS X 10.5 binary from http://bazaar-vcs.org/Download
2. Run `bzr help commands` and get this error:

bzr: ERROR: No module named PyQt4
You may need to install this Python library separately.

(dump from ~/.bzr.log attached at time of error)

Work around is to remove the qbzr plugin:

cd /Library/Python/2.5/site-packages/bzrlib/plugins
sudo tar -cf qbzr.tar qbzr
sudo rm -rf qbzr

Revision history for this message
Anthony Bush (awbush) wrote :
Revision history for this message
Vincent Ladeuil (vila) wrote :

This bug is really coming from qbzr which should abort when pyqt4 or any other dependency is not available but instead gracefully refuses to be loaded.

Reassigned to qbzr.

Changed in qbzr:
importance: Undecided → Medium
milestone: none → 0.9.8
status: New → Confirmed
Changed in qbzr:
assignee: nobody → bialix
status: Confirmed → Fix Committed
Revision history for this message
Vincent Ladeuil (vila) wrote :

As Robert pointed out on IRC, even if qbzr doesn't abort in that case, the OSX installer should be fixed too.

The installer should include or depend on qt if we're bundling qbzr in that installer.

@Alexander: Stop fixing bugs quicker that we can explain them please :-)

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 327487] Re: bzr: ERROR: No module named PyQt4

Vincent Ladeuil пишет:
> As Robert pointed out on IRC, even if qbzr doesn't abort in that case,
> the OSX installer should be fixed too.
>
> The installer should include or depend on qt if we're bundling qbzr in
> that installer.
>
> @Alexander: Stop fixing bugs quicker that we can explain them please :-)

Monsieur Vincent,

I've just made qbzr more robust against this sort of issues :-P

It's not really "bug" in qbzr, but in the same time it should not affects
behavior of `bzr help commands`.

Sincerely yours, etc etc etc.

:-)

Revision history for this message
Anthony Bush (awbush) wrote :

Fix committed in less than 24 hours. That's awesome. Thank you!

Revision history for this message
Alexander Belchenko (bialix) wrote :

Anthony Bush пишет:
> Fix committed in less than 24 hours. That's awesome. Thank you!
>
Actually it's not the right fix. The right fix still ahead: PyQT libs
should be bundled into installer you're using.

Revision history for this message
Anthony Bush (awbush) wrote :

You're right, and I think this used to be the case as my 1.9 install of bzr on another machine has qbzr plugin and doesn't have this problem. That, or the ability for plugins to break "help commands" is a new thing as I never tried using any qbzr commands.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Anthony Bush пишет:
> You're right, and I think this used to be the case as my 1.9 install of
> bzr on another machine has qbzr plugin and doesn't have this problem.
> That, or the ability for plugins to break "help commands" is a new thing
> as I never tried using any qbzr commands.

New thing of course, we're improving not only our features, but our bugs too! ;-)

Changed in qbzr:
milestone: 0.9.8 → 0.9.9
Revision history for this message
David Reitter (david-reitter) wrote :

Moths later, bzr release 1.13 still has this problem.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

On Sun, Mar 22, 2009 at 4:37 PM, David Reitter <email address hidden> wrote:
> Moths later, bzr release 1.13 still has this problem.

We still have not released qbzr 0.9.9 - so bzr 1.13 has qbzr 0.9.8.

Changed in qbzr:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pool (mbp) wrote :

I don't think this is a bzr core bug?

Changed in bzr:
status: New → Invalid
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.