Plugin installation succeeds but main installation still complains

Asked by BlushNine

The first time through the hplip install it complained that I needed to install the plugin. I downloaded the plugin and that looked fine.

$sh hplip-3.19.6-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.6 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Installer ver. 3.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.

Plug-in version: 3.19.6
Installed HPLIP version: 3.19.6
Number of files to install: 64

Done.

$sh hplip-3.19.6.run
Creating directory hplip-3.19.6
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.6 Self Extracting Archive...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................chown: changing ownership of './.libs/cupsext.soT': Operation not permitted
chown: changing ownership of './.libs/libhpmud.so.0.0.6T': Operation not permitted
chown: changing ownership of './.libs/libsane-hpaio.so.1.0.0T': Operation not permitted
chown: changing ownership of './.libs/hpmudext.soT': Operation not permitted
chown: changing ownership of './.libs/libhpipp.so.0.0.1T': Operation not permitted
chgrp: changing group of './.libs/cupsext.soT': Operation not permitted
chgrp: changing group of './.libs/libhpmud.so.0.0.6T': Operation not permitted
chgrp: changing group of './.libs/libsane-hpaio.so.1.0.0T': Operation not permitted
chgrp: changing group of './.libs/hpmudext.soT': Operation not permitted
chgrp: changing group of './.libs/libhpipp.so.0.0.1T': Operation not permitted

HP Linux Imaging and Printing System (ver. 3.19.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_Tue-23-Jul-2019_14:32:44.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.19.6 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Linux Mint 18.3.

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

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (yusteve)'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

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
----------------------------------
HPLIP-3.19.6 exists, this may conflict with the new one being installed.
Do you want to ('i'= Remove and Install*, 'q'= Quit)? :
Starting uninstallation...
HPLIP uninstallation is completed

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

RE-CHECKING DEPENDENCIES
------------------------
OK

RUNNING SCANJET DEPENDENCY COMMANDS
-----------------------------------
sudo apt-get install --assume-yes python-pip (Scanjet-depend step 1)
sudo pip install --upgrade pip (Scanjet-depend step 2)
sudo -H pip install setuptools (Scanjet-depend step 3)
sudo pip install --upgrade setuptools (Scanjet-depend step 4)
sudo apt-get install --assume-yes libleptonica-dev (Scanjet-depend step 5)
sudo apt-get install --assume-yes tesseract-ocr (Scanjet-depend step 6)
sudo apt-get install --assume-yes libtesseract-dev (Scanjet-depend step 7)
sudo -H pip install tesserocr (Scanjet-depend step 8)
sudo apt-get install --assume-yes tesseract-ocr-eng (Scanjet-depend step 9)
sudo apt-get install --assume-yes libzbar-dev (Scanjet-depend step 10)
sudo apt-get install --assume-yes python-zbar (Scanjet-depend step 11)
sudo apt-get install --assume-yes python-opencv (Scanjet-depend step 12)
sudo apt-get install --assume-yes python-pypdf2 (Scanjet-depend step 13)
sudo -H pip install imutils (Scanjet-depend step 14)
sudo apt-get install --assume-yes imagemagick* (Scanjet-depend step 15)
sudo apt-get install --assume-yes graphicsmagick* (Scanjet-depend step 16)
sudo -H pip install pypdfocr (Scanjet-depend step 17)
sudo -H pip install scikit-image (Scanjet-depend step 18)
sudo -H pip install scipy (Scanjet-depend step 19)
OK

PRE-BUILD COMMANDS
------------------
OK

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-qt4 --disable-qt5 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-libusb01_build --disable-foomatic-ppd-install --disable-hpijs-install --disable-class-driver --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build --enable-apparmor_build'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make'
Please wait, this may take several minutes...
Command completed successfully.

Running 'sudo make install'
Please wait, this may take several minutes...
Command completed successfully.

Build complete.

POST-BUILD COMMANDS
-------------------

CLOSE HP_SYSTRAY
----------------
Sending close message to hp-systray (if it is currently running)...
OK

HPLIP UPDATE NOTIFICATION
-------------------------
Do you want to check for HPLIP updates?. (y=yes*, n=no) : n

RESTART OR RE-PLUG IS REQUIRED
------------------------------
If you are installing a USB connected printer, and the printer was plugged in when you started this installer, you will need to either restart your PC or unplug and re-plug in your printer
(USB cable only). If you choose to restart, run this command after restarting: hp-setup (Note: If you are using a parallel connection, you will have to restart your PC. If you are using
network/wireless, you can ignore and continue).

Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) :
Please unplug and re-plugin your printer now. Press <enter> to continue or 'q' to quit:

PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
Do you want to setup printer in GUI mode? (u=GUI mode*, i=Interactive mode) :

HP Linux Imaging and Printing System (ver. 3.19.6)
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.

Found device: hp:/net/HP_Color_LaserJet_MFP_M477fdw?ip=192.168.11.14
Segmentation fault
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.
Segmentation fault
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.

Done.

RE-STARTING HP_SYSTRAY
----------------------

HP Linux Imaging and Printing System (ver. 3.19.6)
System Tray Status Service ver. 2.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.

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)

$sh hplip-3.19.6-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.6 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Installer ver. 3.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.

Plug-in version: 3.19.6
Installed HPLIP version: 3.19.6
Number of files to install: 64

Done.

$hp-check
Saving output in log file: /home/yusteve/Downloads/hplip-3.19.6/hp-check.log

HP Linux Imaging and Printing System (ver. 3.19.6)
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

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

 Kernel: 4.15.0-32-generic #35~16.04.1-Ubuntu SMP Fri Aug 10 21:54:34 UTC 2018 GNU/Linux
 Host: Jupiter
 Proc: 4.15.0-32-generic #35~16.04.1-Ubuntu SMP Fri Aug 10 21:54:34 UTC 2018 GNU/Linux
 Distribution: 22 18.3
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.19.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro 18.3 version

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

[hplip]
version=3.19.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.6
html=/usr/share/doc/hplip-3.19.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/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=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=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.19.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
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:
[upgrade]
notify_upgrade = false
last_upgraded_time = 1563906900
pending_upgrade_time = 0

[last_used]
device_uri = hp:/net/HP_Color_LaserJet_MFP_M477fdw?ip=192.168.11.14

[installation]
date_time = 07/23/2019 14:42:51
version = 3.19.6

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

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

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

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

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 sane-devel SANE - Scanning library development files REQUIRED - 1.0.25 OK -
Traceback (most recent call last):
  File "/usr/bin/hp-check", line 862, in <module>
    num_errors, num_warns = dep.validate(time_flag, is_quiet_mode)
  File "/usr/bin/hp-check", line 368, in validate
    self.core.dependencies[dep])
  File "/usr/bin/hp-check", line 210, in __update_deps_info
    installed_ver = self.core.version_func[deps_info[6]]()
  File "/usr/share/hplip/installer/dcheck.py", line 373, in get_pil_version
    return Image.VERSION
AttributeError: 'module' object has no attribute 'VERSION'

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
shivani mandora (shivani1708) said :
#1

Hi,

Please install HPLIP driver before installing plugin file.
After successful installation of run file install plugin file with the same version using hp-plugin command. It should work fine.
If you face any problem after this, please let me know.

Thanks,
Shivani

Revision history for this message
BlushNine (yusteve009) said :
#2

The reason I installed the plugin first is because I tried installing the HPLIP driver first. and failed. and because the during the HPLIP driver failure told me the plugin was not installed.
________________________________
From: <email address hidden> <email address hidden> on behalf of shivani mandora <email address hidden>
Sent: Thursday, July 25, 2019 5:58 AM
To: <email address hidden> <email address hidden>
Subject: Re: [Question #682260]: Plugin installation succeeds but main installation still complains

Your question #682260 on HPLIP changed:
https://answers.launchpad.net/hplip/+question/682260

    Status: Open => Answered

shivani mandora proposed the following answer:
Hi,

Please install HPLIP driver before installing plugin file.
After successful installation of run file install plugin file with the same version using hp-plugin command. It should work fine.
If you face any problem after this, please let me know.

Thanks,
Shivani

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/hplip/+question/682260/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/hplip/+question/682260

You received this question notification because you asked the question.

Revision history for this message
shivani mandora (shivani1708) said :
#3

Hi,

Please try uninstalling HPLIP before installing it using below command:

sudo hp-uninstall

Then install latestl run file. After installing run file,install plugin file and check once again.

Can you help with this problem?

Provide an answer of your own, or ask BlushNine for more information if necessary.

To post a message you must log in.