PyQt not on PYTHONPATH

Bug #53290 reported by Stuart Langridge
12
Affects Status Importance Assigned to Milestone
python-qt3 (Ubuntu)
Incomplete
Undecided
Ralph Janke

Bug Description

Binary package hint: python2.4-qt3

PyQt is not on the default PYTHONPATH.

aquarius@giles:~$ python -c "import qt"

Traceback (most recent call last):

  File "<string>", line 1, in ?

ImportError: No module named qt

aquarius@giles:~$

PYTHONPATH=/usr/lib/python2.4/site-packages/ python -c "import qt"

aquarius@giles:~$

This breaks hp-toolbox in the hpijs package, among other things.

Revision history for this message
markba (mark-baaijens) wrote :

I can confirm this: starting HPLIB Toolbox from Control Center does not start anything.
Executing this command directly in a terminal:
~$ /usr/bin/hp-toolbox
error: PyQt not installed. GUI not available. Exiting.
error: PyQt/Qt initialization error. Please check install of PyQt/Qt and try again.

Revision history for this message
Ralph Janke (txwikinger) wrote :

Which ubuntu release have you tested this on? On Ubuntu Dapper (6.06 LTS) I could not confirm this problem.

Changed in python-qt3:
assignee: nobody → rjanke
status: Unconfirmed → Needs Info
Revision history for this message
markba (mark-baaijens) wrote :

Detected this on Feisty while examining Control Center from gnome-main-menu.

Revision history for this message
Ralph Janke (txwikinger) wrote :

I cannot reproduce this problem.... Everything is fine on my feisty installation

Revision history for this message
luk156 (lucchesimatteo) wrote :

I've feisty and i've the same problem:

error: PyQt not installed. GUI not available. Exiting.
error: PyQt/Qt initialization error. Please check install of PyQt/Qt and try again.

Revision history for this message
Ralph Janke (txwikinger) wrote :

Could you please do a

sudo apt-get dist-upgrade

and check if it still occurs. If so, could yu please show a list of pyton packages and qt packages that are installed.

dpkg-query -l '*python*"
dpkg-query -l "*qt*"

Thanks

Revision history for this message
markba (mark-baaijens) wrote :

Workaround: sudo apt-get install python-qt3

Revision history for this message
Ralph Janke (txwikinger) wrote :

And please show with

python --version

which python is being used.

Thanks

Revision history for this message
TomasHnyk (sup) wrote :

isnt this a duplicate of https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/86893 ? It surely is, when you do not have python-qt3 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.