[Bug 755820] New: hp-toolbox.wrapper script mistakenly produces error about not finding HP all-in-one device
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c0 Summary: hp-toolbox.wrapper script mistakenly produces error about not finding HP all-in-one device Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@suse.com ReportedBy: rainer.klier@gmx.at QAContact: jsmeix@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 the script /usr/bin/hp-toolbox.wrapper tries to find out, if there are any HP devices connected. It does this by starting the hp-toolbox python script and greping the start-messages for "error". When finding the "error" string it shows the error-popup-message "No HP all-in-one device found (those devices require a special setup).". This works, when there are really no HP devices. But it fails, wheh there are more devices set up in HP toolbox, and only ONE of them is not connected or switched on. Because the "error" string is found, when hp-toolbox starts, because it complains about the one missing HP device with such an "error". And the mistakenly produced Error-popup is not the main problem. After clicking this Error-popup away, the HP toolbox does not work any more as expected. Even with the devices connected properly. You can not get status of connected devices. When starting hp-toolbox alone, and not producing this Error-popup, hp-toolbox is working normaly and as expected. Reproducible: Always Steps to Reproduce: 1. start hp-toolbox with the supplied hp-toolbox.wrapper script, when more HP devices are configured in hp-toolbox, but one of them is disconnected. 2. See the mistakenly produced Error-popup. Click it away. 3. Try to get status of connected devices. Actual Results: mistakenly produced Error-popup. You can not get status of connected HP devices. Expected Results: Error-popup only if ALL connected HP devices fail. Status of connected HP devices should be accessible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c1 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Found By|--- |Community User InfoProvider| |rainer.klier@gmx.at Summary|hp-toolbox.wrapper script |hp-toolbox.wrapper script |mistakenly produces error |exits with error if only |about not finding HP |one of several HP device |all-in-one device |was not found --- Comment #1 from Johannes Meixner <jsmeix@suse.com> 2012-04-05 09:59:51 UTC --- Please attach your output of the hp-toolbox python script in your particular case as MIME type "text/plain" so that I get a better understanding how exactly this might be solved in hp-toolbox.wrapper. But I assume it is better to simply drop my hp-toolbox.wrapper attempt to work around issues in HPLIP's hp-toolbox and file a bug report at HPLIP upstream via http://hplipopensource.com/hplip-web/support.html to get issues fixed in the hp-toolbox python script. Those kind of workarounds never ever really work in all cases. For now you can avoid it by changing hp-toolbox.wrapper to ------------------------------------------------------------------------- ... if test -x "$( type -p hp-toolbox )" then hp-toolbox else $PopupProgram 'Cannot execute hp-toolbox.' fi ------------------------------------------------------------------------- Does it work for you after you changed hp-toolbox.wrapper this way? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c2 --- Comment #2 from Rainer Klier <rainer.klier@gmx.at> 2012-04-05 10:15:20 UTC --- (In reply to comment #1)
Please attach your output of the hp-toolbox python script in your particular case as MIME type "text/plain"
i will try. but it is really a just simple text: /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK set_interactive(1) error: Unable to communicate with device (code=12): hp:/net/HP_Color_LaserJet_2600n?ip=172.16.17.25 error: Device not found
But I assume it is better to simply drop my hp-toolbox.wrapper attempt to work around issues in HPLIP's hp-toolbox and file a bug report at HPLIP upstream via http://hplipopensource.com/hplip-web/support.html
i agree.
Those kind of workarounds never ever really work in all cases.
of course not. ;-)
For now you can avoid it by changing hp-toolbox.wrapper to ------------------------------------------------------------------------- ... if test -x "$( type -p hp-toolbox )" then hp-toolbox else $PopupProgram 'Cannot execute hp-toolbox.' fi ------------------------------------------------------------------------- Does it work for you after you changed hp-toolbox.wrapper this way?
I did it already this way, after i found out, where the problem came from. Just before i added this bug report. And yes, it works with this workaround. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c3 Rainer Klier <rainer.klier@gmx.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|rainer.klier@gmx.at | --- Comment #3 from Rainer Klier <rainer.klier@gmx.at> 2012-04-05 10:17:31 UTC --- Created an attachment (id=484981) --> (http://bugzilla.novell.com/attachment.cgi?id=484981) output of hp-toolbox python script requested attachment with output of hp-toolbox python script. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c4 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |ASSIGNED Summary|hp-toolbox.wrapper script |remove hp-toolbox.wrapper |exits with error if only |because the reason for it |one of several HP device |is no longer valid |was not found | --- Comment #4 from Johannes Meixner <jsmeix@suse.com> 2012-04-05 12:46:38 UTC --- I found out that nowadays the reason for hp-toolbox.wrapper is no longer valid, see the comment in /usr/bin/hp-toolbox.wrapper # If hp-toolbox cannot access a hplip device # then it doesn't show up on the X window system. For me (running hplip-3.11.5) hp-toolbox shows up in any case on the X window system with an explanatory message if "No Installed HP Devices Found". Therefore I can simply remove hp-toolbox.wrapper because the reason for it is no longer valid. Good to have such bug reports which trigger to check if such old workarounds are still needed! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c5 --- Comment #5 from Johannes Meixner <jsmeix@suse.com> 2012-04-05 12:54:50 UTC --- For my own information: When hp-toolbox.wrapper is removed, /usr/share/applications/hplip.desktop must be changed to "Exec=hp-toolbox". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755820 https://bugzilla.novell.com/show_bug.cgi?id=755820#c6 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Johannes Meixner <jsmeix@suse.com> 2012-04-13 13:45:10 UTC --- Fixed via openSUSE build system submitrequest 113411 for hplip in the development project "Printing" (will be forwarded to openSUSE:Factory later). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com