hplip ver. 3.12.4 crash during the installation of the plugin

Bug #994924 reported by Sylvain Alain
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Confirmed
Undecided
Unassigned
Gentoo Linux
Fix Released
Medium

Bug Description

Hi, everytime that I'm trying to add my hp laserjet p1505 with hp-setup, I can see my printer, I see the message that hp-setup was able to install the plugin, but after that, it crash with this error :

error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.

I don't have the problem with this version : 3.12.2-r2

Reproducible: Always

Steps to Reproduce:
1. # emerge -av hplip
2. # dispatch-conf
3.# hp-setup
Actual Results:
Calculating dependencies... done!
[ebuild U ] net-print/hplip-3.12.4 [3.12.2-r2] USE="X acl hpcups libnotify policykit qt4 -doc -fax -hpijs -kde -minimal -parport -scanner -snmp -static-ppds" 20,121 kB
funtootux ~ # hp-setup

HP Linux Imaging and Printing System (ver. 3.12.4)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard 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: Fax setup disabled - Python 2.3+ required.
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
Searching... (bus=usb, search=(None), desc=0)
error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.

Expected Results:
plug-in installation successful and I should see that my printer is there localhost:631

For the record, my internet connection is working and I don't have this problem with version 3.12.2-r2.

funtootux ~ # hp-check -t

HP Linux Imaging and Printing System (ver. 3.12.4)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-14 Hewlett-Packard 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).

Saving output in log file: hp-check.log

Initializing. Please wait...
\Traceback (most recent call last):
  File "/usr/bin/hp-check", line 206, in <module>
    core.init()
  File "/usr/share/hplip/installer/core_install.py", line 413, in init
    self.check_dependencies(callback)
  File "/usr/share/hplip/installer/core_install.py", line 506, in check_dependencies
    self.have_dependencies[d] = self.dependencies[d][3]()
  File "/usr/share/hplip/installer/core_install.py", line 1067, in check_cupsddk
    return check_file('drv', commands.getoutput("cups-config --serverbin") + "/driver") and check_file('media.defs', "/usr/share/cupsddk/include")
NameError: global name 'commands' is not defined

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :
Download full text (6.1 KiB)

Hi, everytime that I'm trying to add my hp laserjet p1505 with hp-setup, I can see my printer, I see the message that hp-setup was able to install the plugin, but after that, it crash with this error :

error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.

I don't have the problem with this version : 3.12.2-r2

Reproducible: Always

Steps to Reproduce:
1. # emerge -av hplip
2. # dispatch-conf
3.# hp-setup
Actual Results:
Calculating dependencies... done!
[ebuild U ] net-print/hplip-3.12.4 [3.12.2-r2] USE="X acl hpcups libnotify policykit qt4 -doc -fax -hpijs -kde -minimal -parport -scanner -snmp -static-ppds" 20,121 kB
funtootux ~ # hp-setup

HP Linux Imaging and Printing System (ver. 3.12.4)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard 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: Fax setup disabled - Python 2.3+ required.
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
Searching... (bus=usb, search=(None), desc=0)
error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.

Expected Results:
plug-in installation successful and I should see that my printer is there localhost:631

For the record, my internet connection is working and I don't have this problem with version 3.12.2-r2.

funtootux ~ # emerge --info
Portage 2.3.3-r4 (default/linux/amd64/2008.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.4.0-rc4 x86_64)
=================================================================
System uname: Linux-3.4.0-rc4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.1.8
Timestamp of tree: Mon, 30 Apr 2012 18:00:01 +0000
app-shells/bash: 4.2_p24
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.4_pre20120429, 3.2.4_pre20120429
dev-util/cmake: 2.8.7-r5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1.8-r3
sys-apps/openrc: 0.8.3-r8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.11.5
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.6.2-r1
sys-devel/gcc-config: 1.5
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc: 2.13-r4
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="...

Read more...

Revision history for this message
In , Tomáš Chvátal (scarabeus) wrote :

I would say you have tmpfs on your /tmp partition and possibly with noexec on the same, which make this thing fail.

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

Nope, it's not the case.

I have only a /boot and my / on separate partition.

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

(In reply to comment #2)
> Nope, it's not the case.

I have only a /boot and my / on separate partition.

I don't use any tmpfs on that box.

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

First I do not own a printer requiring a plug-in so I can not test anything here. Also the plug-in is not part of hplip and thus not officially supported, but maybe we can find the problem. Can you please attach the output of hp-check.

Can you try to install the plug-in manually without hp-setup by downloading it from http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/ and check if the manual installation succeeds.

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

I tested the manual installation and it's not working.

Same error.

I'm gonna post the hp-check soon.

Thanks :P

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

funtootux ~ # hp-check

HP Linux Imaging and Printing System (ver. 3.12.4)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-14 Hewlett-Packard 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).

Saving output in log file: hp-check.log

Initializing. Please wait...
\Traceback (most recent call last):
  File "/usr/bin/hp-check", line 206, in <module>
    core.init()
  File "/usr/share/hplip/installer/core_install.py", line 413, in init
    self.check_dependencies(callback)
  File "/usr/share/hplip/installer/core_install.py", line 506, in check_dependencies
    self.have_dependencies[d] = self.dependencies[d][3]()
  File "/usr/share/hplip/installer/core_install.py", line 1067, in check_cupsddk
    return check_file('drv', commands.getoutput("cups-config --serverbin") + "/driver") and check_file('media.defs', "/usr/share/cupsddk/include")
NameError: global name 'commands' is not defined

Revision history for this message
Sylvain Alain (d2-racing) wrote :
Download full text (4.5 KiB)

I'm running Gentoo/Funtoo linux :

funtootux ~ # emerge --info
Portage 2.3.3-r4 (default/linux/amd64/2008.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.4.0-rc4 x86_64)
=================================================================
System uname: Linux-3.4.0-rc4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.1.8
Timestamp of tree: Mon, 30 Apr 2012 18:00:01 +0000
app-shells/bash: 4.2_p24
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.4_pre20120429, 3.2.4_pre20120429
dev-util/cmake: 2.8.7-r5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1.8-r3
sys-apps/openrc: 0.8.3-r8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.11.5
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.6.2-r1
sys-devel/gcc-config: 1.5
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc: 2.13-r4
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5.0 --with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac acl acpi alac alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread emboss encode exif fam firefox flac fortran gdbm gdu gif gnome gpm gtk gtk3 iconv ipv6 jpeg lame lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb userlocales vorbis wavpack wxwidgets x264 xcb xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alia...

Read more...

Revision history for this message
Sylvain Alain (d2-racing) wrote :

For the record, version 3.12.2-r2 is working perfectly on my box.

Is there a way to debug this on my side ?

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

+ 05 May 2012; Daniel Pielmeier <email address hidden> hplip-3.12.4.ebuild:
+ Drop cupsddk patch. It should not matter anymore as cupsddk has been dropped
+ from the tree. This should also fix part of bug #414195 where hp-check fails.
+ Add an elog message about users who must be in the lp group to print. This
+ fixes bug #414215.

It seems there was a patch which caused at least part of the problem with hp-check failing. I have removed this patch as it was about cupsddk which has been removed from the tree, so it shouldn't be needed anymore.

Please try again. At least hp-check should work now but maybe it fixes the plug-in issue as well.

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :
Download full text (7.7 KiB)

funtootux ~ # hp-check

HP Linux Imaging and Printing System (ver. 3.12.4)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-14 Hewlett-Packard 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).

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux funtootux 3.4.0-rc5 #1 SMP PREEMPT Tue May 1 20:03:52 EDT 2012 x86_64 Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz GenuineIntel GNU/Linux

Distribution:
gentoo n/a

Checking Python version...
OK, version 2.7.4 installed

Checking PyQt 4.x version...
OK, version 4.9.1 installed.

Checking for CUPS...
Status:
Version: 1.5.2
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 1.0.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imagin...

Read more...

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

It still crash with the same message :

funtootux ~ # hp-setup

HP Linux Imaging and Printing System (ver. 3.12.4)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard 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: Fax setup disabled - Python 2.3+ required.
Searching... (bus=usb, search=(None), desc=0)
error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.

I downloaded the plugin manually and it still say the same thing.

At least now hp-check runs perfectly :P

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

Which messages or logs do you get by when running the plug in installer manually? You are not in the lp group what happens if you add yourself to that group?

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

Hi, I tested with my sylvain account and also with the root account.

Same error about the plugin failed.

For the record, I have these groups :

sylvain@funtootux ~ $ groups
lp wheel floppy audio cdrom video usb users vboxusers kvm games plugdev sylvain
sylvain@funtootux ~ $

So, I'm already member of the lp group.

Is there any log during the installation process of hp-setup that I could paste here ?

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

For the record, I notice that hp-systray & is not working.

It says that I need to installation the plugin to be able to run that apps.

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi Sylvain Alain,

from the above logs, plugin was failed to installed since internet connection was not present.
And this crash is an integration issue by Gentoo distro.

Please install HPLIP 3.12.4 as mentioned in "http://hplipopensource.com/hplip-web/install/manual/distros/gentoo.html" site.
Please install plugin by connecting to internet and run "su -c hp-plugin" command.

Please let us know if you need further information.

Thanks & Regards,
Amarnath

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

I don't know if there are logs from hp-setup. I wanted the output from the manual plug-in install and not that from hp-setup. With manual install i did not mean running hp-plugin!!!

I did just download the plug-in and extracted the contents of the run file to the directory hplip-3.12.4-plugin with the following command:
./hplip-3.12.4-plugin.run --noexec --target hplip-3.12.4-plugin

In that directory I run:
./hplip-plugin-install --help
which tells me that there is a debug mode. Maybe you can get more information this way.

Also "find / ! -fstype proc ! -fstype sysfs -type f -mmin -2" for instance gives you the files which changed in the last two minutes. This way you can find if any logs were written.

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

$ ./hplip-plugin-install -i -l debug

Gives me this error :

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
hplip-plugin-install[2917]: debug: installPlugin: org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Error parsing unix-process subject: Didn't find value for key `start-time' of type t
error: Plugin installation failed

Your command :

find / ! -fstype proc ! -fstype sysfs -type f -mmin -2
find: `/proc/2976/task/2976/fdinfo/6': Aucun fichier ou dossier de ce type
find: `/proc/2976/fdinfo/6': Aucun fichier ou dossier de ce type
/tmp/CRX_75DAF8CB7768/manifest.json
/tmp/CRX_75DAF8CB7768/crl-set
/tmp/hp-pkservice.log.2915
/tmp/hp-pkservice.log.2919
/root/.xauthON68DV
/var/log/everything/current
/var/log/Xorg.0.log
/var/log/wtmp
/var/log/critical/current
/var/run/utmp
/home/sylvain/.local/share/gnome-shell/application_state
/home/sylvain/.config/google-chrome/Safe Browsing Bloom Filter 2
/home/sylvain/.config/google-chrome/Safe Browsing Bloom
/home/sylvain/.config/google-chrome/Safe Browsing Download
/home/sylvain/.config/google-chrome/Safe Browsing Csd Whitelist
/home/sylvain/.config/google-chrome/Safe Browsing Download Whitelist
/home/sylvain/.config/google-chrome/Certificate Revocation Lists
/home/sylvain/.config/google-chrome/Local State
/home/sylvain/.config/google-chrome/Default/Preferences
/home/sylvain/.config/google-chrome/Default/Cookies
/home/sylvain/.config/google-chrome/Default/Web Data-journal
/home/sylvain/.config/google-chrome/Default/QuotaManager
/home/sylvain/.config/google-chrome/Default/History Index 2012-05
/home/sylvain/.config/google-chrome/Default/History
/home/sylvain/.config/google-chrome/Default/Current Session
/home/sylvain/.config/google-chrome/Default/QuotaManager-journal
/home/sylvain/.config/google-chrome/Default/History-journal
/home/sylvain/.config/google-chrome/Default/Web Data
/home/sylvain/.config/google-chrome/Default/Cookies-journal
/home/sylvain/.cache/google-chrome/Default/Cache/f_00001f
/home/sylvain/.cache/google-chrome/Default/Cache/data_3
/home/sylvain/.cache/google-chrome/Default/Cache/index
/home/sylvain/.cache/google-chrome/Default/Cache/f_00001e
/home/sylvain/.cache/google-chrome/Default/Cache/f_00001d
/home/sylvain/.cache/google-chrome/Default/Cache/data_0
/home/sylvain/.cache/google-chrome/Default/Cache/data_1
/home/sylvain/.cache/google-chrome/Default/Cache/data_2
/home/sylvain/.cache/google-chrome/Default/Cache/f_000020

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :
Download full text (5.9 KiB)

I recompiled without the policykit use flag.

Here goes :

error: You must be root to install this plugin.
sylvain@funtootux ~/hplip-3.12.4-plugin $ su -

funtootux hplip-3.12.4-plugin # ./hplip-plugin-install -i -l debug

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ?
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1000.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1005_series.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1018.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1020.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1006.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1007.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1008.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1505.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_professional_p1102.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_professional_p1102w.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_professional_p1566.rules already exists. Replacing.
hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so already exists. Replacing.
hplip-plugin-install[26390]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26390]: debug: Creating symlink /usr/share/hplip/scan/plugins/bb_marvell.so (link) to file /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so (target)...
hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/scan/plugins/bb_soap-x86_64.so already exists. Replacing.
hplip-plugin-install[26390]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26390]: debug: Creating symlink /usr/share/hplip/scan/plugins/bb_soap.so (link) to file /usr/share/hplip/scan/plugins/bb_soap-x86_64.so (target)...
hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so already exists. Replacing.
hplip-plugin-install[26390]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26390]: debug: Creating symlink /usr/share/hplip/scan/plugins/bb_soapht.so (link) to file /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so (target)...
hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/fax/plugins/fax_marvell-x86_64.so already exists. Replacing.
hplip-plugin-install[26390]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26390]: debug: Creating ...

Read more...

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :
Download full text (5.9 KiB)

funtootux hplip-3.12.4-plugin # mkdir /var/lib/hp
funtootux hplip-3.12.4-plugin # cd /var/lib/hp
funtootux hp # touch hplip.state
funtootux hp # ls
hplip.state
funtootux hp # chmod 755 hplip.state

funtootux hp # cd /home/sylvain/hplip-3.12.4-plugin
funtootux hplip-3.12.4-plugin # ./hplip-plugin-install -i -l debug

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ?
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1000.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1005_series.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1018.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_1020.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1005.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1006.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1007.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1008.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_p1505.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_professional_p1102.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_professional_p1102w.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /lib/udev/rules.d/86-hpmud-hp_laserjet_professional_p1566.rules already exists. Replacing.
hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so already exists. Replacing.
hplip-plugin-install[26473]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26473]: debug: Creating symlink /usr/share/hplip/scan/plugins/bb_marvell.so (link) to file /usr/share/hplip/scan/plugins/bb_marvell-x86_64.so (target)...
hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/scan/plugins/bb_soap-x86_64.so already exists. Replacing.
hplip-plugin-install[26473]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26473]: debug: Creating symlink /usr/share/hplip/scan/plugins/bb_soap.so (link) to file /usr/share/hplip/scan/plugins/bb_soap-x86_64.so (target)...
hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so already exists. Replacing.
hplip-plugin-install[26473]: debug: Symlink already exists. Replacing.
hplip-plugin-install[26473]: debug: Creating symlink /usr/share/hplip/scan/plugins/bb_soapht.so (link) to file /usr/share/hplip/scan/plugins/bb_soapht-x86_64.so (target)...
hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/fax/plugins/fax_marvell-x86_64.so already exists. Replacing.
hplip-plugin-install[...

Read more...

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

It looks like the manual plug-in install does not write any logs.

/var/lib/hp is owned by hplip, so it should exist.

Now we have to find out how to fix this policykit error

Revision history for this message
In , Eric-chatellier (eric-chatellier) wrote :

Not exactly the same error, but xsane crash with segmentation fault
with hplip-3.12.4.
Revert to 3.11.10 fixes xsane start.

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

(In reply to comment #18)
> Not exactly the same error, but xsane crash with segmentation fault
> with hplip-3.12.4.
> Revert to 3.11.10 fixes xsane start.

I am absolutely sure this is a different bug or does it work if you compile hplip without the policykituse flag? If not please open a new bug and provide some information about your problem.

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

I found this upstream bug [1] and it looks like this is probably a bug in polkit.

[1] https://bugs.launchpad.net/hplip/+bug/913730

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

This is not HPLIP issue, but integration in Gentoo. The code which causes the crash in not present in actual source code in HPLIP.

Can someone from Gentoo have a look on this issue?

Changed in hplip:
status: New → Invalid
Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

CC-ing polkit maintainers for help.

@freedesktop, nirbheek: Can you please take a look at this. According to hplip upstream this is an issue with polkit.

Revision history for this message
In , Brian Dolbec (dolsen) wrote :

OK, I am having similar troubles with hplip both 3.12.4 and 3.12.6.

1) the /var.lib/hp dir is not installed by the ebuild. It seems that recent versions no longer install the hplip.state file, so it is an empty directory and does not get installed. running mkdir /var/lib/hp fixed that for me.

This is covered in upstream bug https://bugs.launchpad.net/hplip/+bug/1018303

Also it is mentioned with a fixed ebuild in our bug 352439 although his fix was cat >> "${ED}/var/lib/hp/hplip.state" << _EOF_

Where I believe adding a "keepdir /var/lib/hp" is probably the correct way. Also that bug is assigned to Diego

2) I have added users to the lp group which has fixed another issue.

3) I am having the same plugin installed failed issues in that it downloads and install, then install fails. Running hp-setup in -g (debug mode) it produses more output which indicates:

hp-setup[23433]: debug:
Done.
 Plug-in installation successful.

hp-setup[23433]: debug:
Done.

hp-setup[23433]: debug: Plugin is installed
hp-setup[23433]: debug: scan Plug-in file /usr/share/hplip/scan/plugins/bb_marvell.so status: 1
hp-setup[23433]: debug: scan Plug-in file /usr/share/hplip/scan/plugins/bb_soapht.so status: 1
hp-setup[23433]: debug: scan Plug-in file /usr/share/hplip/scan/plugins/bb_soap.so status: 1
hp-setup[23433]: debug: fax Plug-in file /usr/share/hplip/fax/plugins/fax_marvell.so status: 1
hp-setup[23433]: debug: print Plug-in file /usr/share/hplip/prnt/plugins/lj.so status: 1
hp-setup[23433]: debug: Either print file is not present or symbolic link is missing: /usr/share/hplip/prnt/plugins/hbpl1.so
hp-setup[23433]: debug: print Plug-in file /usr/share/hplip/prnt/plugins/hbpl1.so status: -1
hp-setup[23433]: debug: Plug-in files might be corrupted. Re-install plug-in
error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.

Done.
big_daddy brian #

That file or symlink is not there.

I'll try recompiling without the policykit use flag.

Revision history for this message
In , Brian Dolbec (dolsen) wrote :

USE = -policykit did not fix it for me. Continuing with the -policykit install, trying the manual install, while it did not produce any errors, and still had the same problem. Looking at the unpacked plugin. I found 32 and 64 bit versions of the missing file.

big_daddy hplip-3.12.6-plugin # cp hbpl1-x86_64.so /usr/share/hplip/prnt/plugins/
big_daddy hplip-3.12.6-plugin # ln -s /usr/share/hplip/prnt/plugins/hbpl1-x86_64.so /usr/share/hplip/prnt/plugins/hbpl1.so

then rerunning hp-setup worked, it detected everything installed and proceeded with the setup and test page print.

:)

So, that should be an upstream bug in the plugin, not installing that lib, shouldn't it?

Revision history for this message
In , Brian Dolbec (dolsen) wrote :
Revision history for this message
In , Alexandre Rostovtsev (tetromino) wrote :

(In reply to comment #20)
(In reply to comment #20)

Are you seeing polkit-related errors in /var/log/messages and/or ~/.xsession-errors? (grep them for org.freedesktop.PolicyKit1)

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

Here /var/lib/hp is owned by hplip. I did unmerge hplip, removed /var/lib/hp and installed hplip again. This is with portage-2.1.10.65 which seems to install the empty directory.

$ equery b /var/lib/hp
 * Searching for /var/lib/hp ...
net-print/hplip-3.12.6 (/var/lib/hp)

@Sylvain Alain: Does the plugin install if /var/lib/hp exists or is hplip.state needed as well? In comment #16 you have created hplip.state with permissions 755 as well.

@Brain Dolbec: I assume your bug (this one and upstream) is fixed now? Bug #352439 is assigned to Diego because I do not maintain the plugin package and he seems to be interested in the plugin package. Feel free to maintain it, but from my point of view it causes nothing but problems. There also seem to be license issues. I recommend everybody buying a hp printer to choose one which does not require the binary plugins.

@Alexandre Rostovtsev: I can not reproduce this issue as I do not own a printer which needs a binary plugin.

@All: Please answer comment #25.

Revision history for this message
In , Jeroen Roovers (jer-gentoo) wrote :

*** Bug 424501 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

@Daniel, about your question , I only need to run this command to have a plugin working :

# mkdir /var/lib/hp

The hplip.state file is not required during my installation process.

Revision history for this message
In , Morten-dynamite (morten-dynamite) wrote :

It works if i set active python to python2.7

There is a python script in hplip-3.12.6-plugin.run/plugin_install.py that doesn't run with python 3+

After setting python to 2.7 the plugin installs fine and the printer prints.

Revision history for this message
Daniel Pielmeier (daniel-pielmeier) wrote :

The bug is not totally invalid. There was a patch in the Gentoo ebuild which caused hp-check to fail. This is now fixed but the issue of not finding the plugin still persists.

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

@Sylvain Alain: Does changing the active python version fix this for you?

And by the way hplip does not work with python 3.

Changed in hplip:
status: Invalid → Confirmed
Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

I'm already running with Python 2.7 :

sylvain@funtootux ~ $ eselect python list
Available Python interpreters:
  [1] python2.7 *
  [2] python3.2

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

(In reply to comment #31)
> I'm already running with Python 2.7 :
>
> sylvain@funtootux ~ $ eselect python list
> Available Python interpreters:
> [1] python2.7 *
> [2] python3.2

And it's still crashing.

Changed in gentoo:
importance: Unknown → Medium
Revision history for this message
In , Jeroen Roovers (jer-gentoo) wrote :

*** Bug 438886 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

I made some progress, I switched to python 2.7, but when I install the plugin, it require a ps.ppd.gz file and it's missing from the /usr/share/ppd/hp

I own a Hp LaserJet P1505.

Is there a way to bring back to life my printer with a valid ps.ppd.gz file ?

Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

Ok, I found my problem with the ppd file.

I didn't add the cupds service at default runlevel.

So now I can install the plugin and print.

Bottom line, if I set the policykit use flag on the hplip package, I cannot print.

I really need to disable policykit to be able to print something.

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

(In reply to comment #34)
> I made some progress, I switched to python 2.7, but when I install the
> plugin, it require a ps.ppd.gz file and it's missing from the
> /usr/share/ppd/hp
>
> I own a Hp LaserJet P1505.
>
> Is there a way to bring back to life my printer with a valid ps.ppd.gz file ?

Normally all pps are installed with hplip, however some printers usually older ones need static ppds which are installed with the static-ppds use flag.

(In reply to comment #35)
> Ok, I found my problem with the ppd file.

What was the problem?

> I didn't add the cupds service at default runlevel.

Why, if the printer is installed locally you should add it to the default runlevel according to the gentoo printing guide.

> So now I can install the plugin and print.
>
> Bottom line, if I set the policykit use flag on the hplip package, I cannot
> print.
>
> I really need to disable policykit to be able to print something.

Maybe it is a good idea to close your initial bug at launchpad and open a new one for the policykit problem. This way it probably gets more attention. The old bug is drowned with useless information regarding the policykit issue.

I also suggest the same for this bug. Finding the needed information within 35 comments is difficult. Please also open a new gentoo bug and add your upstream bug under "See Also:". Also add all information you can give about your policykit problem. Alexandre Rostovtsev question from comment 25 is still unanswered.

I am closing this bug for now as the plugin isue is solved.

Changed in gentoo:
status: Unknown → Fix Released
Revision history for this message
In , Sylvain Alain (d2-racing) wrote :

Ok, I will open a new bugzilla.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.