Bug 988529

Summary: hp-toolbox outputs errors when running as regular user
Product: [Fedora] Fedora Reporter: pgaltieri <pgaltieri>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jkoncick, jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-28 12:17:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pgaltieri 2013-07-25 19:04:43 UTC
Description of problem:
When running hp-toolbox as regular user the following errors are output

/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
mkdir: cannot create directory '/var/log/hp': Permission denied
chgrp: cannot access '/var/log/hp/tmp/': Permission denied
chmod: cannot access '/var/log/hp/tmp/': Permission denied


Version-Release number of selected component (if applicable):
3.13.6-2.fc19

How reproducible:
It occurred when I ran it for the first time after installation.

Steps to Reproduce:
1. Install hplip-gui-3.13.6-2.fc19.x86_64
2. Run hp-setup as root and create a printer
3. Run hp-toolbox as regular user

Actual results:
PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
mkdir: cannot create directory '/var/log/hp': Permission denied
chgrp: cannot access '/var/log/hp/tmp/': Permission denied
chmod: cannot access '/var/log/hp/tmp/': Permission denied

Expected results:
No error messages

Additional info:
Don't know why hp-toolbox attempts to create the directories since they are listed as part of the hplip-3.13.6-2.fc19.x86_64 package.

The first time I ran hp-toolbox I got the following messages:

HP Linux Imaging and Printing System (ver. 3.13.6)
HP Device Manager ver. 15.0

Copyright (c) 2001-13 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.

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

Copyright (c) 2001-13 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.

/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
mkdir: cannot create directory '/var/log/hp': Permission denied
chgrp: cannot access '/var/log/hp/tmp/': Permission denied
chmod: cannot access '/var/log/hp/tmp/': Permission denied

The second time I ran it I got the following:

HP Linux Imaging and Printing System (ver. 3.13.6)
HP Device Manager ver. 15.0

Copyright (c) 2001-13 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.

Note that it printed the "HP Linux Imaging and Printing System" once the second time I ran it.

Comment 1 Jaromír Končický 2013-08-27 15:19:42 UTC
I found out that these mkdir, chgrp, chmod commands, causing the error messages, are called from /usr/share/hplip/hplip_clean.sh (line 36).

Comment 2 Jaromír Končický 2013-08-28 12:17:24 UTC
Reported at upstream: https://bugs.launchpad.net/hplip/+bug/1217778

Comment 3 Jaromír Končický 2013-10-14 13:25:04 UTC
Fixed in HPLIP-3.13.10.
Upstream fix described here: https://bugs.launchpad.net/hplip/+bug/1217778/comments/2