I have to install plugin each time i reboot in order to make printer work

Asked by Utku Helvacı

reopened

i am using clear linux

i have to run this command:

sudo su -c 'export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python3.6/site-packages; hp-plugin -i --plugin=/home/utku/Programlar/hplip/hplip-3.17.11-plugin.run'

in order to make printer work after reboot

My distribution does not have package manager but i have all the dependencies for making hplip work without fax and scanner support, i have an other device for scanning and snae binaries installed to /usr/local/lib, cups was installed by default and its located in /usr/bin, i had to enable cups service at first with these commands:

systemctl enable org.cups.cupsd.service
systemctl daemon-reload
systemctl start org.cups.cupsd.service

then installed foo2zjs drivers with downloading this archive:
http://foo2zjs.rkkda.com/foo2zjs.tar.gz

then i installed with these commands:

make
./getweb 1020
sudo make install
sudo make install-hotplug

then i opened http://localhost:631 at firefox, cups was running and i was in able to go http://localhost:631/admin with entering my username and password
my usb printer wasn't getting detected even after reboot, so i downloaded https://sourceforge.net/projects/hplip/files/hplip/3.17.11/hplip-3.17.11.run/download?use_mirror=nchc
and runned in /home/utku/Programlar/hplip directory, after the extraction complete i go to /home/utku/Programlar/hplip/hplip-3.17.11 directory because direct installation wasn't supported for my distribution.
in directory i have runned:

./configure --disable-network-build --disable-scan-build
make
sudo make install

after installation i was in able to see my printer at http://localhost:631/admin/ (find new printer) as:
hp:/usb/HP_LaserJet_1020?serial=JL3DDV1
i have selected foo2zjs driver, when i clicked "print test page" pc said "processing" then after 10 seconds "printing" but my printer wasn't printing anything and there was no sign of printing (like lights or any sound)

i have tried to run hp-toolbox but it was saying "error: Unable to load DBus libraries. Please check your installation and try again."
but i was installed pyqt4 and gobject 3.x and 2.2x

any way i tried to run hp-pugins and it worked, also after installing plugin my printer worked too , but i couldn't find a way to make it persistent after reboot.

uname -a
Linux clr-449e9b2a44f8458bb4885604dc172a1c 4.14.7-497.native #2 SMP Mon Dec 18 12:51:57 UTC 2017 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Utku Helvacı (tuxutku) said :
#1

hp-systray -g
HP Linux Imaging and Printing System (ver. 3.17.11)
System Tray Status Service ver. 2.0

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.

hp-systray[2008]: debug: No module named PyQt5
hp-systray[2008]: debug: Locking: /home/utku/.hplip/hp-systray.lock
hp-systray[2008]: debug: Creating pipe: hpssd (7) ==> systemtray (5)
hp-systray[2008]: debug: Creating pipe: hpssd (8) ==> hpdio (5)
hp-systray[2008]: debug: Creating pipe: hpdio (10) ==> hpssd (9)
hp-systray(hpdio)[2010]: debug: PID=2010
hp-systray(hpssd)[2009]: debug: PID=2009
hp-systray(hpssd)[2009]: debug: Entering main dbus loop...
hp-systray(qt4)[2008]: debug: PID=2008
hp-systray(qt4)[2008]: debug: Loading user settings...
hp-systray(qt4)[2008]: debug: FAB command: /usr/local/bin/hp-fab
hp-systray(qt4)[2008]: debug: Scan command: /usr/bin/xsane -V %SANE_URI%
hp-systray(qt4)[2008]: debug: Auto refresh: False
hp-systray(qt4)[2008]: debug: Auto refresh rate: 30
hp-systray(qt4)[2008]: debug: Auto refresh type: 1
hp-systray(qt4)[2008]: debug: Systray visible: 0
hp-systray(qt4)[2008]: debug: Systray messages: 0
hp-systray(qt4)[2008]: debug: Last used device URI: hp:/usb/HP_LaserJet_1020?serial=JL3DDV1
hp-systray(qt4)[2008]: debug: Last used printer: HP_LaserJet_1020
hp-systray(qt4)[2008]: debug: Working directory: /home/utku/Programlar/hplip/hplip-3.17.11-plugin.run
hp-systray(qt4)[2008]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-systray(qt4)[2008]: debug: Cache miss: hp_laserjet_1020
hp-systray(qt4)[2008]: debug: Reading file: /usr/local/share/hplip/data/models/models.dat
hp-systray(qt4)[2008]: debug: Searching for section [hp_laserjet_1020] in file /usr/local/share/hplip/data/models/models.dat
hp-systray(qt4)[2008]: debug: Found section [hp_laserjet_1020] in file /usr/local/share/hplip/data/models/models.dat
hp-systray(qt4)[2008]: debug: handle_hplip_updation upgrade_notify =0
hp-systray(qt4)[2008]: debug: upgrade notification is disabled in systray
hp-systray(qt4)[2008]: debug: Running hp-upgrade: /usr/local/bin/hp-upgrade

HP Linux Imaging and Printing System (ver. 3.17.11)
HPLIP upgrade latest version ver. 1.0

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.

warning: clear linux os for intel architecture distro is not found in AUTH_TYPES
hp-systray(hpssd)[2009]: debug: GetHistory('hp:/usb/HP_LaserJet_1020?serial=JL3DDV1')
hp-systray(qt4)[2008]: debug: Showing...

hp-check
Saving output in log file: /home/utku/hp-check.log

HP Linux Imaging and Printing System (ver. 3.17.11)
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: clear linux os for intel architecture distro is not found in AUTH_TYPES
|xsane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
warning: 0-19790 version is not supported. Using 0-0 versions dependencies to verify and install...

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

 Kernel: 4.14.7-497.native #2 SMP Mon Dec 18 12:51:57 UTC 2017 GNU/Linux
 Host: clr-449e9b2a44f8458bb4885604dc172a1c
 Proc: 4.14.7-497.native #2 SMP Mon Dec 18 12:51:57 UTC 2017 GNU/Linux
 Distribution: 0 19790
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.17.11
HPLIP-Home: /usr/local/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 0 distro 19790 version

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

[hplip]
version=3.17.11

[dirs]
home=/usr/local/share/hplip
run=/var/run
ppd=/usr/local/share/ppd/HP
ppdbase=/usr/local/share/ppd
doc=/usr/local/share/doc/hplip-3.17.11
html=/usr/local/share/doc/hplip-3.17.11
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/local/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=yes
scanner-build=no
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.17.11
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=no
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.17.11

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 12/23/17 13:53:08
version = 3.17.11

[upgrade]
latest_available_version = 3.17.10
notify_upgrade = false
last_upgraded_time = 1513953916
pending_upgrade_time = 0

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_1020?serial=JL3DDV1"
printer_name = HP_LaserJet_1020
working_dir = /home/utku/Programlar/hplip/hplip-3.17.11-plugin.run

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

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

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

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.2.1 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.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.2.5 OK -
 error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
 error: sane-devel SANE - Scanning library development files REQUIRED - 1.0.27 MISSING 'sane-devel needs to be installed'
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 error: pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 MISSING 'pyqt4-dbus needs to be installed'
 libpthread libpthread - POSIX threads library REQUIRED - 2.26 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.12 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.6 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.4 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 error: reportlab Reportlab - PDF library for Python OPTIONAL 2.0 - MISSING 'reportlab needs to be installed'
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.2.6 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.12 OK -
 error: python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python-notify needs to be installed'
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 error: sane SANE - Scanning library REQUIRED - 1.0.27 MISSING 'sane needs to be installed'

----------------------
| 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.17.11 MISSING 'scanext needs to be installed'

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.22 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.6 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - - OK -
 error: policykit PolicyKit - Administrative policy framework OPTIONAL - 0.113 MISSING 'policykit needs to be installed'
xsane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
xsane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
 error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
 dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
 error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'

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

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

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

  Device URI Model
  -------------------------------- ----------------
  hp:/usb/HP_LaserJet_1020?serial= HP LaserJet 1020
  JL3DDV1

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

GnomeManualDuplex
-----------------
Type: Unknown
Device URI: gmd:/

HP_LaserJet_1020
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1020?serial=JL3DDV1
Required plug-in status: Installed
Communication status: Good

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

USB HP_LaserJet_1020 Required - - OK Node:'/dev/bus/usb/002/004' Perm:' root lp rw- rw- rw- rw- r--'

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

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

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

Total Errors: 10
Total Warnings: 0

Done.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Utku Helvacı (tuxutku) said :
#3

no response given, reopenning

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.