#1143113 hplip: hp-sendfax, Python problems

Package:
hplip
Source:
hplip
Description:
HP Linux Printing and Imaging System (HPLIP)
Submitter:
Stefano Callegari
Date:
2026-07-30 14:49:02 UTC
Severity:
normal
#1143113#5
Date:
2026-07-30 14:46:37 UTC
From:
To:
Dear Maintainer,

I have been many problems with this release:

- a wrong public key that avoid to install the plugin (solved by download
  it from HP and import with gpg --homedir ~/.hplip/.gnupg --import
  hplip-publickey.asc);
- bad permissions for ~/.hplip

After I have solved those up, both scanner and printer seem to work, but the fax will not.

[...]
~ <bash> $ hp-sendfax -ldebug -n -f0001234567 fax_test.ps

HP Linux Imaging and Printing System (ver. 3.26.4)
PC Sendfax Utility ver. 9.0

Copyright (c) 2001-18 HP 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[80762]: debug: getPrinterName(None, None, ['hpfax'], {'fax-type': (<built-in function gt>, 0)})
hp-sendfax[80762]: debug: Mode=2
hp-sendfax[80762]: debug: Cache miss: hp_laserjet_m2727nf_mfp
hp-sendfax[80762]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-sendfax[80762]: debug: Searching for section [hp_laserjet_m2727nf_mfp] in file /usr/share/hplip/data/models/models.dat
hp-sendfax[80762]: debug: Found section [hp_laserjet_m2727nf_mfp] in file /usr/share/hplip/data/models/models.dat
hp-sendfax[80762]: debug: ['HP_LaserJet_M2727nf_MFP_fax']
hp-sendfax[80762]: debug: Faxnum list = ['0001234567']
hp-sendfax[80762]: debug: Unique list=['0001234567']
hp-sendfax[80762]: debug: Group list = []
hp-sendfax[80762]: debug: Unique list=[]
hp-sendfax[80762]: debug: Recipient list = []
hp-sendfax[80762]: debug: Unique list=[]
hp-sendfax[80762]: debug: Number=0001234567
hp-sendfax[80762]: debug: Phone num list = [{'fax': '0001234567', 'name': 'Unknown'}]
hp-sendfax[80762]: debug: /home/stefano/fax_test.ps
hp-sendfax[80762]: debug: application/postscript
Using fax HP_LaserJet_M2727nf_MFP_fax (hpfax:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201)
hp-sendfax[80762]: debug: Locking: /home/stefano/.hplip/hp-sendfax-HP_LaserJet_M2727nf_MFP_fax.lock
hp-sendfax[80762]: debug: /home/stefano/fax_test.ps
hp-sendfax[80762]: debug: Printer state = 3
hp-sendfax[80762]: debug: Printer name = HP_LaserJet_M2727nf_MFP_fax file = /home/stefano/fax_test.ps

Rendering file '/home/stefano/fax_test.ps' (job 16)...
hp-sendfax[80762]: debug: Job ID=16
hp-sendfax[80762]: debug: Waiting for fax...
hp-sendfax[80762]: debug: [dbus.String('hpfax:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201'), dbus.String(''), dbus.Int32(0), dbus.String('stefano'), dbus.Int32(16), dbus.String(''), dbus.Double(0.0), dbus.String('')]

hp-sendfax[80762]: debug: Waiting for fax...
hp-sendfax[80762]: debug: [dbus.String('hpfax:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201'), dbus.String('HP_LaserJet_M2727nf_MFP_fax'), dbus.Int32(8000), dbus.String('stefano'), dbus.Int32(16), dbus.String('fax_test.ps'), dbus.Double(1785419617.291314), dbus.String('/tmp/hpfax-ajs84m2m')]
/tmp/hpfax-ajs84m2m
hp-sendfax[80762]: debug: Fax file=/tmp/hpfax-ajs84m2m
hp-sendfax[80762]: debug: Magic=b'hplip_g3' Ver=1 Pages=1 hDPI=300 vDPI=300 Size=2 Res=1 Enc=99
hp-sendfax[80762]: debug:
Checking device state...
hp-sendfax[80762]: debug: fax-type=4
hp-sendfax[80762]: debug: File list:
hp-sendfax[80762]: debug: ('/tmp/hpfax-ajs84m2m', 'application/postscript', '', dbus.String('fax_test.ps'), 1)

Sending fax...
hp-sendfax[80762]: debug: JobId: 666170fa-6b5a-4cab-aa4a-2528f74d1ec6
hp-sendfax[80762]: debug: STATE=(30, 0, 0)
hp-sendfax[80762]: debug: ******************** State: Get sender info
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.14/threading.py", line 1082, in _bootstrap_inner
    self._context.run(self.run)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/share/hplip/fax/soapfax.py", line 309, in run
    self.sender_name = self.dev.station_name
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/fax/soapfax.py", line 152, in getStationName
    self.getEWSUrl("/hp/device/settings_fax_setup_wizard.xml", stream)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/device.py", line 2531, in getEWSUrl
    f = opener.open_hp(url2, data)
  File "/usr/share/hplip/base/device.py", line 2696, in open_hp
    bus = match_obj.group(1) or ''
          ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

[...]

the job is showed in HP device manager, but nothing else: I must to press
ctrl+C. It's the same if I use the GUI, I must cancel the job.

Maybe it's a configuration problem?
[...]
~ <bash> $ hp-faxsetup

HP Linux Imaging and Printing System (ver. 3.26.4)
Fax Device Setup Utility ver. 0.1

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

Traceback (most recent call last):
  File "/usr/bin/hp-faxsetup", line 79, in <module>
    dlg = ui.FaxSetupDialog(None, device_uri)
  File "/usr/share/hplip/ui5/faxsetupdialog.py", line 151, in __init__
    self.initUi()
    ~~~~~~~~~~~^^
  File "/usr/share/hplip/ui5/faxsetupdialog.py", line 165, in initUi
    self.SaveBtn.clicked.connect(self.SaveBtn_Clicked)
    ^^^^^^^^^^^^
AttributeError: 'FaxSetupDialog' object has no attribute 'SaveBtn'
[...]

Again, If I try to use the GUI to setup the fax, it crashes.

If I ask to hp-doctor, after an output like hp-check it crashes with these
lines (hp-doctor should not be run as root/superuser)
[...]
ENTER SUDO PASSWORD
-------------------
Please enter the sudoer (stefano)'s password:


Checking Permissions....


Checking for Configured Queues....
Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 328, in <module>
    queues.main_function(dep.core.passwordObj, MODE,ui_toolkit, False, DEVICE_URI)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/queues.py", line 337, in main_function
    mapofDevices,status = parseQueues(mode)
                          ~~~~~~~~~~~^^^^^^
  File "/usr/share/hplip/base/queues.py", line 114, in parseQueues
    if device_uri.startswith("cups-pdf:/"):
       ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
[...]

I have checked if I have missing some Python libraries, but don't seems.

The multifunctions has sent fax before and the line is ok (the destination
number in the test above is a fake).

I have tried to clean ~/.hplip, purge and reinstall hplip and cups.

The "missing" or "incompat" in hp-check (as hp-doctor too) have no sense
(cups is up and why I need *.dev or qt4 packages?) and however they are
deb.

Thanks

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

 Kernel: 7.1.5+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.1.5-1 (2026-07-27) GNU/Linux
 Host: G5045
 Proc: 7.1.5+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.1.5-1 (2026-07-27) GNU/Linux
 Distribution: debian n/a
 Bitness: 64 bit
----------------------- | HPLIP CONFIGURATION | ----------------------- HPLIP-Version: HPLIP 3.26.4 HPLIP-Home: /usr/share/hplip warning: HPLIP-Installation: Auto installation is not supported for debian distro n/a version Current contents of '/etc/hp/hplip.conf' file: # hplip.conf. Generated from hplip.conf.in by configure. [hplip] version=3.26.4 [dirs] home=/usr/share/hplip run=/var/run ppd=/usr/share/ppd/hplip/HP ppdbase=/usr/share/ppd/hplip doc=/usr/share/doc/hplip html=/usr/share/doc/hplip-doc icon=no cupsbackend=/usr/lib/cups/backend cupsfilter=/usr/lib/cups/filter drv=/usr/share/cups/drv bin=/usr/bin apparmor=/etc/apparmor.d # 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=yes foomatic-drv-install=yes foomatic-ppd-install=no foomatic-rip-hplip-install=no hpcups-install=yes cups-drv-install=yes cups-ppd-install=no internal-tag=3.26.4 restricted-build=no ui-toolkit=qt5 qt3=no qt4=no qt5=yes policy-kit=yes lite-build=no udev_sysfs_rules=no hpcups-only-build=no hpijs-only-build=no apparmor_build=no class-driver=no Current contents of '/var/lib/hp/hplip.state' file: [plugin] installed = 1 eula = 1 version = 3.26.4 Current contents of '~/.hplip/hplip.conf' file: [commands] scan = /usr/bin/simple-scan %SANE_URI% [fax] email_address = voice_phone = [installation] date_time = 07/30/26 12:22:20 version = 3.26.4 [last_used] device_uri = "hpfax:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201" printer_name = HP_LaserJet_M2727nf_MFP_fax working_dir = /home/stefano/Scaricati/hplip-3.26.4-plugin.run [polling] device_list = enable = false interval = 5 [refresh] enable = false rate = 30 type = 1 [settings] systray_messages = 2 systray_visible = 1 [upgrade] last_upgraded_time = 1785172324 notify_upgrade = true pending_upgrade_time = 0 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
------------------------- | External Dependencies | ------------------------- error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running' gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 10.07.1 OK - xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK - scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.2.1 OK - dbus DBus - Message bus system REQUIRED - 1.16.2 OK - policykit PolicyKit - Administrative policy framework OPTIONAL - 127 OK - network network -wget OPTIONAL - 1.25.0 OK - avahi-utils avahi-utils OPTIONAL - 0.8 OK -
------------------------ | General Dependencies | ------------------------ error: libjpeg libjpeg - JPEG library REQUIRED - - MISSING 'libjpeg needs to be installed' error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed' error: cups-image CUPS image - CUPS image development files REQUIRED - - MISSING 'cups-image needs to be installed' libpthread libpthread - POSIX threads library REQUIRED - b'2.42' OK - error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed' sane SANE - Scanning library REQUIRED - - OK - error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed' error: libavahi-dev libavahi-dev REQUIRED - - MISSING 'libavahi-dev needs to be installed' error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed' libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 3.6.3 OK - python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.14.6 OK - python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK - error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed' error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed' python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.4.0 OK - python3-xml Python XML libraries REQUIRED - 2.8.2 OK - error: python3-devel Python devel - Python development files REQUIRED 2.2 3.14.6 MISSING 'python3-devel needs to be installed' python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 12.3.0 OK - python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 4.5.1 OK -
-------------- | COMPILEDEP | -------------- libtool libtool - Library building support services REQUIRED - 2.5.4 OK - gcc gcc - GNU Project C and C++ Compiler REQUIRED - 15.3.0 OK - make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.4.1 OK -
--------------------- | Python Extentions | --------------------- cupsext CUPS-Extension REQUIRED - 3.26.4 OK - hpmudext IO-Extension REQUIRED - 3.26.4 OK -
---------------------- | Scan Configuration | ---------------------- '/etc/sane.d/dll.d/hpaio' not found. hpaio HPLIP-SANE-Backend REQUIRED - 3.26.4 OK 'hpaio found in /etc/sane.d/dll.conf' scanext Scan-SANE-Extension REQUIRED - 3.26.4 OK -
------------------------------ | DISCOVERED SCANNER DEVICES | ------------------------------ device `v4l:/dev/video0' is a Noname Lenovo EasyCamera: Lenovo EasyC virtual device device `hpaio:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201' is a Hewlett-Packard HP_LaserJet_M2727nf_MFP all-in-one device `v4l:/dev/video0' is a Noname Lenovo EasyCamera: Lenovo EasyC virtual device device `hpaio:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201' is a Hewlett-Packard HP_LaserJet_M2727nf_MFP all-in-one
-------------------------- | DISCOVERED USB DEVICES | -------------------------- No devices found.
--------------------------------- | INSTALLED CUPS PRINTER QUEUES | --------------------------------- HP_LaserJet_M2727nf_MFP ----------------------- Type: Printer Device URI: hp:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201 PPD: /etc/cups/ppd/HP_LaserJet_M2727nf_MFP.ppd PPD Description: HP LaserJet M2727 MFP Series Postscript (recommended) Printer status: printer HP_LaserJet_M2727nf_MFP is idle. enabled since Wed Jul 29 09:33:05 2026 Required plug-in status: Installed Communication status: Good HP_LaserJet_M2727nf_MFP_fax --------------------------- Type: Fax Device URI: hpfax:/net/HP_LaserJet_M2727nf_MFP?ip=192.168.1.201 PPD: /etc/cups/ppd/HP_LaserJet_M2727nf_MFP_fax.ppd PPD Description: HP Fax2 hpcups Printer status: printer HP_LaserJet_M2727nf_MFP_fax is idle. enabled since Thu Jul 30 12:12:08 2026 Required plug-in status: Installed Communication status: Good
-------------- | PERMISSION | --------------
----------- | SUMMARY | ----------- Missing Required Dependencies ----------------------------- error: 'cups' package is missing or 'cups' service is not running. error: 'libcups2' package is missing/incompatible error: 'libjpeg62-turbo-dev' package is missing/incompatible error: 'cups' package is missing or 'cups' service is not running. error: 'libcups2-dev' package is missing/incompatible error: 'cups-bsd' package is missing/incompatible error: 'cups-client' package is missing/incompatible error: 'libcupsimage2' package is missing/incompatible error: 'libcupsimage2-dev' package is missing/incompatible error: 'libusb-1.0.0-dev' package is missing/incompatible error: 'libsane-dev' package is missing/incompatible error: 'libavahi-client-dev' package is missing/incompatible error: 'libavahi-core-dev' package is missing/incompatible error: 'libavahi-common-dev' package is missing/incompatible error: 'libsnmp-dev' package is missing/incompatible error: 'snmp' package is missing/incompatible error: 'python3-pyqt4' package is missing/incompatible error: 'gtk2-engines-pixbuf' package is missing/incompatible error: 'python3-dev' package is missing/incompatible Missing Optional Dependencies ----------------------------- error: 'python3-dbus.mainloop.qt' package is missing/incompatible Total Errors: 11 Total Warnings: 0 Done.