PyOS_InputHook n GTk needed for hp-systray

Asked by L. P. Luigi Espenlaub

yOS_InputHook and GTk needed for hp-systray but I can find neither to download and install.
not listed in sematic package manager
PyOS_InputHook all I can find is that it is depreciated in python.

hplip auto install wants it in 19.12 and 20.02
RE-STARTING HP_SYSTRAY
----------------------
HP Linux Imaging and Printing System (ver. 3.19.12)
System Tray Status Service ver. 2.0
. . .

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
No systemtrayicon available
error: No system tray detected on this system. Unable to start, exiting.

What gets me is set_interactive seems to be there as an alternative to the systemtray, but it needs the system tray and dies. So why even bother?

I am 76, a vet, on Lunix because I have experienced the secretive pateranlistic microsoft Windows and prefer an operating system that has people I can write to and who write back.
What I have is two pc's one for my wife and a second one for me. an ethernet connection between the two and the web. on one pc an HP 6800 searies that can only print black connected by usb and used mostly for scanning. On the ethernet a HP 7855 that was printing just fine untill two weeks ago.
I have been learning system admin on the job and after going on the 6th day on this I am feeling totally discouraged. Brain trauma froum years ago does not help. I learn best from examples and will do all I can to cooperate with any one who can help.

With that Here is what what I have found and done so far.

----- Why 19.12
Trying to reinstall hplip because after working fine with hplip 3.18.4 on Ubuntu 18.04 for over a year.
 suddenly two, almost three weeks ago our HP Envy Photo 7855, on our ethernet network
started being fed documents, especially pdf's, so slow they time out after about 2 minutes only printing four lines
test pages from CUPS, the same slow time out cancel notice and only 4 to 6 lines printed.

printing this plain text from Kate to
ENVY_Photo_7800_via_net [lan] location 192.168.200.201.
45 seconds for printer to activate
70 seconds to eject a blank piece of paper
Printer screen "Canceling." took 60 seconds before disappearing.
Ubuntu devices Printers list indicates job still "pending"
    had to be cancelled on that screen.

Tried 20.02 and the list of missing dependencies was astounding.
no systemtry either
Although the hp-systray program is there, because hp-systray does not return a
"command not found" notice. so stepped back to 19.12 hoping to find better dependencies support.

I am learin

I assume a working hp-systray is important to sending documents to print.
--------

When I try running hp-systray manually
by
~/Downloads$ hp-systray
-------------------------------------------------
HP Linux Imaging and Printing System (ver. 3.19.12)
System Tray Status Service ver. 2.0

. . .

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
No systemtrayicon available

HP Linux Imaging and Printing System (ver. 3.19.12)
HPLIP upgrade latest version ver. 1.0

Copyright (c) 2001-18 HP Development Company, LP
. . .
error: No system tray detected on this system. Unable to start, exiting.
-------------------------------------------------------------

Somewhere the advice, hplip-gui nessary

So ran
~/Downloads$ sudo apt-get install hplip-gui
No errors so

ran again
~/Downloads$ hp-systray

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

Copyright (c) 2001-15 HP Development Company, LP
. . .

No systemtrayicon available

HP Linux Imaging and Printing System (ver. 3.19.12)
HPLIP upgrade latest version ver. 1.0

Copyright (c) 2001-15 HP Development Company, LP
[seems it checked for and called a later version]
. . .

error: No system tray detected on this system. Unable to start, exiting.
--------------------------------------------
Same result. But did not get these lines
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
    set_interactive(1)
My conclusion is that hplip-gui provides the depreciated PyOS_InputHook, but that is not enough to make the system tray run.

printing this from Kate to
ENVY_Photo_7800_via_net [lan] location 192.168.200.201.
45 seconds for printer to activate
70 seconds to eject a blank piece of paper
Printer screen "Canceling." took 60 seconds before disappearing.
Ubuntu devices Printers list indicates job still "pending"
    had to be cancelled on that screen.

Undoubtly the next question is what does hp-doctor have to say.
The highlights

~/Downloads$ hp-doctor

HP Linux Imaging and Printing System (ver. 3.19.12)
Self Diagnse Utility and Healing Utility ver. 1.0

Copyright (c) 2001-15 HP Development Company, LP
. . .
stuttered, printing the Copyright twice.
Checking for Deprecated items....
error: This distro (i.e ubuntu 18.04) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y

OK, Why I have not upgraded to 20.04
Having read problems people are having with Ubuntu 20.04 I was hoping to give it at least four more months to get settled. Right now dealing with upgrading while in the middle of several projects with looming deadlines has me preferring to remain with the devil I know. Unless you inform me 18.04 LTS is considered dead long before its official death on April 2023.
Leads me to wonder what hplip knows about 18.04 it is not telling.

Back to hp-doctor

HP Linux Imaging and Printing System (ver. 3.19.12)
Latest version of HPLIP is already installed.
OK, 3.20.9 is not the latest? Con-Fusd!
Checking for Dependencies....
warning: 12-18.04 version is not supported. Using 12-17.04 versions dependencies to verify and install...
Does this mean I have to go back all the way to hplip 3.17.4?
   [that is two major hplip's back, and more that 15 minor updates back from 3.20.02 which already has 4 minor updates already]

 Kernel: 5.4.0-53-generic #59~18.04.1-Ubuntu SMP Wed Oct 21 12:14:56 UTC 2020 GNU/Linux
 Host: A-O_HP110
 Proc: 5.4.0-53-generic #59~18.04.1-Ubuntu SMP Wed Oct 21 12:14:56 UTC 2020 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit
 HPLIP-Version: HPLIP 3.19.12
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 12 distro 18.04 version

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1605136771
pending_upgrade_time = 0
latest_available_version = 3.17.10 [Do not understand!]

[installation]
date_time = 11/11/2020 20:34:54
version = 3.19.12

ENVY_Photo_7800_fax
-------------------
Type: Fax
Device URI: hpfax:/net/ENVY_Photo_7800_series?ip=192.168.200.201
PPD: /etc/cups/ppd/ENVY_Photo_7800_fax.ppd
warning: Failed to read /etc/cups/ppd/ENVY_Photo_7800_fax.ppd ppd file
-------------------------
[Confirmed the file is there to be read]
luigiwriter@A-O_HP110:/etc/cups/ppd$ ls
ENVY_Photo_7800_fax.ppd ENVY_Photo_7800_fax.ppd.O ENVY_Photo_7800_via_net.ppd PDF.ppd PDF.ppd.O
-------------------------------
PPD Description:
Printer status: printer ENVY_Photo_7800_fax is idle. enabled since Sun 01 Nov 2020 01:59:13 AM EDT
error: Communication status: Failed

ENVY_Photo_7800_via_net
-----------------------
Type: Printer
Device URI: hp:/net/ENVY_Photo_7800_series?ip=192.168.200.201
PPD: /etc/cups/ppd/ENVY_Photo_7800_via_net.ppd
warning: Failed to read /etc/cups/ppd/ENVY_Photo_7800_via_net.ppd ppd file
PPD Description:
Printer reason unknownr ENVY_Photo_7800_via_net disabled since Wed 11 Nov 2020 08:25:46 PM EST -
error: Unable to communicate with device (code=12): hp:/net/ENVY_Photo_7800_series?ip=192.168.200.201
error: unable to open channel
error: Communication status: Failed

luigiwriter@A-O_HP110:/etc/cups/ppd$ ping 192.168.200.201
PING 192.168.200.201 (192.168.200.201) 56(84) bytes of data.
64 bytes from 192.168.200.201: icmp_seq=2 ttl=64 time=0.734 ms
rtt min/avg/max/mdev = 0.718/0.733/0.748/0.025 ms
[Ping found it, why hplip cant?]

Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/ENVY_Photo_7800_fax.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/ENVY_Photo_7800_fax.ppd
warning: Could not complete Queue(s) configuration check
[Again the ppd files are there, at the address used.]

Checking for Printer Status....
error: 'ENVY_Photo_7800_fax' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor
error: 'ENVY_Photo_7800_via_net' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor
[Printer answered the ping, and it is on.]

tried http://locahoast:631/
cups is already the newest version (2.2.7-1ubuntu2.8).
sent test page to ENVY_Photo_7800_via_net
never arrived

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
L. P. Luigi Espenlaub (luigiwriter2) said :
#1

Now that I look at it the title is misleading. I apologize
It should be
Printing times out, blank or partial page only.

That is only part of it but the best this addled brain can do at the moment.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.