hp-systray in HPLIP 2.8.10 completely broken: No Qt4 support, hpdio module missing

Bug #299011 reported by Till Kamppeter
4
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned

Bug Description

I have the same problem as described in the following question:

https://answers.edge.launchpad.net/hplip/+question/50864

This renders hp-systray in HPLIP 2.8.10 completely unusable and so big part of the HPLIP functionality got lost with this release. As long as this bug does not get fixed I cannot do anything towards getting this HPLIP version into Ubuntu or OpenPrinting.

The problem is that if I start hp-systray without options, it appears on the desktop and not in the tray, If I start it with "--qt4" (as I do in the Ubuntu package), it gives the errors cited below (from question #50864).

This is a severe regression against 2.8.7 and I would like to have a patch as soon as possible to be able to package 2.8.10.

----------

hi there:
when I try to followed some instractions this is what's happen:

alf@alf-laptop:~$ hp-systray --qt4

HP Linux Imaging and Printing System (ver. 2.8.10)
System Tray Status Service ver. 2.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: Qt4 support is unfinished and unsupported. Please use Qt3 mode (if avail).
error: Unable to load Qt4 support. Is it installed?
Traceback (most recent call last):
  File "/usr/bin/hp-systray", line 126, in <module>
    import hpdio
ImportError: No module named hpdio

Of course I still have the same problem and the HP-systray is on the desktop

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Marking as confirmed as the poster of the cited question has the same problem.

description: updated
Changed in hplip:
status: New → Confirmed
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Thanks for the report.

I'll be looking at getting a patch together in the next few days.

Aaron

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

For me it lloks like that you are simply missing to ship the file hpdio.py (or whatever file contains the "hpdio" Python module) in the source tarball of 2.8.10. Can you attach this file to this bug report and I can package HPLIP 2.8.10 for Jaunty. Thanks.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Let me check with Don when he gets in--but shouldn't be a problem-it's his code so I want to just make sure he's cool with it.

As a side topic if there is anything else you want me to bring up to the team for you let me know before 10PST.

And I'm going to keep jaunty on my priority list so that hopefully HPLIP in jaunty will be more stable.

A

Revision history for this message
dwelch91 (dwelch91) wrote : Re: [Bug 299011] Re: hp-systray in HPLIP 2.8.10 completely broken: No Qt4 support, hpdio module missing

I attached the file, but I am not 100% certain the Qt4 version of hp-systray
in 2.8.10 will continue to work in conjunction with the Qt3 version of the
toolbox. There were some changes made to support some new required
functionality in the next release that may not work well with the old Qt3
code. I will ask our QA people to do some testing to evaluate this.

The attached file goes into the toplevel directory.

On Mon, Nov 17, 2008 at 8:58 AM, Till Kamppeter <email address hidden>wrote:

> For me it lloks like that you are simply missing to ship the file
> hpdio.py (or whatever file contains the "hpdio" Python module) in the
> source tarball of 2.8.10. Can you attach this file to this bug report
> and I can package HPLIP 2.8.10 for Jaunty. Thanks.
>
> --
> hp-systray in HPLIP 2.8.10 completely broken: No Qt4 support, hpdio module
> missing
> https://bugs.launchpad.net/bugs/299011
> You received this bug notification because you are a member of HP Linux
> Imaging and Printing, which is subscribed to HPLIP.
>

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have tried the file, and it helps me to get "hp-systray --qt4" running, when I unblock Qt4 support in modules.py and copy the ui4 directory manually into /usr/share/hplip. Other programs do not work when starting with "--qt4". Faxing does not work at all (printing a job into the fax queue makes hp-sendfax crash).

Faxing only works when hp-systray is not running (the hp-sendfax starts the Qt3 version) or when the Qt3 version of hp-systray is already running.

The reason why I like to have a working "hp-systray --qt4" that the Qt4 version goes correctly into the system tray of the GNOME desktop of Ubuntu Intrepid. The Qt3 version floats around on the desktop, usually on the left border, so that the notification bubbles gho out of the left border and therefore they are not readable.

So the best and easiest fix would probably be to make the Qt3 version correctly getting into the system tray.

With the Qt3 version correctly working I could also remove the Qt4 dependency from the Debian/Ubuntu package of HPLIP. Now it depends on both Qt versions.

Revision history for this message
dwelch91 (dwelch91) wrote :

In 2.8.10, the only part of HPLIP that will work in Qt4 mode is hp-systray.
All other functions are still Qt3. So, the best idea is to put HPLIP in Qt3
mode with the ui-toolkit flag that's in /etc/hp/hplip.conf, and then ONLY
run hp-systray with --qt4. This requires that the --enable-qt3 and
--enable-qt4 configure flags are BOTH set.

I have tried numerous times to get the Qt3 system tray fully functioning
with no luck. I asked for help on some forums and mailing lists and got no
help. So, the easiest way to work around this issue is to run only
hp-systray with Qt4. Of course, when we roll out a fully Qt4 solution, this
whole issue will be resolved.

On Mon, Nov 17, 2008 at 2:32 PM, Till Kamppeter <email address hidden>wrote:

> I have tried the file, and it helps me to get "hp-systray --qt4"
> running, when I unblock Qt4 support in modules.py and copy the ui4
> directory manually into /usr/share/hplip. Other programs do not work
> when starting with "--qt4". Faxing does not work at all (printing a job
> into the fax queue makes hp-sendfax crash).
>
> Faxing only works when hp-systray is not running (the hp-sendfax starts
> the Qt3 version) or when the Qt3 version of hp-systray is already
> running.
>
> The reason why I like to have a working "hp-systray --qt4" that the Qt4
> version goes correctly into the system tray of the GNOME desktop of
> Ubuntu Intrepid. The Qt3 version floats around on the desktop, usually
> on the left border, so that the notification bubbles gho out of the left
> border and therefore they are not readable.
>
> So the best and easiest fix would probably be to make the Qt3 version
> correctly getting into the system tray.
>
> With the Qt3 version correctly working I could also remove the Qt4
> dependency from the Debian/Ubuntu package of HPLIP. Now it depends on
> both Qt versions.
>
> --
> hp-systray in HPLIP 2.8.10 completely broken: No Qt4 support, hpdio module
> missing
> https://bugs.launchpad.net/bugs/299011
> You received this bug notification because you are a member of HP Linux
> Imaging and Printing, which is subscribed to HPLIP.
>

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you for your quick help. I succeeded now to package HPLIP 2.8.10 for Ubuntu. Now everything including they tray icon works.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

In the Qt4-only HPLIP 3.9.2 it works now out of the box. Closing.

Changed in hplip:
status: Confirmed → Fix Released
Revision history for this message
Jack Wasey (jackwasey) wrote :

n.b. you may have to remove the old lock file:

~/.hplip/hp-systray.lock

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.