#1084812 When hplip-data is installed, Python 3.12 through 3.13.5-1 reports various invalid escape sequences for multiple files in /usr/share/hplip

Package:
hplip-data
Source:
hplip-data
Submitter:
Kenward Vaughan
Date:
2026-08-06 00:21:08 UTC
Severity:
normal
Tags:
#1084812#5
Date:
2024-10-08 22:34:04 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

Update of system

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Haven't done anything--saw errors being reported during installation of hplip package.

   * What was the outcome of this action?

Uncertain.  Could easily be of no consequence, but then again IANAProgrammer.  So far (one small test) the manager seems to be working fine.

   * What outcome did you expect instead?

No error messages, of course.  Examples are given below.


Kenward

These are just some of the error messages.  All seemed similar (escape sequence issue).

/usr/share/hplip/base/utils.py:1826: SyntaxWarning: invalid escape sequence '\-'
  log.info(".SH NAME\n%s \- %s" % (crumb, title))
/usr/share/hplip/base/utils.py:1925: SyntaxWarning: invalid escape sequence '\w'
  return re.sub("&#?\w+;", fixup, text)
/usr/share/hplip/base/utils.py:1978: SyntaxWarning: invalid escape sequence '\d'
  pat=re.compile('''(\d{1,})([a-z]{1,})''')
/usr/share/hplip/check.py:630: SyntaxWarning: invalid escape sequence '\s'
  lsusb_pat = re.compile("""^Bus\s([0-9a-fA-F]{3,3})\sDevice\s([0-9a-fA-F]{3,3}):\sID\s([0-9a-fA-F]{
4,4}):([0-9a-fA-F]{4,4})(.*)""", re.IGNORECASE)
/usr/share/hplip/fax/ledmfax.py:46: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile(b"""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/fax/soapfax.py:44: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/installer/dcheck.py:35: SyntaxWarning: invalid escape sequence '\d'
  ver1_pat = re.compile("""(\d+\.\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:36: SyntaxWarning: invalid escape sequence '\d'
  ver_pat = re.compile("""(\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:360: SyntaxWarning: invalid escape sequence '\d'
  xsane_ver_pat =re.compile('''xsane-(\d{1,}\.\d{1,}).*''')
\



Cheers!
---------------
| SYSTEM INFO |
---------------

 Kernel: 6.9.9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.9-1 (2024-07-13) GNU/Linux
 Host: hpotter
 Proc: 6.9.9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.9-1 (2024-07-13) GNU/Linux
 Distribution: debian n/a
 Bitness: 64 bit
----------------------- | HPLIP CONFIGURATION | ----------------------- HPLIP-Version: HPLIP 3.22.10 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.22.10 [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.22.10 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: Plugins are not installed. Could not access file: No such file or directory Current contents of '~/.hplip/hplip.conf' file: [commands] scan = /usr/bin/xsane -V %SANE_URI% [fax] email_address = voice_phone = [installation] date_time = 10/08/24 15:27:02 version = 3.22.10 [last_used] device_uri = "hp:/net/Officejet_Pro_8600?ip=192.168.1.183" printer_name = Officejet_Pro_8600 working_dir = . [polling] device_list = enable = false interval = 5 [refresh] enable = true rate = 30 type = 1 [settings] systray_messages = 0 systray_visible = 0 [upgrade] last_upgraded_time = 1513824540 notify_upgrade = false 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.04.0 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 - error: dbus DBus - Message bus system REQUIRED - 1.14.10 MISSING 'DBUS may not be installed or not running' policykit PolicyKit - Administrative policy framework OPTIONAL - - OK - network network -wget OPTIONAL - 1.24.5 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.40' OK - libusb libusb - USB library REQUIRED - 1.0 OK - 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' error: libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 3.3.2 MISSING 'libcrypto needs to be installed' python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.12.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.3.2 OK - python3-xml Python XML libraries REQUIRED - 2.6.3 OK - python3-devel Python devel - Python development files REQUIRED 2.2 3.12.6 OK - python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 10.4.0 OK - python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 4.2.5 OK -
-------------- | COMPILEDEP | -------------- error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed' gcc gcc - GNU Project C and C++ Compiler REQUIRED - 14.2.0 OK - make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -
--------------------- | Python Extentions | --------------------- cupsext CUPS-Extension REQUIRED - 3.22.10 OK - hpmudext IO-Extension REQUIRED - 3.22.10 OK -
---------------------- | Scan Configuration | ---------------------- '/etc/sane.d/dll.d/hpaio' not found. hpaio HPLIP-SANE-Backend REQUIRED - 3.22.10 OK 'hpaio found in /etc/sane.d/dll.conf' scanext Scan-SANE-Extension REQUIRED - 3.22.10 OK -
------------------------------ | DISCOVERED SCANNER DEVICES | ------------------------------ device `hpaio:/net/Officejet_Pro_8600?ip=192.168.1.183' is a Hewlett-Packard Officejet_Pro_8600 all-in-one
-------------------------- | DISCOVERED USB DEVICES | -------------------------- No devices found.
--------------------------------- | INSTALLED CUPS PRINTER QUEUES | --------------------------------- Officejet_Pro_8600 ------------------ Type: Printer Device URI: hp:/net/Officejet_Pro_8600?ip=192.168.1.183 PPD: /etc/cups/ppd/Officejet_Pro_8600.ppd warning: Failed to read /etc/cups/ppd/Officejet_Pro_8600.ppd ppd file PPD Description: Printer status: printer Officejet_Pro_8600 is idle. enabled since Mon May 13 07:05:28 2024 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: 'libdbus-1-dev' 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: '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: 'libssl-dev' package is missing/incompatible error: 'python3-pyqt4' package is missing/incompatible error: 'gtk2-engines-pixbuf' package is missing/incompatible error: 'libtool' package is missing/incompatible error: 'libtool-bin' package is missing/incompatible Missing Optional Dependencies ----------------------------- error: 'python3-dbus.mainloop.qt' package is missing/incompatible Total Errors: 12 Total Warnings: 0 Done.
#1084812#22
Date:
2026-06-06 07:33:58 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hplip, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1076154@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Alteholz <debian@alteholz.de> (supplier of updated hplip package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 05 Jun 2026 18:14:59 +0200
Source: hplip
Architecture: source
Version: 3.26.4+dfsg0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
Changed-By: Thorsten Alteholz <debian@alteholz.de>
Closes: 1076154 1137729 1138048
Changes:
 hplip (3.26.4+dfsg0-2) unstable; urgency=medium
 .
   * add patch to fix HP color laserjet mfp e78635-ps ppd
   * make tests have same dependencies as hplip itself
     (Thanks a lot to Agustin Martin for the patches)
     (Closes: #1137729)
   * fix invalid python escape sequences
     (Thanks a lot to Agustin Martin for adapting the Ubuntu patch
      from Till)
     (Closes: #1076154)
   * drop patch Cope-with-prnt-hpcups-ErnieFilter.-cpp-h-removal-by-, which
     is no longer needed
     (Thanks a lot to Agustin Martin for this suggestion)
     (Closes: #1138048)
Checksums-Sha1:
 b07544b2d8955bd76561447d8d1a672dbcb7e538 3176 hplip_3.26.4+dfsg0-2.dsc
 20b9777e7aa607c2ab46bee4a439c40e700f27ac 148616 hplip_3.26.4+dfsg0-2.debian.tar.xz
 69c2747dd767fe6b3a585448d2afe67b0a5cb11c 20380 hplip_3.26.4+dfsg0-2_amd64.buildinfo
Checksums-Sha256:
 66380b467cdbdc45e58f1e15d31481da89459d6e884c2b99bcfc7db68c6bdcf5 3176 hplip_3.26.4+dfsg0-2.dsc
 dc978fae833771eed2822c59763ab325b18be9def325c6fa5a0e21cf0383201e 148616 hplip_3.26.4+dfsg0-2.debian.tar.xz
 b4f05462c73b72524f82f62c1fd915d666091d7a35bea3fa91cdc69222d49b4e 20380 hplip_3.26.4+dfsg0-2_amd64.buildinfo
Files:
 3aa278cf719a9f62a20b75ce43df8c09 3176 utils optional hplip_3.26.4+dfsg0-2.dsc
 595196b5c1cf99a308908a23038bd9b6 148616 utils optional hplip_3.26.4+dfsg0-2.debian.tar.xz
 0beb0efc4c7d2f9ebc46344a4cc706dc 20380 utils optional hplip_3.26.4+dfsg0-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQKnBAEBCgCRFiEEYgH7/9u94Hgi6ruWlvysDTh7WEcFAmojxqhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYy
MDFGQkZGREJCREUwNzgyMkVBQkI5Njk2RkNBQzBEMzg3QjU4NDcTHGRlYmlhbkBh
bHRlaG9sei5kZQAKCRCW/KwNOHtYRwVwEACQHwX1Ys+SgBfqvC790JGPCE0HVpOv
WXga1ZjL/0S9ihQPLhZXSgY/hQiPfo+ERYmAvWHsEdxGP2vZ753t+pEt/LBK8iZq
wFnGTM/QO/p8LeV9cm164ezkCUHChQo/eF67FYiqzMiDsK1d4j4pORKnkLBMe2ZG
vO9Hxh/9GILPgcfFwU+xyNatlTl13cigh6N+an3/DYqPUPM3IPqicS7yEVcjhay9
g50qBNwgz1MmvA87ysLQQKkabWDf6n04ULVeIP1n7u1w9E8TEnR8AFsGHkHkXiwq
hUCJ19jvPrI0uoX66qxdaninPzwdCg/o8tPYppvLCti41Z5HrmfnB0Aty4arcG4E
G9pbEQph+7d+CcjXGdpXhpCOcxjidslEr6MEh2kRFvod1wSgFHp+c4xNH3TkZdeH
Raf3ykuzPa6+OFY9zSkjKtQbBQqEFbbs1khWV7RSBDw8/EOQimmnG9a6B2yMiCy/
/ToP7Lzjz69u9PocW8vQNOiNbmJMc5caWjYrcAz+aeqFkiCC0O5EqCM4dxmbUW5X
zvNYyoNSUaWzVYgWEl3Iiz6YW4RTbXzOtxZxN5rDX0AJn14FZS9oDVx8DIiw5/Tk
z/3nEIJF4+y/ksv92c3vKRR6MIVjPsJrwti+627jxAGrd/mAWkzsOBrGUAcybkBl
KsW9j3w/7fgCuQ==
=Vz44
-----END PGP SIGNATURE-----