Description of problem: [root@anubis ~]# hp-plugin --gui HP Linux Imaging and Printing System (ver. 3.15.2) Plugin Download and Install Utility ver. 2.1 Copyright (c) 2001-15 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. error: Install the hplip-gui package for graphical support. warning: Qt/PyQt 4 initialization failed. error: hp-plugin requires GUI support (try running with --qt3). Try using interactive (-i) mode. [root@anubis ~]# hp-plugin -i HP Linux Imaging and Printing System (ver. 3.15.2) Plugin Download and Install Utility ver. 2.1 Copyright (c) 2001-15 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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.) ----------------------------------------- | PLUG-IN INSTALLATION FOR HPLIP 3.15.2 | ----------------------------------------- Option Description ---------- -------------------------------------------------- d Download plug-in from HP (recomended) p Specify a path to the plug-in (advanced) q Quit hp-plugin (skip installation) Enter option (d=download*, p=specify path, q=quit) ? d ------------------- | DOWNLOAD PLUGIN | ------------------- Checking for network connection... Downloading plug-in from: Downloading plug-in: [\ ] 0% Receiving digital keys: /bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9 ---------------------- | INSTALLING PLUG-IN | ---------------------- Creating directory plugin_tmp Verifying archive integrity... All good. Uncompressing HPLIP 3.15.2 Plugin Self Extracting Archive............................... Error importing HPLIP modules. Is HPLIP installed? error: Python gobject/dbus may be not installed Done. hplip-gui-3.15.2-2.fc22.x86_64 hplip-3.15.2-2.fc22.x86_64
I think this is due to the port to python3 not being complete. but it prevents me from using my printer on any Fedora 22 machine
I rebuilt hplip-3.15.2-6.fc22 using python2 and not python3 and it is working fine. Please revert python3 support in f22 and fix things in rawhide
Obviously we'd rather have the Python3 build working if possible. It looks like it might just be incomplete dependencies due to the plugin bringing in ones we can't know about, e.g. "error: Python gobject/dbus may be not installed" Could you see whether installing e.g. python-gobject, or python-dbus, or both, fixes it?
they were all already installed. it changes nothing.
OK, looking at this, it seems that the problem is with hpmudext only being a python3 module, and the downloaded plugin installer being python2. Reported upstream: https://bugs.launchpad.net/hplip/+bug/1434224
As a work-around, we'll add a new hplip-compat-libs sub-package for the Python 2 module.
hplip-3.15.2-8.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/hplip-3.15.2-8.fc22
after installing the update hp-plugin still fails to install the plugin, there is something still missing. Installed: hplip-compat-libs.x86_64 3.15.2-8.fc22 Upgraded: hpijs.x86_64 1:3.15.2-8.fc22 hplip.x86_64 3.15.2-8.fc22 hplip-common.x86_64 3.15.2-8.fc22 hplip-gui.x86_64 3.15.2-8.fc22 hplip-libs.x86_64 3.15.2-8.fc22 libsane-hpaio.x86_64 3.15.2-8.fc22 Complete! [root@anubis ~]# hp-plugin HP Linux Imaging and Printing System (ver. 3.15.2) Plugin Download and Install Utility ver. 2.1 Copyright (c) 2001-15 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. Checking for network connection... Downloading plug-in from: Receiving digital keys: /bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9 Creating directory plugin_tmp Verifying archive integrity... All good. Uncompressing HPLIP 3.15.2 Plugin Self Extracting Archive............................... warning: CUPSEXT could not be loaded. Please check HPLIP installation. error: Python gobject/dbus may be not installed error: Plug-in install failed. Done.
Sorry, my fault.
Package hplip-3.15.2-9.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hplip-3.15.2-9.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-4741/hplip-3.15.2-9.fc22 then log in and leave karma (feedback).
Still doesn't work. In GUI mode it displays a grey dialog and a bunch of errors: X Error: BadAccess (attempt to access private resource denied) 10 Extension: 130 (MIT-SHM) Minor opcode: 1 (X_ShmAttach) Resource id: 0x130 X Error: BadShmSeg (invalid shared segment parameter) 128 Extension: 130 (MIT-SHM) Minor opcode: 3 (X_ShmPutImage) Resource id: 0x280000b X Error: BadShmSeg (invalid shared segment parameter) 128 Extension: 130 (MIT-SHM) Minor opcode: 3 (X_ShmPutImage) Resource id: 0x280000b X Error: BadShmSeg (invalid shared segment parameter) 128 Extension: 130 (MIT-SHM) Minor opcode: 3 (X_ShmPutImage) Resource id: 0x280000b in 'interactive' mode it repeatedly does this when you tell it to download the plugin: Checking for network connection... Downloading plug-in from: Downloading plug-in: [\ ] 0% error: /root/.hplip/hplip-3.15.2-plugin.run file does not match its checksum. File may have been corrupted or altered
(In reply to awilliam from comment #12) > Still doesn't work. In GUI mode it displays a grey dialog and a bunch of > errors: > > X Error: BadAccess (attempt to access private resource denied) 10 > Extension: 130 (MIT-SHM) > Minor opcode: 1 (X_ShmAttach) > Resource id: 0x130 Yes, I can see this with all hp-* commands that are supposed to be run as root and that have any graphical output. Even with older hplip-3.14.10. Seems to be some Qt/PyQt problem. > in 'interactive' mode it repeatedly does this when you tell it to download > the plugin: > > Checking for network connection... > Downloading plug-in from: > Downloading plug-in: [\ ] 0% > error: /root/.hplip/hplip-3.15.2-plugin.run file does not match its > checksum. File may have been corrupted or altered I haven't been able to figure out what's the culprit, but it seems to be ok with 3.15.4 (http://koji.fedoraproject.org/koji/taskinfo?taskID=9493349).
Note: I don't think any of the graphical HPLIP tools are meant to run as root, are they? The way it's supposed to work is that a udev rule grants the console user an ACL on the USB device node.
er, yeah, they are, hp-plugin explicitly tells you to run it as root if you try and do anything else: [adamw@adam Beta_RC3]$ hp-plugin HP Linux Imaging and Printing System (ver. 3.15.2) Plugin Download and Install Utility ver. 2.1 Copyright (c) 2001-15 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. error: You must be root to run this utility.
Ah, OK, I guess that one's special because it wants to write to root-owned directories. I think I was getting confused with hp-toolbox, which shouldn't need to run as root.
Thanks to Andrew Travneff, the graphical-app-shows-up-grey part of this bug is likely https://bugzilla.redhat.com/show_bug.cgi?id=1185893 .
Hi, About this being related to bug 1185893, this has been discussed on the xorg-devel list and we do not consider this an Xorg bug, the problem is lack of proper error checking of the MIT SHM extension related X calls in the app / toolkit. This actually is a feature because people are now getting proper protection of unauthorized accesses to their shared memory segments where before anyone could access them (as the X-server was doing the accessing and it ran as root). Also gui apps should really not run as root, ever. I realize this is sometimes easiest, but we should not ship anything setup this way ootb and/or depending on this (running as root). Note I've also discussed this with the some qt people and it is fixed in qt5, and currently there are no plans to fix this for qt4, there answer to this problem is: Do not run gui apps as root. Note that there is a workaround for qt4 described in bug 1185893: kcalc --graphicssystem native So this can be worked around by making the hplip utilities to the same from code, and / or modifying the launchers. This is a workaround though and in the long run the need to run gui code as root should really be dropped. Regards, Hans
*** Bug 1213610 has been marked as a duplicate of this bug. ***
hplip-3.15.2-9.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
It now works OK as 'hp-plugin -i', but it still has the X problem in graphical mode. I'll file a new bug for that.
Reopening since it's still not working with hplip-3.15.2-9.fc22.x86_64. hplip-3.15.4-1.fc22.x86_64 works from command line in interactive mode, it's built in koji but not pushed to the repos.
hplip-3.15.4-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/hplip-3.15.4-1.fc22
Package hplip-3.15.4-1.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hplip-3.15.4-1.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-9592/hplip-3.15.4-1.fc22 then log in and leave karma (feedback).
hplip-3.15.6-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
hp-plugin still says "file does not match its checksum" and fails to install the "plugin" that would allow the printer to actually work. $ rpm -q hplip hplip-3.15.6-1.fc22.x86_64 $ sudo /usr/bin/hp-plugin -i 10.10.73.58 HP Linux Imaging and Printing System (ver. 3.15.6) Plugin Download and Install Utility ver. 2.1 [...] Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? Option Description ---------- -------------------------------------------------- d Download plug-in from HP (recomended) p Specify a path to the plug-in (advanced) q Quit hp-plugin (skip installation) Enter option (d=download*, p=specify path, q=quit) ? ------------------- | DOWNLOAD PLUGIN | ------------------- Checking for network connection... Downloading plug-in from: Downloading plug-in: [\ ] 0% error: Plugin download failed with error code = 8 error: file does not match its checksum. File may have been corrupted or altered
It worked for me, several times.
(In reply to amturnip from comment #26) > Downloading plug-in: [\ ] 0% error: > Plugin download failed with error code = 8 > error: file does not match its checksum. File may have been corrupted or > altered I can see several similar upstream reports, with a reply that Sourceforge site is down and to download & install the plugin manually. https://bugs.launchpad.net/hplip/+bug/1475980 https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1476011 https://bugs.launchpad.net/hplip/+bug/1476528
I've contacted a HP and they claim that such bug is fixed already since 3.15.4 release of hplip, it should be safe now to drop hp-compat-lib package from hplip. Quoting HP: > This is fixed a few releases back, in 3.15.4 release. This bug was marked as duplicate of https://bugs.launchpad.net/bugs/1422004 , so you can see all the updates there.
hplip-3.15.7-5.fc23 has been submitted as an update for Fedora 23. https://admin.fedoraproject.org/updates/hplip-3.15.7-5.fc23
Package hplip-3.15.7-5.fc23: * should fix your issue, * was pushed to the Fedora 23 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hplip-3.15.7-5.fc23' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-13633/hplip-3.15.7-5.fc23 then log in and leave karma (feedback).
hplip-3.15.7-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Since I have the same issue on F22, I created a F22 RPM with copr (https://copr.fedoraproject.org/coprs/neteler/hplip/) using the SRPM from http://koji.fedoraproject.org/koji/packageinfo?packageID=205 Still there is a dependency issue: dnf copr enable neteler/hplip dnf update hp-doctor Saving output in log file: /tmp/hp-check.log HP Linux Imaging and Printing System (ver. 3.15.7) Dependency/Version Check Utility ver. 15.1 [...] Kernel: 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 GNU/Linux Host: oboe.localdomain Proc: 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 GNU/Linux Distribution: fedora 22 Bitness: 64 bit [...] ------------------------- | General Dependencies | ------------------------- error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed' [...] Hewlett-Packard-HP-LaserJet-Professional-P1102w ----------------------------------------------- Type: Printer Device URI: hp:/net/HP_LaserJet_Professional_P1102w?zc=hpcasa_a_frank PPD: /etc/cups/ppd/Hewlett-Packard-HP-LaserJet-Professional-P1102w.ppd PPD Description: HP LaserJet Professional P 1102w, hpcups 3.15.7, requires proprietary plugin Printer status: printer Hewlett-Packard-HP-LaserJet-Professional-P1102w is idle. enabled since Mon 07 Sep 2015 09:06:59 PM CEST warning: plug-in status: Version mismatch Communication status: Good [...] Missing Required Dependencies ----------------------------- None Missing Optional Dependencies ----------------------------- error: 'PKG_FROM_PIP:notify2' package is missing/incompatible Plug-in Status -------------- error: Plug-ins need to be installed Total Errors: 1 Total Warnings: 3 Run 'hp-doctor' command to prompt and fix the issues. Done. What am I missing?
Any chance to get the hplip-3.15.7-5 in FC22? I cannot install the plugin... and so cannot use the printer
(In reply to markusN from comment #33) > ------------------------- > | General Dependencies | > ------------------------- > > error: python3-notify2 Python libnotify - Python bindings for the libnotify > Desktop notifications OPTIONAL - - > MISSING 'python3-notify2 needs to be installed' > > What am I missing? https://bugs.launchpad.net/hplip/+bug/1431880 (In reply to Paulo Fidalgo from comment #34) > I cannot install the plugin... and so cannot use the printer Maybe you are seeing bug #1249414 ?
I still can't find what is going on, because I was able to install on another FC22 computer.