I have installed KaOS 18.12 and ran the HP Device Manager to setup my printer. The setup routine gets to the plugin installation and downloads and installs the plugin, but insists on telling me to run hp-plugin as my user to install the plugin. The setup never progresses past the plugin installation, it keeps asking me to install the plugin even after it downloads and successfully installs the plugin. Any ideas? If you need more details, just let me known what to provide. Thanks.

Did you install the printer as your user or root? It needs to be done as root.

I tried running hp-setup with sudo and still received this error after agreeing to the license during installing the plugin:

error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

I ran the hp-plugin as my user as instructed, but the plugin says it installs and dumps me back at the same error. I tried running hp-setup after su'ing and I get the same results.

Have you used hplip before for that printer? Do you remember/know which version worked for you? There were some major changes after the 3.18.6 release, none after that worked without patching out some new closed source sections. It is possible the plugin does not work with that part patched out. Easiest to find that out is locally build 3.18.6, from the KaOS PKGBUILD at that version.
https://github.com/KaOSx/main/blob/44d65d571b871d6c013218bc1852e452ea204edc/hplip/PKGBUILD

I have just installed this printer under Artix Linux (Arch based) with the 3.18.6 version of hplip. The newer 3.18.12 does not seem to support my printer. Thanks for the heads up on this.

Forgive my ignorance, but how do I use the PKGBUILD script you reference?

https://kaosx.us/docs/package/
Basically, copy the linked PKGBUILD to a directory in your users home (example, create & place it in ~/dev/build), cd to the directory where you placed it, next run makepkg -si, that will build the package & install it once finished. Best to remove the newer hplip version first.

EDIT:
No patches needed in that PKGBUILD, so remove line 20, 21 & 23, 24.

Ok, I install the base-devel packages and copied the raw PKGBUILD script into Kate and saved it the folder ~/dev/build/hplip - I commented out lines 20, 21, 23, 24:

pkgna
me=hplip pkgver=3.18.6 # incase a or b is used in hplip rls: _pkgver=3.18.6 pkgrel=2 pkgdesc="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet." arch=('x86_64') url="https://developers.hp.com/hp-linux-imaging-and-printing" license=('GPL') depends=('ghostscript' 'foomatic-db' 'foomatic-db-engine' 'cups' 'net-snmp' 'libusb' 'wget' 'python3-gobject3' 'pyqt5-python3') makedepends=('pkgconfig' 'sane' 'rpcbind' 'dbus-python3') optdepends=('dbus-python3: for dbus support' 'sane: for scanner support' 'rpcbind: for network support') options=('!libtool') install=${pkgname}.install source=("https://downloads.sourceforge.net/hplip/${pkgname}-${_pkgver}.tar.gz" # "https://launchpadlibrarian.net/281975878/patch" # 'cups-2.2.patch') md5sums=('3857eae76c49c00fa185628d4dce7d61' # 'c873eb40c9e3fa794637523400190218' # 'ceb7449b12e2ecf70f898bc50b161a3c') build() { cd ${pkgname}-${_pkgver} find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python3~' {} + sed -i '1s|#!/usr/bin/python|#!/usr/bin/python3|' doctor.py setup.py makeuri.py logcapture.py base/magic.py sed -i '1s|#!/usr/bin/python|#!/usr/bin/python3|' ui/upgradeform.py uninstall.py upgrade.py config_usb_printer.py sed -i 's|python ./print.py|python3 ./print.py|' scan.py sed -i 's|python ./testpage.py|python3 ./testpage.py|' setup.py sed -i 's|python %HOME%|python3 %HOME%|' base/utils.py sed -i 's|python ./plugin.py|python3 ./plugin.py|' base/pkit.py sed -i 's|/usr/bin/python|/usr/bin/python3|' data/rules/hplip-printer@.service # https://github.com/KaOSx/main/issues/31, patch file prnt/filters/hpps #patch -p2 -i ${srcdir}/patch # cups 2.2 patch https://packages.debian.org/sid/hplip #patch -p1 -i ${srcdir}/cups-2.2.patch export AUTOMAKE='automake --foreign' export PYTHON=/usr/bin/python3 autoreconf --force --install ./configure --prefix=/usr \ --disable-qt4 \ --enable-qt5 \ --enable-hpcups-install \ --enable-new-hpcups \ --enable-cups-ppd-install \ --enable-cups-drv-install \ --enable-pp-build make } package() { cd ${pkgname}-${_pkgver} make rulesdir=/usr/lib/udev/rules.d DESTDIR=${pkgdir}/ install # remove sane conflicts and obsolete files rm -rf ${pkgdir}/etc/{sane.d,xdg} rm -vrf ${pkgdir}/usr/share/hal rm -vrf $pkgdir/etc/init.d } Then I ran makepkg -si and this is the output I get: ~  dev  build  hplip  makepkg -si /home/ezsit/dev/build/hplip/PKGBUILD: line 22: syntax error near unexpected token `(' /home/ezsit/dev/build/hplip/PKGBUILD: line 22: `md5sums=('3857eae76c49c00fa185628d4dce7d61'' ==> ERROR: install file (hplip.install) does not exist or is not a regular file. Any idea what I might be doing wrong?
  • demm replied to this.

    You should not commented them, since it will not compile. Just download cups-2.2.patch and rebuild.

    • demm replied to this.

      bvbfan You should not commented them, since it will not compile. Just download cups-2.2.patch and rebuild.

      Wrong, that patch is no longer needed or in use.

      ezsit line 18 calls for this .install file:
      https://github.com/KaOSx/main/blob/44d65d571b871d6c013218bc1852e452ea204edc/hplip/hplip.install
      Either comment out line 18, or download the file and place in the same directory as the PKGBUILD.
      If that still doesn't work, then I will compile & upload it for you, since this might be needed for more users.

      Thank you for the reply. I will have some time to test tonight. Hope your New Year's was happy and safe. :-)

      I was able to use the PKGBUILD and hplip.install to get the source package. I extracted it and ran the commands from HP's site to manually compile and install the software. It appears to have installed, but is now complaining that PyQt4.QtGui is not available (no module named). ?? I thought KaOS does not have any Qt4 stuff left. Is this the case?

      You really should read the linked packaging guide 🙂
      You do not extract any, or use the upstream method to get hplip, I linked you the PKGBUILD so you would download, extract, build and install with KaOS needed settings (all automated by using makepkg).
      But as this has gone on too long, I will upload this older version later today.

      Older hplip is now available through:

      sudo pacman -U https://sourceforge.net/projects/kaosx/files/packages/hplip-3.18.6-1-x86_64.pkg.tar.xz

      Make sure to add hplip to the ignore package in your pacman.conf, if this package fixes your issue.

      I am sorry if the instructions in the packaging guide are not easy for me to follow. I read through the packaging guide section on building a package and I cannot make heads or tails of what to do in the hplip case. If the steps were simple I could probably get it, but being my first time doing this, none of this is familiar. Thank you for your patience.

      OK, I finally think I get it. Thank you. The package you linked to works. I did not realize that the PKGBUILD produced a ready to use package by pacman. I was getting confused by the depends= , the pkgver= , the makepkg -g , and the checksums instructions. I did not know those steps were unnecessary and to just go to pacman -U. Sorry again for my ignorance.

      • demm replied to this.

        ezsit just go to pacman -U

        No, that is ONLY for the package I build for you, to build and install yourself you have to run makepkg -si in the dir where the PKGBUILD is.
        But as noted it is solved now, anyone else seeing the issue when needing hplip-plugin can get the older version from sourceforge.