ubuntu 18.04.4 Dependency problem

Asked by Cody Marcel

When running the scrip to install the drivers I get the following error:
RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.

These dependencies are already installed.
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ sudo apt-get install python3-pyqt4
[dzdo] password for cmarcel:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pyqt4 is already the newest version (4.12.1+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

HPLIP version:
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ ll hplip-3.20.3.run
-rwx------ 1 cmarcel cmarcel 25724602 May 11 12:02 hplip-3.20.3.run*

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Cody Marcel
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

Printer model?

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

And which operating system (including release number or name)?

Revision history for this message
Cody Marcel (codymarcel) said :
#3

Sorry about that :)

MFP M479fdw

Revision history for this message
Cody Marcel (codymarcel) said :
#4

hp-check ourput:

sudo hp-check -r
Saving output in log file: /home/cmarcel/Downloads/hp-check.log

HP Linux Imaging and Printing System (ver. 3.17.10)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 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: 12-18.04 version is not supported. Using 12-17.04 versions dependencies to verify and install...

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

 Kernel: 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 GNU/Linux
 Host: cmarcel-wsl5
 Proc: 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.17.10
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 12 distro 18.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.17.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=yes
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=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.17.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

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:
[installation]
date_time = 05/11/20 13:12:54
version = 3.20.3

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

-------------------------
| External Dependencies |
-------------------------

 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.19.4 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

------------------------
| General Dependencies |
------------------------

 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
 libpthread libpthread - POSIX threads library REQUIRED - b'2.27' OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 sane SANE - Scanning library REQUIRED - - OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
 python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.6.9 OK -
 python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.12.1 OK -
 python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
 python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
 python3-xml Python XML libraries REQUIRED - 2.2.5 OK -
 python3-devel Python devel - Python development files REQUIRED 2.2 3.6.9 OK -
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -

--------------
| COMPILEDEP |
--------------

 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.5.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -

---------------------
| Python Extentions |
---------------------

 cupsext CUPS-Extension REQUIRED - 3.17.10 OK -
 hpmudext IO-Extension REQUIRED - 3.17.10 OK -

----------------------
| Scan Configuration |
----------------------

'/etc/sane.d/dll.d/hpaio' not found.
 hpaio HPLIP-SANE-Backend REQUIRED - 3.17.10 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.17.10 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_Color_LaserJet_Pro_M478f_9f_D3AF3F_
--------------------------------------
Type: Unknown
Device URI: ipps://HP3822E2D3AF3F.local:631/ipp/print
PPD: /etc/cups/ppd/HP_Color_LaserJet_Pro_M478f_9f_D3AF3F_.ppd
PPD Description: Color LaserJet Pro M478f-9f
Printer status: printer HP_Color_LaserJet_Pro_M478f_9f_D3AF3F_ is idle. enabled since Mon 11 May 2020 12:36:23 PM MDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

--------------
| PERMISSION |
--------------

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 0
Total Warnings: 1

Done.

Revision history for this message
Cody Marcel (codymarcel) said :
#5

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ lsb_release -d
Description: Ubuntu 18.04.4 LTS

Revision history for this message
brian_p (claremont102) said :
#6
Revision history for this message
Manfred Hampl (m-hampl) said :
#7

"HP Linux Imaging and Printing System (ver. 3.17.10)"

Apparently you do not have HPLIP Version 3.20.3 installed, but an older one that does not correctly work with Ubuntu 18.04.

I see two possibilities:
1. Switch to driverless printing (see Brian's answer)
or
2. Install HPLIP 3.20.3 (sh ~/Downloads/hplip-3.20.3.run)

Revision history for this message
Cody Marcel (codymarcel) said :
#8

I'm trying to install hplip-3.20.3.run and that's where it's failing. I've followed steps to remove any old versions that were installed. What's shoing you I have an old version installed? I've followed instruction seen here for removal, but it's not working. Is there a better set of instructions to accomplish this?

https://askubuntu.com/questions/1056077/how-to-install-latest-hplip-on-my-ubuntu-to-support-my-hp-printer-and-or-scanner

Using cups only works in certain cases and I'd like my printer to work when I need it without having to research independent solutions for every app I happen to be in.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Q: "What's shoing you I have an old version installed?"
A: The availability of the "hp-check" command and its output "HP Linux Imaging and Printing System (ver. 3.17.10)"

What output do you receive for the command
sh ~/Downloads/hplip-3.20.3.run

Revision history for this message
Cody Marcel (codymarcel) said :
#10

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ sh hplip-3.20.3.run
Creating directory hplip-3.20.3
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.3 Self Extracting Archive........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.20.3)
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_Tue-12-May-2020_09:57:59.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.

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) :

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

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 18.04.

Is "Ubuntu 18.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ?

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (cmarcel)'s password:
error: Password incorrect. 2 attempt(s) left.
Please enter the sudoer (cmarcel)'s password:

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu 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) ?

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
python3-notify2 gui_qt4 OPTIONAL
python3-pyqt4-dbus gui_qt4 OPTIONAL
python3-pyqt4 gui_qt4 REQUIRED
python3-dbus fax REQUIRED
python3-pil scan OPTIONAL
python3-reportlab fax OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?

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-dbus (Python DBus - Python bindings for DBus)

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: Missing OPTIONAL dependency for option 'gui_qt4': python3-pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing OPTIONAL dependency for option 'fax': python3-reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'scan': python3-pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))

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

RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes python3-pyqt4'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes gtk2-engines-pixbuf'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-gi'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-notify2'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-dbus.mainloop.qt'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-reportlab'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python3-pil'
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.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

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

Revision history for this message
Cody Marcel (codymarcel) said :
#11

BTW, after I have removed everything, hp-check no longer works. If I try to install the ubuntu specific packages on this article, it cannot find the printer over the network or when I plug it in via USB directly.

When completely uninstalled, the hplip still fails for the same missing dependencies (which I actually have installed). I have tried the custom installer using only qt5 instead of 4 and that gives the same missing dep. It's also installed.

https://askubuntu.com/questions/1056077/how-to-install-latest-hplip-on-my-ubuntu-to-support-my-hp-printer-and-or-scanner

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

What output do you receive for the commands

apt-cache policy python3-pyqt4 python3-dbus
sudo apt install --reinstall python3-pyqt4 python3-dbus

Revision history for this message
Cody Marcel (codymarcel) said :
#13

Installer still fails for the same missing dependencies even after reinstalling with apt.

ansible|cmarcel@cmarcel-wsl5:/etc/cups/ppd$ apt-cache policy python3-pyqt4 python3-dbus
python3-pyqt4:
  Installed: 4.12.1+dfsg-2
  Candidate: 4.12.1+dfsg-2
  Version table:
 *** 4.12.1+dfsg-2 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status
python3-dbus:
  Installed: 1.2.6-1
  Candidate: 1.2.6-1
  Version table:
 *** 1.2.6-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
ansible|cmarcel@cmarcel-wsl5:/etc/cups/ppd$ sudo apt install --reinstall python3-pyqt4 python3-dbus
[dzdo] password for cmarcel:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 89.9 kB/2,277 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python3-dbus amd64 1.2.6-1 [89.9 kB]
Fetched 89.9 kB in 1s (111 kB/s)
(Reading database ... 239315 files and directories currently installed.)
Preparing to unpack .../python3-dbus_1.2.6-1_amd64.deb ...
Unpacking python3-dbus (1.2.6-1) over (1.2.6-1) ...
Preparing to unpack .../python3-pyqt4_4.12.1+dfsg-2_amd64.deb ...
Unpacking python3-pyqt4 (4.12.1+dfsg-2) over (4.12.1+dfsg-2) ...
Setting up python3-dbus (1.2.6-1) ...
Setting up python3-pyqt4 (4.12.1+dfsg-2) ...
ansible|cmarcel@cmarcel-wsl5:/etc/cups/ppd$

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Does the installer still fail with the same error message about unmet dependencies?

Revision history for this message
Cody Marcel (codymarcel) said :
#15

Yes:
RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ apt-cache policy python3-pyqt4 python3-dbus
python3-pyqt4:
  Installed: 4.12.1+dfsg-2
  Candidate: 4.12.1+dfsg-2
  Version table:
 *** 4.12.1+dfsg-2 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status
python3-dbus:
  Installed: 1.2.6-1
  Candidate: 1.2.6-1
  Version table:
 *** 1.2.6-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Cody Marcel (codymarcel) said :
#16

Is there a way to bypass the dependency checker and just move to the install? I can probably hack the python script, but hopefully there is a more sanctioned way to to do that.

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

Now the same with two other packages:
What do you receive for

apt-cache policy gtk2-engines-pixbuf python3-gi
sudo apt install --reinstall gtk2-engines-pixbuf python3-gi

and a new install-attempt of HPLIP

Revision history for this message
Cody Marcel (codymarcel) said :
#18

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: A required dependency 'python3-dbus (Python DBus - Python bindings for DBus)' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ apt-cache policy gtk2-engines-pixbuf python3-gi
gtk2-engines-pixbuf:
  Installed: 2.24.32-1ubuntu1
  Candidate: 2.24.32-1ubuntu1
  Version table:
 *** 2.24.32-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
python3-gi:
  Installed: 3.26.1-2ubuntu1
  Candidate: 3.26.1-2ubuntu1
  Version table:
 *** 3.26.1-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.26.1-2 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
ansible|cmarcel@cmarcel-wsl5:~/Downloads$

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

Have you tried selecting "custom" mode at the prompt

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

Revision history for this message
Cody Marcel (codymarcel) said :
#20

Yes, see post above. I've tried qt4/qt5 only. I've tried without GUI completely, but Dbus is a requirement even beyond that. How would I bypass all dependency checks? I already have the dependencies and this check is broken.

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

Eventually there is some kind of confusion between python2 and python3.
Trying to manually execute the checks that are done by the installer:

What output do you receive for

which python
/usr/bin/env python --version
python2 -c 'import PyQt4'
python2 -c 'import dbus;print dbus.version'
python3 -c 'import PyQt4'
python3 -c 'import dbus;print(dbus.version)'

Revision history for this message
Cody Marcel (codymarcel) said :
#22

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ which python
/home/cmarcel/.ansible/py3/bin/python
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ /usr/bin/env python --version
Python 3.6.9
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python2 -c 'import PyQt4'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named PyQt4
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python3 -c 'import PyQt4'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt4'
ansible|cmarcel@cmarcel-wsl5:~/Downloads$

Revision history for this message
Cody Marcel (codymarcel) said :
#23

I installed DBus and qt5 through pip directly and now I can run this without getting any errors:

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python3 -c 'import dbus'
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python3 -c 'import PyQt5'

When run the installer for custom on qt5, however, it still says they are missing.

Revision history for this message
Manfred Hampl (m-hampl) said :
#24

Ok, that's the explanation. You have a very strange python installation which ignores adding packages from the Ubuntu repositories.

I assume that you have to install PyQt4 (or PyQt5) and dbus in a manner that the commands

python -c 'import PyQt4'
python -c 'import dbus;print dbus.version'

work without error

Just another check for diagnostics, what is the output of

which python
which python2
which python3

Revision history for this message
Cody Marcel (codymarcel) said :
#25

I wasn't able to install qt4 on python3. I gifured I only needed one or the other if I used the custom installer.

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python3 -c 'import dbus'
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python3 -c 'import PyQt5'
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python -c 'import PyQt4'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt4'
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python -c 'import PyQt5'
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python -c 'import dbus;print dbus.version'
  File "<string>", line 1
    import dbus;print dbus.version
                         ^
SyntaxError: invalid syntax
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ which python
/home/cmarcel/.ansible/py3/bin/python
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ which python2
/usr/bin/python2
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ which python3
/home/cmarcel/.ansible/py3/bin/python3
ansible|cmarcel@cmarcel-wsl5:~/Downloads$

Revision history for this message
Manfred Hampl (m-hampl) said :
#26

The key issue seems to be that Ubuntu 18.04 has by default python2 when you execute the command python. Apparently this is what the HPLIP installer assumes. On your system, however, executing "python" runs python3.

Does
python -c 'import dbus;print(dbus.version)'
work on your system? (It's python3, so the print statement requires parentheses.)

Revision history for this message
Cody Marcel (codymarcel) said :
#27

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ python -c 'import dbus;print(dbus.version)'
(1, 2, 16)

Revision history for this message
Cody Marcel (codymarcel) said :
#28

The system is using python3 as the default. That's also the one modules installed manually. Why would the installer try to use python2

Revision history for this message
Cody Marcel (codymarcel) said :
#29

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ which python
/home/cmarcel/.ansible/py3/bin/python

Revision history for this message
Manfred Hampl (m-hampl) said :
#30

In my opinion the installer should now be able to identify that dbus and PyQt5 are installed. Can you try running the installer in custom mode again, and if it fails upload the log to https://paste.ubuntu.com/ and provide the link here.

Revision history for this message
Cody Marcel (codymarcel) said :
#31
Revision history for this message
Cody Marcel (codymarcel) said :
#32

The inability to change owner (chown) failures is interesting. WHy is that happening before my sudo pw is provided?

Revision history for this message
Manfred Hampl (m-hampl) said :
#33

Please also upload hplip-install_Wed-13-May-2020_10:25:21.log to pastebin

Revision history for this message
Cody Marcel (codymarcel) said :
#34
Revision history for this message
Manfred Hampl (m-hampl) said :
#35

Do you see the possibility that you temporarily re-route "python" from your python3 installation to the standard Ubuntu python2?
What is in your PATH settings?

Revision history for this message
Cody Marcel (codymarcel) said :
#36

I set the PATH to use python2 for this. Seems really odd that the installer requires python2 (the final version was released 20 years ago).

ansible|cmarcel@cmarcel-wsl5:~/Downloads/hplip-3.20.3$ echo $PATH
/home/cmarcel/.ansible:/home/cmarcel/.ansible/py3/bin:/home/cmarcel/.ansible/bin:/home/cmarcel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin:/data/blt/tools/Linux/jdk/openjdk1.8.0_212_x64/bin

ansible|cmarcel@cmarcel-wsl5:~/Downloads$ PATH=/usr/bin/python2:/home/cmarcel/.ansible/bin:/home/cmarcel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin:/data/blt/tools/Linux/jdk/openjdk1.8.0_212_x64/bin
ansible|cmarcel@cmarcel-wsl5:~/Downloads$ echo $PATH
/usr/bin/python2:/home/cmarcel/.ansible/bin:/home/cmarcel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin:/data/blt/tools/Linux/jdk/openjdk1.8.0_212_x64/bin

After doing this the dependency check worked, but the install was still not successful.

https://paste.ubuntu.com/p/7ySMvJqxMN/

Revision history for this message
Manfred Hampl (m-hampl) said :
#37

The installation of the software looks complete, just the printer setup is missing.

WHat output do you receive for

sudo updatedeb
locate hp-setup

if it finds hp-setup somewhere, then try executing it.

Revision history for this message
Cody Marcel (codymarcel) said :
#38

Ok it was installed as requiring sudo/root privs, but I got it working. Thanks for the help.