explorer causes 'bzr selftest' to abort if PyQt is not installed

Bug #507524 reported by Gordon Tyler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Confirmed
Medium
Unassigned

Bug Description

I'm working on a machine that doesn't have PyQt4 installed in my python site packages. When I try to run bzr selftest using a recently pulled bzr.dev, I get the following:

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

I didn't have this problem with a bzr.dev from a few weeks ago. I don't want to have to install PyQt4 in my site packages just to run selftest.

Revision history for this message
Gordon Tyler (doxxx) wrote :

And I just realized I had a checkout of bzr-explorer in my user plugins path. Removing that solves the error.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 507524] [NEW] selftest complains 'no module named PyQt4'

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

Gordon Tyler wrote:
> Public bug reported:
>
> I'm working on a machine that doesn't have PyQt4 installed in my python
> site packages. When I try to run bzr selftest using a recently pulled
> bzr.dev, I get the following:
>
> bzr: ERROR: No module named PyQt4
> You may need to install this Python library separately.
>
> I didn't have this problem with a bzr.dev from a few weeks ago. I don't
> want to have to install PyQt4 in my site packages just to run selftest.
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

Can you check what plugins you have installed? I would guess you have
either bzr-explorer or qbzr installed, and *that* is requesting PyQt4
always, and it is causing the test suite to abort before it gets a
chance to run.

John
=:->

 status: incomplete
 importance: medium

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

iEYEARECAAYFAktPTAcACgkQJdeBCYSNAANb4ACgkFpPVVC58QW+Mb/v0yQVoMpC
UGcAn2hdk8xQcs2RfKZmWOWQ6Cm575mV
=kWbJ
-----END PGP SIGNATURE-----

Changed in bzr:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
John A Meinel (jameinel) wrote :

I think the right thing to do is to check in __init__.py if PyQt4 is available, and if it isn't, return immediately from "load_tests()" and issue a warning rather than an error.

affects: bzr → bzr-explorer
Changed in bzr-explorer:
status: Incomplete → Confirmed
summary: - selftest complains 'no module named PyQt4'
+ explorer causes 'bzr selftest' to abort if PyQt is not installed
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.