2024-05-13 03:31 AM - edited 2024-05-13 03:33 AM
Hi
I got cups and hplip by adding IMAGE_INSTALL_append = "python3-distro cups ghostscript cups-filters hplip" in local.conf.
but when I run hp-check, there are some errors about missing required dependencies :
root@STM32MP1:~# hp-check
/usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if 'getfacl' not in g and '' is not g and 'file' not in g:
warning: python-dbus not installed.
Saving output in log file: /home/root/hp-check.log
HP Linux Imaging and Printing System (ver. 3.19.12)
Dependency/Version Check Utility ver. 15.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.
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).
Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION
Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version
warning: st openstlinux - eglfs - (a yocto project based distro) distro is not found in AUTH_TYPES
warning: 50-3.1-snapshot-20231024 version is not supported. Using 50-6 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 5.4.31 #1 SMP PREEMPT Wed May 8 07:13:52 UTC 2024 GNU/Linux
Host: STM32MP1
Proc: 5.4.31 #1 SMP PREEMPT Wed May 8 07:13:52 UTC 2024 GNU/Linux
Distribution: 50 3.1-snapshot-20231024
Bitness: 32 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.19.12
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 50 distro 3.1-snapshot-20231024 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.19.12
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.12
html=/usr/share/doc/hplip-3.19.12
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
libusb01-build=no
pp-build=no
gui-build=no
scanner-build=no
fax-build=no
dbus-build=no
cups11-build=no
doc-build=no
shadow-build=no
hpijs-install=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.19.12
restricted-build=no
ui-toolkit=no
qt3=no
qt4=no
qt5=no
policy-kit=no
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:
warning: Could not access file: No such file or directory
<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 9.52 OK -
error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
error: scanimage scanimage - Shell scanning program OPTIONAL 1.0 - MISSING 'scanimage needs to be installed'
error: dbus DBus - Message bus system REQUIRED - 1.12.16 MISSING 'DBUS may not be installed or not running'
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.116 OK -
network network -wget OPTIONAL - 1.20.3 OK -
error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'
------------------------
| 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'
error: libpthread libpthread - POSIX threads library REQUIRED - b'2.31' MISSING 'libpthread needs to be installed'
error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
error: sane SANE - Scanning library REQUIRED - - MISSING 'sane needs to be installed'
error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel 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 - 1.1.1 MISSING 'libcrypto needs to be installed'
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.2 OK -
error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed'
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'
error: python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 - MISSING 'python3-dbus needs to be installed'
python3-xml Python XML libraries REQUIRED - 2.2.8 OK -
error: python3-devel Python devel - Python development files REQUIRED 2.2 3.8.2 MISSING 'python3-devel needs to be installed'
error: python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - - MISSING 'python3-pil needs to be installed'
error: python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 - MISSING 'python3-reportlab needs to be installed'
--------------
| COMPILEDEP |
--------------
error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed'
error: gcc gcc - GNU Project C and C++ Compiler REQUIRED - - MISSING 'gcc needs to be installed'
error: make make - GNU make utility to maintain groups of programs REQUIRED 3.0 - MISSING 'make needs to be installed'
---------------------
| Python Extentions |
---------------------
cupsext CUPS-Extension REQUIRED - 3.19.12 OK -
hpmudext IO-Extension REQUIRED - 3.19.12 OK -
----------------------
| Scan Configuration |
----------------------
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.
error: scanext Scan-SANE-Extension REQUIRED - 3.19.12 MISSING 'scanext needs to be installed'
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
Device URI Model
---------------------------------------- -----------------------
hp:/usb/hp_LaserJet_1320_series?serial=0 HP LaserJet 1320 series
0XXXXXXXXXX
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP_LaserJet_1320
----------------
Type: Unknown
Device URI: usb://HP/LaserJet%201320%20series?serial=00XXXXXXXXXX
--------------
| PERMISSION |
--------------
USB None Required - - OK Node:'/dev/bus/usb/003/002' Perm:' root lp rw- rw- r--'
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
error: 'cupsys' package is missing/incompatible
error: 'cupsys-client' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libcupsys2-dev' package is missing/incompatible
error: 'cupsys-bsd' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libc6' package is missing/incompatible
error: 'libusb-1.0-0-dev' package is missing/incompatible
error: 'sane' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp9-dev' package is missing/incompatible
error: 'libssl-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'gcc' package is missing/incompatible
error: 'g++' package is missing/incompatible
error: 'make' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
error: 'sane-utils' package is missing/incompatible
error: 'avahi' package is missing/incompatible
Total Errors: 25
Total Warnings: 1
Done.
and for print pdf file , run below commands , But print mistake content (bad format) :
root@STM32MP1:~# systemctl list-unit-files | grep cups
org.cups.cupsd.path enabled
org.cups.cups-lpd@.service static
org.cups.cupsd.service enabled
org.cups.cups-lpd.socket enabled
org.cups.cupsd.socket enabled
root@STM32MP1:~# lpstat -r
scheduler is running
root@STM32MP1:~# lpinfo -v
network beh
[ 702.899714] usblp0: removed
file cups-brf:/
[ 702.957808] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1D17
direct usb://HP/LaserJet%201320%20series?serial=00XXXXXXXXXX
network ipp
network https
network lpd
network socket
network http
network ipps
root@STM32MP1:~#
root@STM32MP1:~# hp-setup
warning: python-dbus not installed.
HP Linux Imaging and Printing System (ver. 3.19.12)
Printer/Fax Setup 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.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
Using connection type: usb
Setting up device: hp:/usb/hp_LaserJet_1320_series?serial=00XXXXXXXXXX
---------------------
| PRINT QUEUE SETUP |
---------------------
Please enter a name for this print queue (m=use model name:'hp_LaserJet_1320'*, q=quit) ?m
Using queue name: hp_LaserJet_1320
Locating PPD file... Please wait.
Found PPD file: lsb/usr/cupsfilters/HP-Color_LaserJet_CM3530_MFP-PDF.ppd
Description:
Note: The model number may vary slightly from the actual model number on the device.
Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ?
Enter a location description for this printer (q=quit) ?q
OK, done.
root@STM32MP1:~# lpadmin -p HP_LaserJet_1320 -E -v usb://HP/LaserJet%201320%20series?serial=00XXXXXXXXXX
root@STM32MP1:~# lpadmin -d HP_LaserJet_1320
root@STM32MP1:~# lpstat -p -d
printer HP_LaserJet_1320 is idle. enabled since Fri Feb 7 19:37:54 2020
system default destination: HP_LaserJet_1320
root@STM32MP1:~# lp -d HP_LaserJet_1320 output.pdf
request id is HP_LaserJet_1320-21 (1 file(s))
2024-05-13 04:55 AM
Hi @macrobert
The hplip package misses a dependency on the package python3-dbus. Since this post https://community.st.com/t5/stm32-mpus-products/stm32mp157-hplip-support/td-p/196923 , the package hplip is provided into the OpenSTLinux distribution with the missing dependency.
Could you make a try by adding python3-dbus into your image please?
Best regards
--JM
2024-05-13 05:24 AM
Hi @Jean-Marc B
after : apt-get install python3-dbus
"warning: python-dbus not installed " resolved but errors remained .
root@STM32MP1:~# hp-check
/usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if 'getfacl' not in g and '' is not g and 'file' not in g:
Saving output in log file: /home/root/hp-check.log
HP Linux Imaging and Printing System (ver. 3.19.12)
Dependency/Version Check Utility ver. 15.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.
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 .run2. 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).
Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION
Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version
warning: st openstlinux - eglfs - (a yocto project based distro) distro is not found in AUTH_TYPES
warning: 50-3.1-snapshot-20231024 version is not supported. Using 50-6 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
Kernel: 5.4.31 #1 SMP PREEMPT Wed May 8 07:13:52 UTC 2024 GNU/Linux
Host: STM32MP1
Proc: 5.4.31 #1 SMP PREEMPT Wed May 8 07:13:52 UTC 2024 GNU/Linux
Distribution: 50 3.1-snapshot-20231024
Bitness: 32 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.19.12
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 50 distro 3.1-snapshot-20231024 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.19.12
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/sre/doc/hplip-3.19.12
html=/usr/share/doc/hplip-3.19.12
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filtehare/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
libusb01-build=no
pp-build=no
gui-build=no
scanner-build=no
fax-build=no
dbus-build=no
cups11-build=no
doc-build=no
shadow-build=no
hpijs-install=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.19.12
restricted-build=no
ui-toolkit=no
qt3=no
qt4=no
qt5=no
policy-kit=no
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'le or directory
Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
<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 9.52 OK -
error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
error: scanimage scanimage - Shell scanning program OPTIONAL 1.0 - 'scanimage needs to be installed'
error: dbus DBus - Message bus system REQU policykit PolicyKit - Administrative policy framework OPTIONAL - 0.116 OK -
network network -wget OPTIONAL - 1.20.3 OK -
error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'
------------------------
| 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 instalage development files REQUIRED - - MISSING 'cups-image needs to be installed'
error: libpthread libpthread - POSIX threads library REQUIRED - b'2.31' MISSING 'libpthread needs to be installed'
error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
error: sane SANE - Scanning library REQUIRED - - MISSING 'sane needs to be installed'
error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel 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 - 1.1.1 MISSING 'libcrypto
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.2 libnotify Desktop notifications OPTIONAL - pport for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
erro-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
python3-dbus REQUIRED - 2.2.8 OK -
error: python3-devel Python devel - Python development files REQUIRED 2.2 3.8.2ython3-devel needs to be installed'
error: python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - - MISSING 'python3-pil needs to be installed'
error: python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 - MISSING 'python3-repo-----
| COMPILEDEP |
---------btool - Library building support services REQUIRED - - MISSING 'libtool nlled'
error: gcc gcc - GNU Project C and C++ Compiler REQUIRED - - MISSING 'gcc needs to be installed'
error: make make - GNU make utility to maintain groups of programs REQUIRED 3.0 - ds to be installed'
---------------------
| Python Extentions |
---------------------
cupsext CUPS-Extension REQUIRED - OK -
----------------------
| Scan Configuration: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check .
error: scanext Scan-SANE-Extension REQUIRED - 3.19.12 MISSING 'sc----------
| DISCOVERED USB DEVICES |
----------------------- Device URI Model
---------------------------------------- ---------------=0 HP LaserJet 1320 series
0XXXXXXXXXX
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP_LaserJet_1320
----------------
Type: Unknown
Device URI: usb://HP/LaserJet%201320%20series?serial=00XXXXXXXXXX
--------------
| PERMISSION |
--------------
USB None Required - - OK Node:'/dev/bus/usb/003/005' Perm:' root lp rw- rw- r--'
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
error: 'cupsys' package is missing/incompatible
error: 'cupsys-client' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libcupsys2-dev' package is missing/incompatible
error: 'cupsys-bsd' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
e 'sane' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp9-dev' package is missing/incompatible
error: 'libssl-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'gcc' package is missing/incompatible
error: 'g++' package is missing/incompatible
error: 'make' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
error: 'sane-utils' package is missing/incompatible
error: 'avahi' package is missing/incompatible
Total Errors: 24
Total Warnings: 1
Done.
2024-05-14 11:17 PM
hi @Jean-Marc B
Is there any support?
2024-05-15 11:55 PM
Hi @macrobert
there are a lot of dependencies not met. Some of them are not provided by our package repository (*-dev packages for example).
I would suggest to work from a Distribution Package (see https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package) and install a local package repository (see https://wiki.st.com/stm32mpu/wiki/Package_repository_for_OpenSTLinux_distribution#How_to_activate_a_local_package_repository).
Then you will be able to install the missing packages from your own repository with the apt-get install command.
Best regards
--JM