error: missing python3-pyqt4 to do HP printer installation

extraction of data from terminal below


error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.


extraction of data 2 from terminal below:

warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: This installer cannot install 'python3-notify2' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: This installer cannot install 'python3-pyqt4-dbus' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'gui_qt5': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: This installer cannot install 'python3-notify2' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'gui_qt5': python3-pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)

error: Package install command failed with error code 1
note: Some packages may not get installed on python3 due to distro incompatibilites
hplip-3.20.6.run
Creating directory hplip-3.20.6
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.6 Self Extracting Archive.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.20.6)
HPLIP Installer ver. 5.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.

Installer log saved in: hplip-install_Thu-02-Jul-2020_10:16:14.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: manjarolinux-20.0.3 version is not supported, so all dependencies may not be installed. However trying to install using manjarolinux-20.0.1 version packages.

Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*): y


INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a


INTRODUCTION
------------
This installer will install HPLIP version 3.20.6 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).


DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Manjaro Linux 20.0.3.

Is "Manjaro Linux 20.0.3" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y
[sudo] password for manjaro-andrew: 
:: Synchronizing package databases...
 core is up to date
 extra                                                                                   2.0 MiB  12.9 MiB/s 00:00 [####################################################################] 100%
 community                                                                               5.9 MiB  14.7 MiB/s 00:00 [####################################################################] 100%
 multilib is up to date
warning: libidn-1.35-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libidn-1.35-3

Total Installed Size:  0.67 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
(1/1) checking package integrity                                                                                   [####################################################################] 100%
(1/1) loading package files                                                                                        [####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [####################################################################] 100%
(1/1) checking available disk space                                                                                [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling libidn                                                                                          [####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: libjpeg-turbo-2.0.4-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libjpeg-turbo-2.0.4-1

Total Download Size:   0.44 MiB
Total Installed Size:  2.10 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 libjpeg-turbo-2.0.4-1-x86_64                                                          449.5 KiB  6.97 MiB/s 00:00 [####################################################################] 100%
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
(1/1) checking package integrity                                                                                   [####################################################################] 100%
(1/1) loading package files                                                                                        [####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [####################################################################] 100%
(1/1) checking available disk space                                                                                [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling libjpeg-turbo                                                                                   [####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Initializing. Please wait...


ENTER USER PASSWORD
-------------------
Please enter the sudoer (manjaro-andrew)'s password: 
 

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Manjaro "Main" Repositories. See: https://wiki.manjaro.org/index.php/Arch_User_Repository for more information.  Disable the CD-ROM/DVD source if you do not have the Manjaro installation media inserted in the drive.

Please read the installation notes. Press <enter> to continue or 'q' to quit: 


SECURITY PACKAGES
-----------------
AppArmor is installed. 
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y


RUNNING PRE-INSTALL COMMANDS
----------------------------
OK


MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name         Component            Required/Optional   
xsane                scan                 OPTIONAL            
python3-notify2      gui_qt5              OPTIONAL            
python3-pyqt4-dbus   gui_qt4              OPTIONAL            
python3-pyqt4        gui_qt4              REQUIRED            
python3-pyqt5-dbus   gui_qt5              OPTIONAL            
python3-pyqt5        gui_qt5              REQUIRED            
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y


INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: python3-pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))


INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: This installer cannot install 'python3-notify2' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python3-pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: This installer cannot install 'python3-pyqt4-dbus' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'gui_qt5': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: This installer cannot install 'python3-notify2' for your distro/OS and/or version.
warning: Missing OPTIONAL dependency for option 'gui_qt5': python3-pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)


CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.


RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo pacman -Sy (Pre-depend step 1)
OK


DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo pacman -S --noconfirm python-pyqt4'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo pacman -S --noconfirm python-pyqt4'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo pacman -S --noconfirm python-pyqt4'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo pacman -S --noconfirm python-pyqt4'
Please wait, this may take several minutes...
error: Package install command failed with error code 1
note: Some packages may not get installed on python3 due to distro incompatibilites

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo pacman -S --noconfirm python-pyqt4'
Please wait, this may take several minutes...
error: Package install command failed with error code 1
note: Some packages may not get installed on python3 due to distro incompatibilites

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo pacman -S --noconfirm python-pyqt4'
Please wait, this may take several minutes...
error: Package install command failed with error code 1
note: Some packages may not get installed on python3 due to distro incompatibilites

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo pacman -S --noconfirm pygtk'
Please wait, this may take several minutes...
Running 'sudo pacman -S --noconfirm python-pyqt5'
Please wait, this may take several minutes...
Running 'sudo pacman -S --noconfirm python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo pacman -S --noconfirm python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo pacman -S --noconfirm python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo pacman -S --noconfirm python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 1
note: Some packages may not get installed on python3 due to distro incompatibilites

note: Please check for more information at http://hplipopensource.com/node/369
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo pacman -S --noconfirm xsane'
Please wait, this may take several minutes...
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.


RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK
[sudo] password for manjaro-andrew: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: libidn-1.35-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libidn-1.35-3

Total Installed Size:  0.67 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
(1/1) checking package integrity                                                                                   [####################################################################] 100%
(1/1) loading package files                                                                                        [####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [####################################################################] 100%
(1/1) checking available disk space                                                                                [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling libidn                                                                                          [####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: libjpeg-turbo-2.0.4-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libjpeg-turbo-2.0.4-1

Total Installed Size:  2.10 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
(1/1) checking package integrity                                                                                   [####################################################################] 100%
(1/1) loading package files                                                                                        [####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [####################################################################] 100%
(1/1) checking available disk space                                                                                [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling libjpeg-turbo                                                                                   [####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...


RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.
[manjaro-andrew@manjaro-andrew-pc Desktop]$

Why are you installing the

when Manjaro is providing it already ?

image

pamac install hplip
or
sudo pacman -Syu hplip

If you have a specific model, share it, and if requires a special package i'm sure will be at least in AUR.

hii,

i don't get your question.
i got the hplip from their web.
are you meaning to say, i should not use theirs because of compatibility to manjaro issue ? should use from repo or aur instead of the hp web ?

see , this is mine. i did installed from repos. but it is not working.. hence i searched online and an web forum said get from their web.. it did ask me is it for manjaro.. and i have chosen the manjaro version
hp

which one should i install ? i tried hplip 3,18 , worst.. hp

so i reinstalled hplip from repos..
hence back to the same problem: plug-in installation choice:

  1. download and install the plug-in from an HP authorized server (recommended)
  2. select and install existing local copy of the plug-in file (advanced)

i can't choose 2, because i don't have the plug-in file. hence chose option 1.

prompted:
unable to receive key from keyserver
without this, it is not possible to authenticate and validate the plug-in prior to installation. do you still wan to install the plug-in ?

prompted:
plug in installed successful.

prompted:
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..

???!!!
why run as normal user to install plug in ? can't i install with root user ? ! anyway.. hplip does not work on manjaro
hp

somebody help me!
i need to get things going :frowning:

Each utility that is provided by Manjaro should be installed from Manjaro repository.
HPLIP is one of such utility, but it does not automatically installing the drivers for your printer. That is why i asked for the printer model.
Each model has either an installer package driver, or a plugin. The hplip-plugin might or might not be suitable for your printer model.

Tell us the model.

HP LaserJet Professional M1212nf MFP

chris titus said linux is about getting work done.. lol..
i want to believe that, but until today i am still struggling with a lot of things..
still, i like linux better than microsoft stuff.. but that doesn't mean it get work done better.

Please install the one with the logo back. The required file is in
/usr/share/ppd/HP/hp-laserjet_professional_m1212nf_mfp.ppd.gz

Do the device setup/management again, let it discover the printer, and do what the popup is asking, and point to that file.

For the same reason why you don't swim with heavy knight armor on you :slight_smile:

1 Like

u mean this ?
hp

your swimming knight description is perfect! lol

it only accepts *.run.. the file in HP is *.gz

hp

OK, when I get your doublepostings correct, it is a notebook - xfce - stable branch.
Is manjaro-printer (meta pkg) installed ? This includes hplip 1:3.20.5-2 .
You are right, the direct download for hplip-plugin does not work atm.

  • Chris Titus said = Jesus said ???

Now you need to download the correct plugin from here . In your case it is hplip-3.20.5-plugin.run .
You have to make the file executable (right click - properties - access rights) .
Btw it is never a good idea to get the plugin from AUR because it is not in sync with manjaro, especially stable branch. So we have to make it this way around .
Now:

  • disable firewall, you can set rules later.
  • enable cups and hp-setup from terminal.
sudo systemctl enable --now org.cups.cupsd.service
sudo systemctl start --now org.cups.cupsd.service
sudo hp-setup -u

...and follow the GUI. When ready, open HP Device Manager and set up your preferences.

You will need a plugin. Do NOT use AUR plugin, when you test scanning/printing
hp-setup will ask you to install the plugin, choose option two and pont hp-setup to your downloaded plugin. It will complain about missing key but ask you if you want to install anyway - you say yes, accept the license (it will again comlain) done.
Refresh your HP Device Manager, restart your scanning app and it should work.

Tip: simple-scan is a well working scanning app in xfce. I prefer over xsane.

i followed all your steps to the very details.
i installed manjaro-printer ( meta pkg)
hp
downloaded hplip-3.20.5-plugin.run
and enable it to run as a program
hp2
firewall is disabled before this issue
cups is running and have made sure it is in running status.
hp3
run hp-setup -u from terminal
hp4
after i clicked "next", it won't allow me to do any interaction with gui, instead, i have to do it in the terminal.
hp5
anyway, i have installed the plugin as you told.. but the scanner software can't identify there is a scanner.
and hp device manager still the same, not printer added.

scan

scan2

I have updated the plugins for three notebooks yesterday - stable and testing, because the hp server did not respond, we both noticed.
This is my last shot, then I am out of ideas

Screenshots are bad, copy/paste text.
But what I saw, it complained about root, so try without sudo, only

hp-setup -u

My printer only need the plugin for scanning, so it never ask me to install the plugin. I do this by opening the scanner app, it complains about the missing plugin.

scanner is not working, but i believe this shows my hp printer is working and setup properly right ? i am not that sure about linux printer setting.
the reason i asked before whenever i double clicked the "hp device manager" icon that reside in the tray bar, it shows this.. ( no installed hp devices found) which makes me think something is not installed right.. then again, my printer is working.
test
just the hp scanner is not. and by the look of the addressed showed on hp scan device, it is 1.1.1.1 .. the scanner software shows my webcam as scanner.
result

i think if i type it out , it is hard to convince ppl that i have done all the steps.. i use screenshot as proof of my steps.. or maybe u guys can notice something that i missed out by typing.

how that the printer is working (except scanner) can you pls teach me how to unblock from ufw ? i will need to enable it sometime.. but when enable it, will it block the network printer ?

btw, pls explain to me, this printer thing is confusing.. according to the screenshots above, am i connecting to my network printer by CUPS ? or by what (hp device manager) ...?

this "common unix printing service".. how come it looks like a web interface instead of software interface (as of windows printer manager, which is software based)

what port or what is in used to comm between manjaro laptop and the printer ? i can allow all incoming and outgoing to 192.168.0.9 to be allowed on ufw? surely works right ? but can be more specific ? like port or mac address or something specific, to narrow any possibility intrusion within network itself (although i have nothing in the lan itself that will intrude the laptop, need to learn complete anyway, in case i bring the laptop to a public lan )
thx

Yes, it's cups. I don't get it. Have you opened HP Device Manager from your menu, have you ? Normally it will find your printer and you can configure it.
Firewall is gufw, GUI front for ufw. Click rules - ingoing/outgoing - network - printing - hplip and same with cups.

I have not read the entire thread in detail - but you have - for sure complicated your setup.

  1. When on your private network - any firewall application should be disabled
  2. Firewall is required on public or insecure network - and your private network is not insecure.
  3. qt4 is deprecated from upstream Arch and therefore anything related to qt4 is going to be a pain.
  4. As a general experience with networked printers - they all have a web interface http://x.y.z.n/
  5. Manjaro has a printer meta package manjaro-printer which installs almost everything needed.
  6. python-pyqt5 is an optional dependency of the hplip package in the repo and must be installed separately

Steps to get the majority of printers working:

  1. Install the packages manjaro-printer and python-pyqt5
  2. Enable and start cups
  3. Ensure your printer is connected to the network - (printer's panel for network settings)
  4. Launch system-config-printer and setup your printer.

Steps


  1. Install the packages

    sudo pacman -Syu manjaro-printer python-pyqt5


  1. Enable cups

    sudo systemctl enable --now org.cups.cupsd


  1. Connect the printer to the network using the control panel on the device.

  1. Setup the printer

Using the HP GUI requires the device to be setup before you can use it

Note: Only devices installed with the hp: or hpfax: CUPS backend will appear in the HP Device Manager.

To use the system printer utility - your user must be a member of the lp group - run the groups command to verify

groups

If your user is not member of lp group - add yourself - logoff and login after adding yourself.

sudo gpasswd -a $USER lp

Use the printer control panel

system-config-printer
  • Unlock the settings (upper right corner) - and setup your printer.
  • Choose your printer connection
  • Select the HP Linux Imaging and Printing (HPLIP) driver
Screenshot

20200704-083833_637x387_screenshot

Before you can use the HP GUI ensure the following

  1. Complete the setup using the system utility
  2. The printer must be working before you can use HP GUI.
Screenshot

20200704-083200_717x550_screenshot

1 Like

after i entered the static ip address of the network printer of mine, this pops up.. what password is that ? i tried my manjaro sudo password - denied, tried key ring password - denied. tried no password - denied.
what password is that ? my printer has got no password setting in it (i just browsed thru my printer panel)
1
btw, how did you make the forum to hide the photo , so that user can expand as will ? it look neater..

I think your system is a mess - it looks like a password dialog for a samba share and the IP appears more like a router IP than a printer.

Use your printers physical control panel and connect the printer to your network using that physical panel.

To hide an image use the :gear: icon and select Hide Details - it will create a text like this (just ensure the bracketed content is on separate lines.

[details="Summary"]

This text will be hidden

[/details]
1 Like

Forum kindly sponsored by