LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-13-2009, 09:09 PM   #1
Ole Juul
Member
 
Registered: Sep 2008
Location: Coalmont, Canada
Distribution: Kubuntu
Posts: 48
Blog Entries: 1

Rep: Reputation: 15
dbus and HPLIP


I recently installed HP Linux Imaging and Printing System (ver. 2.8.12) in Kubuntu 6.04 and am able to print, but not able to see "status updates" in HP-toolbox. This is not critical but I don't like having error messages.

When I open HP-toolbox I get the following error:

Code:
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 2.8.12)
HP Device Manager ver. 15.0
--(snip Copyright etc.)--
error: Unable to load dbus - Automatic status updates in HPLIP Device Manager will be disabled.
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode:  145
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode:  145
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
ole@SCO:~$
I have installed python-dbus and ALL other dbus related programs which are available through Adept except dev and doc. Any suggestions?
 
Old 01-13-2009, 09:50 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Have you try it as root.Maybe it's looking for the d-bus in the wrong path.Check hplips config files.Did you run hp-setup?
 
Old 01-13-2009, 11:21 PM   #3
Ole Juul
Member
 
Registered: Sep 2008
Location: Coalmont, Canada
Distribution: Kubuntu
Posts: 48

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
Have you try it as root.Maybe it's looking for the d-bus in the wrong path.Check hplips config files.Did you run hp-setup?
Thanks for the suggestions, alan_ri. I just ran hp-setup as root (which is actually the only way possible), and it gave me another error message:
Code:
warning: python-dbus not installed.
warning: No display found.
error: hp-setup requires GUI support (try running with --qt4). Also, try using interactive (-i) mode.
I don't know what qt4 is, and running with interactive just says I have another printer by that name installed, which of course I have because I've done this before and it prints OK.

I restarted dbus, but get the same results. The problem is getting HP-setup to understand that d-bus is installed.

What should I look for in hplips config?
Here are some possibly pertinent lines from /etc/hp/hplip.conf:
Code:
foomatic-drv-install = no
dbus-build = no
BTW, I also installed the same printer on another machine which is running Kubuntu 8.04 and it works fine there.
 
Old 01-14-2009, 08:55 AM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Post the output of hp-check -t,and install d-bus dev.

Last edited by alan_ri; 01-14-2009 at 09:01 AM.
 
Old 01-14-2009, 05:13 PM   #5
Ole Juul
Member
 
Registered: Sep 2008
Location: Coalmont, Canada
Distribution: Kubuntu
Posts: 48

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
Post the output of hp-check -t,and install d-bus dev.
OK, all dbus Aptitude entries except documentaion are installed.
I ran hp-check -t and found two installation suggestions there.
1. python-reportlab
2. libsane
I then did a "sudo aptitude install --assume-yes" on both of those and the results for both was "0 packages upgraded, 0 newly installed, 0 to remove ... Need to get 0B of archives."

The output of hp-check -t is quite long so I snipped some parts;

Code:
hp-check[25265]: info: :
Initializing. Please wait...
Ubuntu
6.06
scheduler is running
1.2.2
Linux SCO 2.6.15-52-386 #1 PREEMPT Wed Oct 22 18:48:55 UTC 2008 i686 GNU/Linux
--------snip----------------------------

HPOJ running?
hp-check[25265]: info: :No, HPOJ is not running (OK).
hp-check[25265]: info: :
hp-check[25265]: info: :Checking Python version...
hp-check[25265]: info: :OK, version 2.4.3 installed
hp-check[25265]: info: :
hp-check[25265]: info: :Checking PyQt 3.x version...
hp-check[25265]: info: :OK, version 3.15 installed.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking PyQt 4.x version...
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for CUPS...
hp-check[25265]: info: :Status: scheduler is running
hp-check[25265]: info: :Version: 1.2.2
hp-check[25265]: info: :error_log is set to level: warn

---------------snip--------------

hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dbus/python-dbus...
hp-check[25265]: info: :dbus daemon is running.
hp-check[25265]: info: :python-dbus version: 0.51.0
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups - Common Unix Printing System...

---------------snip--------------

hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dbus/python-dbus...
hp-check[25265]: info: :dbus daemon is running.
hp-check[25265]: info: :python-dbus version: 0.51.0
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[25265]: info: :------------------------------------
hp-check[25265]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups-ddk - CUPS driver development kit...

warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: cups-devel- Common Unix Printing System development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: dbus - Message bus system...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libtool - Library building support services...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: libusb - USB library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: python-ctypes - A foreign function library for Python...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: python-dbus - Python bindings for dbus...

error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: python-devel - Python development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Python XML libraries...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: Reportlab - PDF library for Python...

warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[25265]: info: :To install this dependency, execute this command:
hp-check[25265]: info: :sudo aptitude install --assume-yes python-reportlab hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: SANE - Scanning library...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: scanimage - Shell scanning program...

warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP fu
nctionality may not function properly.
hp-check[25265]: info: :To install this dependency, execute this command:
hp-check[25265]: info: :sudo aptitude install --assume-yes libsane
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :| HPLIP INSTALLATION |
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :Currently installed HPLIP version...
hp-check[25265]: info: :HPLIP 2.8.12 currently installed in '/usr/share/hplip'
.
hp-check[25265]: info: :
hp-check[25265]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[25265]: info: :[dirs]
run = /var/run
cupsbackend = /usr/lib/cups/backend
ppd = /usr/share/ppd/hpijs/HP
doc = /usr/share/doc/hplip-2.8.12
drv = /usr/share/cups/drv/hp
ppdbase = /usr/share/ppd/hpijs
home = /usr/share/hplip
cupsfilter = /usr/lib/cups/filter
icon = /usr/share/applications

[last_used]
device_uri = hp:/net/Officejet_Pro_K8600?ip=192.168.1.100

[hplip]
version = 2.8.12

[configure]
foomatic-rip-hplip-install = yes
qt4 = no
foomatic-ppd-install = yes
doc-build = yes
qt3 = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.12.26
foomatic-drv-install = no
pp-build = yes
ui-toolkit = qt3
scanner-build = yes
network-build = yes
restricted-build = no
dbus-build = no
shadow-build = no
fax-build = no


hp-check[25265]: info: :
hp-check[25265]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[25265]: info: :[last_used]
device_uri = hp:/net/Officejet_Pro_K8600?ip=192.168.1.100

[installation]
version = 2.8.12.26
date_time = 01/14/09 14:13:43

---------------snip--------

hp-check[25265]: info: :Officejet_Pro_K8600
hp-check[25265]: info: :-------------------
hp-check[25265]: info: :Type: Printer
hp-check[25265]: info: :Installed in HPLIP?: Yes, using the hp: CUPS backend.
hp-check[25265]: info: :Device URI: hp:/net/Officejet_Pro_K8600?ip=192.168.1.1
00
hp-check[25265]: info: :PPD: /etc/cups/ppd/Officejet_Pro_K8600.ppd
hp-check[25265]: info: :PPD Description: HP Officejet Pro k8600 Foomatic/hpijs
, hpijs 2.8.12.26
hp-check[25265]: info: :Printer status: printer Officejet_Pro_K8600 is idle.
enabled since Sun 04 Jan 2009 10:32:11 PM PST
hp-check[25265]: info: :Communication status: Good


hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :| SANE CONFIGURATION |
hp-check[25265]: info: :----------------------
hp-check[25265]: info: :
hp-check[25265]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[25265]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking output of 'scanimage -L'...
error: scanimage not found.
hp-check[25265]: info: :
hp-check[25265]: info: :---------------------
hp-check[25265]: info: :| PYTHON EXTENSIONS |
hp-check[25265]: info: :---------------------
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'cupsext' CUPS extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'pcardext' Photocard extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'hpmudext' I/O extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :Checking 'scanext' SANE scanning extension...
hp-check[25265]: info: :OK, found.
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :-----------------
hp-check[25265]: info: :| USB I/O SETUP |
hp-check[25265]: info: :-----------------
hp-check[25265]: info: :
hp-check[25265]: info: :
hp-check[25265]: info: :Checking for permissions of USB attached printers...
hp-check[25265]: info: :

hp-check[25265]: info: :-----------
hp-check[25265]: info: :| SUMMARY |
hp-check[25265]: info: :-----------
hp-check[25265]: info: :
error: 6 errors and/or warnings.
hp-check[25265]: info: :
hp-check[25265]: info: :Summary of needed commands to run to satisfy missing dependencies:
hp-check[25265]: info: :sudo aptitude install --assume-yes python-reportlab
hp-check[25265]: info: :sudo aptitude install --assume-yes libsane
hp-check[25265]: info: :
hp-check[25265]: info: :Please refer to the installation instructions at:
hp-check[25265]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[25265]: info: :
hp-check[25265]: info: :Done.
Thanks alan_ri for looking at this.
 
Old 01-14-2009, 08:17 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
apt-get install python-reportlab
apt-get install libsane.
Try that.
Also install Qt4 and PyQt4.I think there's the problem.
 
Old 01-14-2009, 10:09 PM   #7
Ole Juul
Member
 
Registered: Sep 2008
Location: Coalmont, Canada
Distribution: Kubuntu
Posts: 48

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
apt-get install python-reportlab
apt-get install libsane.
Try that.
Also install Qt4 and PyQt4.I think there's the problem.
I just uninstalled and reinstalled hplip and came to the same conslusion. However python-reportlab will not uninstall (nor purge) properly and it will not install properly either. Here is what Aptitude says:
Code:
There was an error committing changes. There was possibly a problem
downloading some packages, or else the commit would break packages.
The HP installation also reports optional missing dependencies but it cannot install them because:
Code:
warning: This installer cannot install 'cups-ddk' for your distro/OS
and/or version. A package manager 'adept_notifier' appears to be running.
Please quit the package manager and press enter to continue (i=ignore, r=retry*, f=force, q=quit)
Unfortunately killing "adept_notifier" makes it impossible to install anything. I tried it.

After reading your suggestion just now, I installed libsane-extras, and libsane-extras-dev as well as lsb-qt4. There is no PyQt4, or similar, available. Aptitude reports the same as above (There was an error etc) but they still installed.

Then I ran the install again, but it still couldn't do those missing dependecies. After throughly breaking the system I am now back to where I was and I can print again.

It is unfortunate that I still cannot get full functionality, but perhaps it would be safer to leave things as they are and hope for a better situation when I upgrade to 8.04. ... unless you have a better idea.

Cheers,
Ole
 
Old 01-14-2009, 10:53 PM   #8
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Ok,we will do this from the begining. If you still have the source tar ball go into the source directory--for example;
Code:
cd ~/Desktop/hplip-2.8.12
then execute this command to remove/uninstall HPLIP:
Code:
sudo make uninstall
then run
Code:
sudo rm -rf /usr/share/hplip
then run
Code:
sudo apt-get update
then
Code:
sudo aptitude install --assume-yes libcupsys2 libcupsys2-dev cupsys-bsd libdbus-1-dev build-essential gs-esp openssl libjpeg62-dev libsnmp9-dev build-essential libtool libusb-dev build-essential python-imaging python-qt3 python-ctypes python-dbus python2.5-dev python python python-reportlab libsane libsane-dev libsane xsane
then go here and download the tar package to your desktop.
Then
Code:
cd ~/Desktop
Code:
tar xvfz hplip-2.8.12.tar.gz
Code:
cd hplip-2.8.12
Code:
./configure --with-hpppddir=/usr/share/ppd/hpijs/HP --prefix=/usr --disable-qt4 --enable-foomatic-ppd-install --enable-doc-build --enable-qt3 --enable-gui-build --disable-foomatic-drv-install --disable-pp-build --enable-network-build --enable-dbus-build --disable-hpijs-only-build --enable-scan-build --enable-fax-build
Code:
make
Code:
sudo python ./installer/fix_symlink.py
Code:
sudo make install
Reboot.
 
Old 01-15-2009, 02:03 AM   #9
Ole Juul
Member
 
Registered: Sep 2008
Location: Coalmont, Canada
Distribution: Kubuntu
Posts: 48

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thankyou for all that work! I tried it several times and it doesn't look good. My feeling is that there are a number changes since the release of my old 6.04 that have left me in the dust. Some things have broken and the depositories are not right any more. I know they should be, but the problem here seems to indicate otherwise. Unfortunately I don't know enough about debugging this situation to file any bug report.

Your suggestions simply broke the printing system every time, and to bring it back I had to run the hplip-2.8.12.run automatic script. That works every time (fortunately) but leaves me in the same situation.

In case it is of interest, here are some of the errors I encountered:

Code:
Failed to fetch http://people.ubuntu.com/~doko/OOo2/./Packages.gz 404 Not Found
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
------
- Creating/updating hplip user account...
 * Starting HP Linux Printing and Imaging System
invoke-rc.d: initscript hplip, action "start" failed.
dpkg: error processing hplip (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 hplip
-----
make: Nothing to be done for `all'.
-----
sudo python ./installer/fix_symlink.py
python: can't open file './installer/fix_symlink.py': [Errno 2] No such file or directory
I have now spent many hours on this, and I am afraid that despite your generous help, it has been for nothing. I am not well and don't feel that I have the energy to continue. After a number of years of not being able to print in Linux (and I won't use MSwindows) I should be grateful that I can now. Perhaps some time in the future Linux will be able to print from every computer, but I don't have much hope and am willing to accept that situation. For me to want to have full functionality is simply asking too much and perhaps even a little arrogant. I fear that maybe I shouldn't have asked for help in the first place as I am getting quite tired and need to rest. Thankyou very much for your generous help.
 
Old 01-15-2009, 04:05 AM   #10
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
No problem,just please upgrade your distribution,it should work then and you'll have a better support overall.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dbus "rm /var/run/dbus/Desktop can't remove..." longus Slackware 6 12-15-2008 03:33 AM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-08-2008 11:23 PM
Hplip echoes73 Linux - Hardware 5 08-10-2008 04:14 PM
HPLIP and HPOJ ccin1492 Linux - Hardware 7 01-02-2007 12:00 PM
Hplip thoyyib Linux - Hardware 1 12-01-2005 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration