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="-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 alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
I would say you have tmpfs on your /tmp partition and possibly with noexec on the same, which make this thing fail.
Nope, it's not the case. I have only a /boot and my / on separate partition.
(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.
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.
I tested the manual installation and it's not working. Same error. I'm gonna post the hp-check soon. Thanks :P
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
+ 05 May 2012; Daniel Pielmeier <billie@gentoo.org> 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.
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 Imaging Library (required for commandline scanning with hp-scan)... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: PolicyKit - Administrative policy framework... OK, found. Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4... OK, found. Checking for dependency: Python DBus - Python bindings for DBus... OK, found. Checking for dependency: Python devel - Python development files... OK, found. Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications... OK, found. Checking for dependency: Python XML libraries... OK, found. Checking for dependency: Python 2.3 or greater - Required for fax functionality... OK, found. Checking for dependency: Python 2.2 or greater - Python programming language... OK, found. Checking for dependency: Reportlab - PDF library for Python... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: SANE - Scanning library... error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: SANE - Scanning library development files... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: scanimage - Shell scanning program... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: xsane - Graphical scanner frontend for SANE... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. ---------------------- | HPLIP INSTALLATION | ---------------------- Currently installed HPLIP version... HPLIP 3.12.4 currently installed in '/usr/share/hplip'. Current contents of '/etc/hp/hplip.conf' file: # hplip.conf. Generated from hplip.conf.in by configure. [hplip] version=3.12.4 [dirs] home=/usr/share/hplip run=/var/run ppd=/usr/share/ppd/HP ppdbase=/usr/share/ppd doc=/usr/share/doc/hplip-3.12.4 html=/usr/share/doc/hplip-3.12.4/html icon=/usr/share/applications cupsbackend=/usr/libexec/cups/backend cupsfilter=/usr/libexec/cups/filter drv=/usr/share/cups/drv/hp # Following values are determined at configure time and cannot be changed. [configure] network-build=no pp-build=no gui-build=yes scanner-build=no fax-build=no dbus-build=yes cups11-build=no doc-build=no 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.12.4 restricted-build=no ui-toolkit=qt4 qt3=no qt4=yes policy-kit=yes hpijs-only-build=no lite-build=no udev-acl-rules=yes hpcups-only-build=no hpijs-only-build=no Current contents of '/var/lib/hp/hplip.state' file: Plugins are not installed. Could not access file: Aucun fichier ou dossier de ce type Current contents of '~/.hplip/hplip.conf' file: error: Could not access file: Aucun fichier ou dossier de ce type -------------------------- | DISCOVERED USB DEVICES | -------------------------- Device URI Model ---------------------------------------- ------------------------------------ hp:/usb/HP_LaserJet_P1505?serial=CA5618F HP LaserJet P1505 --------------------------------- | INSTALLED CUPS PRINTER QUEUES | --------------------------------- lpstat ------ Type: Unknown Device URI: No destinations added. --------------------- | PYTHON EXTENSIONS | --------------------- Checking 'cupsext' CUPS extension... OK, found. Checking 'pcardext' Photocard extension... OK, found. Checking 'hpmudext' I/O extension... OK, found. ----------------- | USB I/O SETUP | ----------------- Checking for permissions of USB attached printers... HP Device 0x3f17 at 002:003: Device URI: hp:/usb/HP_LaserJet_P1505?serial=CA5618F Device node: /dev/bus/usb/002/003 Mode: 0664 getfacl: Removing leading '/' from absolute path names # file: dev/bus/usb/002/003 # owner: root # group: lp user::rw- user:sylvain:rw- group::rw- mask::rw- other::r-- --------------- | USER GROUPS | --------------- root bin daemon sys adm disk wheel floppy tape video ----------- | SUMMARY | ----------- error: 7 errors and/or warnings. Please refer to the installation instructions at: http://hplip.sourceforge.net/install/index.html Done.
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
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?
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 ?
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.
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.
$ ./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
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 symlink /usr/share/hplip/fax/plugins/fax_marvell.so (link) to file /usr/share/hplip/fax/plugins/fax_marvell-x86_64.so (target)... hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1000.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1005_series.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1018.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1020.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1005.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1006.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1007.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1008.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1009.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_professional_p1102.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_professional_p1102w.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_professional_p1566.fw.gz already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/data/plugins/license.txt already exists. Replacing. hplip-plugin-install[26390]: debug: Target file /usr/share/hplip/prnt/plugins/lj-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/prnt/plugins/lj.so (link) to file /usr/share/hplip/prnt/plugins/lj-x86_64.so (target)... hplip-plugin-install[26390]: debug: Updating hplip.conf - installed = 1 hplip-plugin-install[26390]: debug: Unable to open file /var/lib/hp/hplip.state for writing. hplip-plugin-install[26390]: debug: Updating hplip.conf - eula = 1 hplip-plugin-install[26390]: debug: Unable to open file /var/lib/hp/hplip.state for writing. hplip-plugin-install[26390]: debug: Unable to open file /var/lib/hp/hplip.state for writing. I think that /var/lib/hp should exist before trying to write inside it.
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[26473]: debug: Symlink already exists. Replacing. hplip-plugin-install[26473]: debug: Creating symlink /usr/share/hplip/fax/plugins/fax_marvell.so (link) to file /usr/share/hplip/fax/plugins/fax_marvell-x86_64.so (target)... hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1000.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1005_series.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1018.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_1020.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1005.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1006.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1007.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1008.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1009.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_professional_p1102.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_professional_p1102w.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/firmware/hp_laserjet_professional_p1566.fw.gz already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/data/plugins/license.txt already exists. Replacing. hplip-plugin-install[26473]: debug: Target file /usr/share/hplip/prnt/plugins/lj-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/prnt/plugins/lj.so (link) to file /usr/share/hplip/prnt/plugins/lj-x86_64.so (target)... hplip-plugin-install[26473]: debug: Updating hplip.conf - installed = 1 hplip-plugin-install[26473]: debug: Updating hplip.conf - eula = 1 Done. After that, I rerun $ hp-setup And I can print. So, there's something wrong with the policykit use flag. Because, now if I created the /var/lib/hp directory and then I run hp-setup, it's working without any manual intervention.
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
Not exactly the same error, but xsane crash with segmentation fault with hplip-3.12.4. Revert to 3.11.10 fixes xsane start.
(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.
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
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.
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.
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?
submitted upstream bug https://bugs.launchpad.net/hplip/+bug/1019826
(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)
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.
*** Bug 424501 has been marked as a duplicate of this bug. ***
@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.
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.
@Sylvain Alain: Does changing the active python version fix this for you? And by the way hplip does not work with python 3.
I'm already running with Python 2.7 : sylvain@funtootux ~ $ eselect python list Available Python interpreters: [1] python2.7 * [2] python3.2
(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.
*** Bug 438886 has been marked as a duplicate of this bug. ***
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 ?
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.
(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.
Ok, I will open a new bugzilla.