hplip_clean.sh cannot access /var/log/hp/ and produces error messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Unassigned | ||
Fedora |
Won't Fix
|
Undecided
|
Bug Description
This bug was already reported on Red Hat Bugzilla: https:/
I investigated it a bit and found out that in "ui4/systemtray.py" there is called shell script "/usr/share/
I solved this problem by adding a check whether script may access this directory:
# First check if the script may write to /var/log/hp/ directory
if ! [ -w /var/log/hp/ ]; then
exit 0
fi
This suppresses the error messages but doesn't solve the actual problem and old logs are not erased as intended by the script.
Do you have any better solution for this or I can just add the check?
Changed in hplip: | |
status: | New → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in fedora: | |
importance: | Unknown → Undecided |
status: | Unknown → Won't Fix |
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 ve(1)
set_interacti
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: 3.13.6- 2.fc19. x86_64
1. Install hplip-gui-
2. Run hp-setup as root and create a printer
3. Run hp-toolbox as regular user
Actual results: ve(1)
PyOS_InputHook is not available for interactive use of PyGTK
set_interacti
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: 13.6-2. fc19.x86_ 64 package.
Don't know why hp-toolbox attempts to create the directories since they are listed as part of the hplip-3.
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 ve(1)
set_interacti
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.