[Pkg-hpijs-devel] Bug#483814: hplip: hp-systray doesn't like printer with hyphen/dash in name (ie "HP-K5300")

Arthur Marsh arthur.marsh at internode.on.net
Tue Jun 3 23:36:12 UTC 2008



Mark Purcell wrote, on 04/06/08 07:46:
> On Sat, 31 May 2008, Arthur Marsh wrote:
>> After setting up a new HP Officejet Pro K5300 with share name "HP-K5300"
>> without the quotes, the device manager in hp-systray shows the printer
>> with a red circle with cross in it and the message "ERROR: Device not
>> found. Please check connection and power-on device."
>>
>> I tried setting up a new printer in the device manager but it would not
>> allow me to specify a name with a hyphen or dash character "-" in it.
> 
> Arthur,
> 
> Thanks for the report.  There are a lot of issues with using non en_US 
> locales, which could also be effecting you:
> 
>> Kernel: Linux 2.6.25 (SMP w/1 CPU core; PREEMPT)
>> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/bash
> 
> Your report looks very similar to this one:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470201

Yes, I had no success finding where the hyphen character '-' was being 
prevented from being used in printer names. When the problem is fixed, 
will the changelog indicate WHERE such a block was in the source?

> 
> Can you try LC_ALL=C?
> 
> https://bugs.launchpad.net/hplip/+bug/162196 may also be relevant.

This was the report from hp-toolbox run from the command line:

amarsh04 at victoria:/usr/src/apt/archives$ hp-systray

HP Linux Imaging and Printing System (ver. 2.8.5)
System Tray Status Service ver. 0.1

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

QSettings: failed to open file '/etc/qt3/qt_plugins_3.3rc'

### Note /etc/qt3/qt_plugins_3.3rc exists but is not readable by users:
#
#   $ ls -al /etc/qt3/qt_plugins_3.3rc
#   -rw-r----- 1 root root 1051 May 31 20:21 /etc/qt3/qt_plugins_3.3rc
### (mentioned in Debian bug report #484037)

HP Linux Imaging and Printing System (ver. 2.8.5)
HP Device Manager ver. 14.0

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

QSettings: failed to open file '/etc/qt3/qt_plugins_3.3rc'
ERROR:dbus.proxies:Introspect error on :1.2:/com/hplip/StatusService: 
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did 
not receive a reply. Possible causes include: the remote application did 
not send a reply, the message bus security policy blocked the reply, the 
reply timeout expired, or the network connection was broken.
error: Unable to communicate with device (code=12): 
hp:/usb/Officejet_Pro_K5300?serial=MY742380S7
warning: Device not found
amarsh04 at victoria:/usr/src/apt/archives$ locale
LANG=en_AU.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


> 
> Also could I ask you to run `hp-check -r` and report the results.

While hp-systray was run with C locale above, I did the following in 
another terminal window:

amarsh04 at victoria:~$ export LC_ALL=C
amarsh04 at victoria:~$ hp-check -r

HP Linux Imaging and Printing System (ver. 2.8.5)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 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: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before 
compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper 
dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied 
tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time 
dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...
warning: Invalid ppd_dir value: None

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux victoria 2.6.25 #1 SMP PREEMPT Sat May 31 16:33:53 CST 2008 i686 
GNU/Linux

Distribution:
debian 4.0r3

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
error: SIP not installed or version not found.

###
#
# I don't understand this message about SIP as python-sip is not listed 
  # as a dependancy of hplip and anyway I have the following installed:
#
# ii  python-sip4                                  4.7.4-1 
                   # Python/C++ bindings generator runtime librar
# ii  python-sip4-dev                              4.7.4-1 
                   # Python/C++ bindings generator development fi
# ii  sip4                                         4.7.4-1 
                   # Python/C++ bindings generator
#
#
###

Checking for CUPS...
Status: scheduler is running
Version: 1.3.7
error_log is set to level: warn
note: For troubleshooting printing issues, it is best to have the CUPS 
'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file 
/etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 
'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on 
how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to 
the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4


------------------------
| RUNTIME DEPENDENCIES |
------------------------


Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language 
interpreter and previewer...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for 
commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for 
Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax 
functionality...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some 
HPLIP functionality may not function properly.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some 
HPLIP functionality may not function properly.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 2.8.5 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.8.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.5.23


-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

[non-HP printers removed]

HP-K5300
--------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Officejet_Pro_K5300?serial=MY742380S7
PPD: /etc/cups/ppd/HP-K5300.ppd
PPD Description: HP OfficeJet Pro K5300 Foomatic/hpijs, hpijs 2.8.4.2 - 
HPLIP 2.8.4
Printer status: printer HP-K5300 is idle.  enabled since Tue Jun  3 
18:20:58 2008
ERROR:dbus.proxies:Introspect error on :1.2:/com/hplip/StatusService: 
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did 
not receive a reply. Possible causes include: the remote application did 
not send a reply, the message bus security policy blocked the reply, the 
reply timeout expired, or the network connection was broken.
error: Unable to communicate with device (code=12): 
hp:/usb/Officejet_Pro_K5300?serial=MY742380S7
error: Device not found


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be 
added to /etc/sane.d/dll.conf).

Checking output of 'scanimage -L'...
error: scanimage not found.

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


-----------------
| USB I/O SETUP |
-----------------


Checking for permissions of USB attached printers...

-----------
| SUMMARY |
-----------

error: 7 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.
amarsh04 at victoria:~$ locale
LANG=en_AU.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


Regards,

Arthur.





More information about the Pkg-hpijs-devel mailing list