hp-sendfax -n option doesn't work. Would like to send fax from command line, because server is headless.

Bug #1508215 reported by Tobias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

//usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

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

 Kernel: 4.1.10-v7+ #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015 GNU/Linux
 Host: Hausserver
 Proc: 4.1.10-v7+ #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015 GNU/Linux
 Distribution: debian 8.0
 Bitness: 32 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.15.9
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for debian distro 8.0 version

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

[hplip]
version=3.15.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.15.9
html=/usr/share/doc/hplip-3.15.9
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.15.9
restricted-build=no
ui-toolkit=no
qt3=no
qt4=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hpfax:/net/Officejet_6700?ip=172.16.0.5
printer_name = Officejet_6700_fax

[installation]
date_time = 20/10/15 23:51:53
version = 3.15.9

[upgrade]
latest_available_version = 3.15.9

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.06 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.24 OK -

(xsane:1107): Gtk-WARNING **: cannot open display:
 error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - INCOMPAT 'xsane needs to be installed'
 cups CUPS - Common Unix Printing System REQUIRED 1.1 1.7.5 OK 'CUPS Scheduler is running'
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.16 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
 dbus DBus - Message bus system REQUIRED - 1.8.20 OK -

-------------------------
| General Dependencies |
-------------------------

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.1 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.1.8 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 error: pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.2 MISSING -
 python-xml Python XML libraries REQUIRED - 2.1.0 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 1.7.5 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.2 OK -
 sane-devel SANE - Scanning library development files REQUIRED - 1.0.24 OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.9 OK -
 error: pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.11.2 MISSING 'pyqt4-dbus needs to be installed'
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.19 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.9 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 1.7.5 OK -
 sane SANE - Scanning library REQUIRED - 1.0.24 OK -

---------------
| COMPILEDEP |
---------------

 libtool libtool - Library building support services REQUIRED - 2.4.2 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 4.9.2 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.0 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.15.9 OK -
 hpmudext IO-Extension REQUIRED - 3.15.9 OK -

-----------------------
| Scan Configuration |
-----------------------

 scanext Scan-SANE-Extension REQUIRED - 3.15.9 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.15.9 OK 'hpaio found in /etc/sane.d/dll.conf'

-----------------------
| Other Dependencies |
-----------------------

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/net/Officejet_6700?ip=172.16.0.5' is a Hewlett-Packard Officejet_6700 all-in-one

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

No devices found.

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

Officejet_6700
--------------
Type: Printer
Device URI: hp:/net/Officejet_6700?ip=172.16.0.5
PPD: /etc/cups/ppd/Officejet_6700.ppd
PPD Description: HP Officejet 6700, hpcups 3.15.9
Printer status: printer Officejet_6700 is idle. enabled since Tue 20 Oct 2015 22:37:53 CEST
Communication status: Good

Officejet_6700_fax
------------------
Type: Fax
Device URI: hpfax:/net/Officejet_6700?ip=172.16.0.5
PPD: /etc/cups/ppd/Officejet_6700_fax.ppd
PPD Description: HP Fax4 hpcups
Printer status: printer Officejet_6700_fax is idle. enabled since Tue 20 Oct 2015 22:45:17 CEST
Communication status: Good

--------------
| PERMISSION |
--------------

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

Missing Required Dependencies
-----------------------------
error: 'python-qt4' package is missing/incompatible
error: 'python-qt4-dbus' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible

Total Errors: 3
Total Warnings: 0

Run 'hp-doctor' command to prompt and fix the issues.

Done.

Revision history for this message
goutam (goutamkk) wrote :

Can you post us complete debug output of the command 'hp-sendfax -f < fax-number> -n <provide file path> -ldebug'

Revision history for this message
goutam (goutamkk) wrote :

hp-sendfax -ldebug -f < fax-number> -n <provide file path>'

Revision history for this message
Tobias (tfichter) wrote :

Command: hp-sendfax -f <number> -n <file>
Output:
HP Linux Imaging and Printing System (ver. 3.15.9)
PC Sendfax Utility ver. 9.0

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

error: Unable to connect to dbus session bus. org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
error: Unable to initialize dBus. PC send fax requires dBus and hp-systray support. Exiting.

Revision history for this message
Tobias (tfichter) wrote :

Command: hp-sendfax -ldebug -f <number> -n <file>
Output:
HP Linux Imaging and Printing System (ver. 3.15.9)
PC Sendfax Utility ver. 9.0

Copyright (c) 2001-15 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-sendfax[24790]: debug: getPrinterName(None, None, ['hpfax'], {'fax-type': (<built-in function gt>, 0)})
hp-sendfax[24790]: debug: Mode=2
hp-sendfax[24790]: debug: Cache miss: officejet_6700
hp-sendfax[24790]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-sendfax[24790]: debug: Searching for section [officejet_6700] in file /usr/share/hplip/data/models/models.dat
hp-sendfax[24790]: debug: Found section [officejet_6700] in file /usr/share/hplip/data/models/models.dat
hp-sendfax[24790]: debug: ['Officejet_6700_fax']
error: Unable to connect to dbus session bus. org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
error: Unable to initialize dBus. PC send fax requires dBus and hp-systray support. Exiting.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.