Python gobject dbus may be not installed error plug in install failed

My printer no longer responded to print commands. The self-test page via the HP dashboard also got stuck in the queue. Therefore I decided to install the new version of HPLIP (3.19.12 instead of the previously installed version 3.19.11). Printing does now work properly but the scan function does not...

My printer no longer responded to print commands. The self-test page via the HP dashboard also got stuck in the queue. Therefore I decided to install the new version of HPLIP (3.19.12 instead of the previously installed version 3.19.11).
Printing does now work properly but the scan function does not.
So I manually try to install the HP plugin via terminal. Here is the installation log:

XYZ@ASUSPRO-S340MF-D340MF:~$ hp-plugin

HP Linux Imaging and Printing System (ver. 3.19.12)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

HP Linux Imaging and Printing System (ver. 3.19.12)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Checking for network connection…
Downloading plug-in from: None
Plugin is not accessible. Trying to download it from fallback location: [https://developers.hp.com/sites/default/files/hplip-3.19.12-plugin.run]
Receiving digital keys: /usr/bin/gpg —homedir /home/christoph/.hplip/.gnupg —no-permission-warning —keyserver pgp.mit.edu —recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity… All good.
Uncompressing HPLIP 3.19.12 Plugin Self Extracting Archive……………………………………………………..

HP Linux Imaging and Printing System (ver. 3.19.12)
Plugin Installer ver. 3.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

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

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Now I do not know what to do. Can anyone help me?

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

norm.h

Level 5
Level 5
Posts: 685
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Can’t install HP plugin. SOLVED

I’m running Mint 19.3.
I have a brand new HP DeskJet 2723 All-in-One printer and I have got everything working except the scanner.
It seems I need to install the HP Plugin, but I’m getting the following issue with ‘Python gobject/dbus’
I suspect I’ve got the command wrong — can anyone advise please…..

Code: Select all

HP Linux Imaging and Printing System (ver. 3.20.11)
Plugin Installer ver. 3.0

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

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.
xxxx-nSpire2:~$ Python gobject/dbus

Command 'Python' not found, did you mean:

  command 'jython' from deb jython
  command 'python' from deb python3
  command 'python' from deb python
  command 'python' from deb python-minimal
  command 'cython' from deb cython

Try: sudo apt install <deb name>

xxxx-nSpire2:~$ sudo apt install Python gobject/dbus
[sudo] password for normh:          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package Python
E: Unable to locate package gobject
xxxx-nSpire2:~$ 

xxxx-nSpire2:~$ sudo apt install gobject/dbus
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gobject
xxxx-nSpire2:~$ 

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

norm.h

Level 5
Level 5
Posts: 685
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Re: Can’t install HP plugin.

Post

by norm.h » Thu Jan 07, 2021 10:08 am

If it’s any help, I’ve taken these screenshots.
Xsane only sees the devices when plugged with USB cable

Attachments
Screenshot at 2021-01-07 13-17-46.png
Screenshot at 2021-01-07 14-00-23.png
Screenshot at 2021-01-07 14-00-51.png

norm.h

Level 5
Level 5
Posts: 685
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Re: Can’t install HP plugin.

Post

by norm.h » Thu Jan 07, 2021 11:33 am

Thanks for your reply.
I don’t see how the HP Plugin is non-free, and I’m afraid both those are gobbledegook to me.

Is sane-airscan for use in the command line? If so, I’d prefer not to bother.

brian_p

Level 8
Level 8
Posts: 2438
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Can’t install HP plugin.

Post

by brian_p » Thu Jan 07, 2021 12:54 pm

norm.h wrote: ↑

Thu Jan 07, 2021 11:33 am


Thanks for your reply.
I don’t see how the HP Plugin is non-free, and I’m afraid both those are gobbledegook to me.

The plugin is not free software; HP do not provide source code for it.

Is sane-airscan for use in the command line? If so, I’d prefer not to bother.

All is explained on the project page.


Brian.

norm.h

Level 5
Level 5
Posts: 685
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Re: Can’t install HP plugin.

Post

by norm.h » Thu Jan 07, 2021 3:11 pm

Tried & failed…..
I must be doing something wrong, or not doing something I should be doing.

I was hoping Xsane would see the printer, but on wifi, ‘no device detected’.
Connected by USB cable I get

Screenshot at 2021-01-07 14-00-51.png

as before.
Do I have to run sane-airscan from a terminal, and if so what is the correct command.
I tried ‘run sane-airscan» but got ‘command not found’

norm.h

Level 5
Level 5
Posts: 685
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Re: Can’t install HP plugin.

Post

by norm.h » Thu Jan 07, 2021 3:15 pm

brian_p wrote: ↑

Thu Jan 07, 2021 12:54 pm


The plugin is not free software; HP do not provide source code for it.

Ah I see, I was thinking in terms of getting my wallet out. :oops:

norm.h

Level 5
Level 5
Posts: 685
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Re: Can’t install HP plugin.

Post

by norm.h » Thu Jan 07, 2021 4:41 pm

Eureka!!

Package Manager was still showing an earlier version [3.17] of HPLIP, although it was supposed to have been removed as part of yesterday’s installation of 3.20.
So I uninstalled all 3.17 references in Package Manager, and went to SourceForge to download 3.20 again.
Unsurprisingly, installation said it was already installed, so rightly or wrongly I elected to remove and reinstall.

Followed HPLIP setup procedure, checked Xsane which now finds the scanner when I select eSCL — Yippee!

Will mark as solved, thank you Brian :D

  • Печать

Страницы: [1]   Вниз

Тема: Установка hplip plugin 3.15.11 Ubuntu 15.10  (Прочитано 8848 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
MaxSoniX

   

Добрый день!

    Не выходит установить плагин для принтера. :'( При запуске hp-plugin и принятия лицензии проприетарного драйвера (нажатия ‘y’ и Enter), ничего не происходит. А по идеи должен запросить пароль для sudo.
Если без GUI, после остановки(Ctrl+C) вываливается вот это:

    На 15.04 работало со старой версией hplip(не помню предыдущую).
    HPLIP 3.15.11 ставил через apt-get install. Пробывал запускать с http://hplipopensource.com hplip-3.15.11.run, тоже виснет, только после запроса пароля sudo. Баг описан, только на английском, а я с ним не дружу  :-[ https://bugs.launchpad.net/hplip/+bug/1517494. Попробовал как здесь https://bugs.launchpad.net/hplip/+bug/1486731/comments/10, не даёт запускать от рута. Попробовал закоментить проверку рута в начале скрипта, всё равно дальше выкидывает(видать где-то ещё проверка есть). Запускал hp-check, лог:

    hp-doctor вызывает hp-plugin, повторяется история с лицензией.

Post scriptum:

« Последнее редактирование: 16 Декабря 2015, 18:36:59 от MaxSoniX »

Свищу баранкой


Оффлайн
quickes

Решил быстро распечатать, да застрял на два часа :)
Удалось поставить!
Вот рецепт
Запускаешь под обычным пользователем hp-plugin, после того как он зависнет на установке, копируешь файлы из ~/.hp в какую нибудь папку, например ~/hp
Завершаешь работу hp-plugin Ctrl+C
Запускаешь под root
sudo python ~/hp/plugin_tmp/installPlugin.py
после этого опять запускаешь hp-setup и уже установка плагинов запрашиваться не будет и принтер установится нормально.

изучив plugin_install.py пришел к выводу что вся прелюдия виснет на запросе пароля root при попытке установки.
После запроса пароля он выполняет installPlugin.py под рутовыми правами. Но почему-то в ubuntu 15.10 виснет на DBUS.

Вот кстати аналогичное решение https://bugs.launchpad.net/hplip/+bug/1521006

« Последнее редактирование: 05 Января 2016, 20:02:28 от quickes »


Оффлайн
MaxSoniX

Выполнил по рецепту:

При печати ошибка отсутствия прошивки(firmware). Видать плагин не встал. :-


  • Печать

Страницы: [1]   Вверх

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

HP Linux Imaging and Printing System (ver. 3.19.3)

Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP

This software comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to distribute it

under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:

1. Compile-time check mode (-c or —compile): Use this mode before compiling the

HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies

are installed to successfully compile HPLIP.                                   

2. Run-time check mode (-r or —run): Use this mode to determine if a distro   

supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   

has the proper dependencies installed to successfully run.                     

3. Both compile- and run-time check mode (-b or —both) (Default): This mode   

will check both of the above cases (both compile- and run-time dependencies).   

Check types:                                                                   

a. EXTERNALDEP — External Dependencies                                         

b. GENERALDEP — General Dependencies (required both at compile and run time)   

c. COMPILEDEP — Compile time Dependencies                                       

d. [All are run-time checks]                                                   

PYEXT SCANCONF QUEUES PERMISSION                                               

Status Types:

    OK

    MISSING       — Missing Dependency or Permission or Plug-in

    INCOMPAT      — Incompatible dependency-version or Plugin-version

warning: 9-2.6 version is not supported. Using 9-any versions dependencies to verify and install…

—————

| SYSTEM INFO |

—————

 Kernel: 4.19.37-gentoo #1 SMP Tue May 14 14:18:16 CEST 2019 GNU/Linux

 Host: Athlon-II-X2

 Proc: 4.19.37-gentoo #1 SMP Tue May 14 14:18:16 CEST 2019 GNU/Linux

 Distribution: 9 2.6

 Bitness: 64 bit

————————

| HPLIP CONFIGURATION |

————————

HPLIP-Version: HPLIP 3.19.3

HPLIP-Home: /usr/share/hplip

warning: HPLIP-Installation: Auto installation is not supported for 9 distro  2.6 version

Current contents of ‘/etc/hp/hplip.conf’ file:

# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]

version=3.19.3

[dirs]

home=/usr/share/hplip

run=/var/run

ppd=/usr/share/ppd/HP

ppdbase=/usr/share/ppd

doc=/usr/share/doc/hplip-3.19.3

html=/usr/share/doc/hplip-3.19.3/html

icon=/usr/share/applications

cupsbackend=/usr/libexec/cups/backend

cupsfilter=/usr/libexec/cups/filter

drv=/usr/share/cups/drv/hp

bin=/usr/bin

apparmor=/etc/apparmor.d

# Following values are determined at configure time and cannot be changed.

[configure]

network-build=yes

libusb01-build=no

pp-build=no

gui-build=yes

scanner-build=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.19.3

restricted-build=no

ui-toolkit=qt5

qt3=no

qt4=no

qt5=yes

policy-kit=yes

lite-build=no

udev_sysfs_rules=no

hpcups-only-build=no

hpijs-only-build=no

apparmor_build=no

class-driver=no

Current contents of ‘/var/lib/hp/hplip.state’ file:

[plugin]

installed = 1

eula = 1

version = 3.19.3

Current contents of ‘~/.hplip/hplip.conf’ file:

[commands]

scan = /usr/bin/xsane -V %SANE_URI%

[fax]

email_address =

voice_phone =

[last_used]

device_uri =

printer_name =

working_dir =

[polling]

device_list =

enable = false

interval = 5

[refresh]

enable = false

rate = 30

type = 1

[settings]

systray_messages = 0

systray_visible = 0

[upgrade]

last_upgraded_time = 1558063598

notify_upgrade = false

pending_upgrade_time = 0

[installation]

date_time = 06/03/19 17:08:06

version = 3.19.3

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

————————-

| External Dependencies |

————————-

 error: cups          CUPS — Common Unix Printing System                           REQUIRED        1.1             2.2.7           MISSING    ‘CUPS may not be installed or not running’

 gs                   GhostScript — PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.26            OK         —

 xsane                xsane — Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         —

 scanimage            scanimage — Shell scanning program                           OPTIONAL        1.0             1.0.27          OK         —

 dbus                 DBus — Message bus system                                    REQUIRED        —               1.12.12         OK         —

 policykit            PolicyKit — Administrative policy framework                  OPTIONAL        —               0.115           OK         —

 network              network -wget                                                OPTIONAL        —               1.20.3          OK         —

 error: avahi-utils   avahi-utils                                                  OPTIONAL        —               —               MISSING    ‘avahi-utils needs to be installed’

————————

| General Dependencies |

————————

 libjpeg              libjpeg — JPEG library                                       REQUIRED        —               —               OK         —

 cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        —               2.2.7           OK         —

 cups-image           CUPS image — CUPS image development files                    REQUIRED        —               2.2.7           OK         —

 libpthread           libpthread — POSIX threads library                           REQUIRED        —               b’2.29′         OK         —

 libusb               libusb — USB library                                         REQUIRED        —               1.0             OK         —

 sane                 SANE — Scanning library                                      REQUIRED        —               1.0.27          OK         —

 sane-devel           SANE — Scanning library development files                    REQUIRED        —               1.0.27          OK         —

 libnetsnmp-devel     libnetsnmp-devel — SNMP networking library development files REQUIRED        5.0.9           5.7.3           OK         —

 libcrypto            libcrypto — OpenSSL cryptographic library                    REQUIRED        —               1.0.2           OK         —

 python3X             Python 2.2 or greater — Python programming language          REQUIRED        2.2             3.6.5           OK         —

 python3-notify2      Python libnotify — Python bindings for the libnotify Desktop notifications OPTIONAL        —               —               OK         —

 error: python3-pyqt4-dbus PyQt 4 DBus — DBus Support for PyQt4                         OPTIONAL        4.0             —               MISSING    ‘python3-pyqt4-dbus needs to be installed’

 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)         REQUIRED        4.0             —               MISSING    ‘python3-pyqt4 needs to be installed’

 python3-dbus         Python DBus — Python bindings for DBus                       REQUIRED        0.80.0          1.2.4           OK         —

 python3-xml          Python XML libraries                                         REQUIRED        —               2.2.6           OK         —

 python3-devel        Python devel — Python development files                      REQUIRED        2.2             3.6.5           OK         —

Traceback (most recent call last):

  File «/usr/bin/hp-check», line 862, in <module>

    num_errors, num_warns = dep.validate(time_flag, is_quiet_mode)

  File «/usr/bin/hp-check», line 368, in validate

    self.core.dependencies[dep])

  File «/usr/bin/hp-check», line 210, in __update_deps_info

    installed_ver = self.core.version_func[deps_info[6]]()

  File «/usr/share/hplip/installer/dcheck.py», line 373, in get_pil_version

    return Image.VERSION

AttributeError: module ‘PIL.Image’ has no attribute ‘VERSION’


Description


Dennis Gilmore



2015-02-25 14:40:25 UTC

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


Comment 1


Dennis Gilmore



2015-03-19 13:35:12 UTC

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


Comment 2


Dennis Gilmore



2015-03-19 15:57:03 UTC

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


Comment 3


Tim Waugh



2015-03-19 17:02:47 UTC

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?


Comment 4


Dennis Gilmore



2015-03-19 17:25:57 UTC

they were all already installed. it changes nothing.


Comment 7


Tim Waugh



2015-03-23 16:49:08 UTC

As a work-around, we'll add a new hplip-compat-libs sub-package for the Python 2 module.


Comment 9


Dennis Gilmore



2015-03-23 19:32:44 UTC

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.


Comment 10


Tim Waugh



2015-03-23 23:21:50 UTC

Sorry, my fault.


Comment 11


Fedora Update System



2015-03-26 22:09:28 UTC

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).


Comment 12


Adam Williamson



2015-04-11 21:53:21 UTC

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


Comment 13


Jiri Popelka



2015-04-16 14:55:30 UTC

(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).


Comment 14


Tim Waugh



2015-04-16 16:14:05 UTC

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.


Comment 15


Adam Williamson



2015-04-16 16:16:36 UTC

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.


Comment 16


Tim Waugh



2015-04-16 16:21:31 UTC

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.


Comment 18


Hans de Goede



2015-04-20 14:52:53 UTC

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


Comment 19


Olivier Crête



2015-04-20 22:44:01 UTC

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


Comment 20


Fedora Update System



2015-04-21 19:07:23 UTC

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.


Comment 21


Adam Williamson



2015-05-06 23:18:31 UTC

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.


Comment 22


Sandro Bonazzola



2015-06-06 08:15:39 UTC

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.


Comment 24


Fedora Update System



2015-06-07 16:01:32 UTC

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).


Comment 25


Fedora Update System



2015-06-24 16:05:35 UTC

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.


Comment 26


amturnip



2015-07-18 22:01:21 UTC

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


Comment 27


Adam Williamson



2015-07-18 23:16:39 UTC

It worked for me, several times.


Comment 29


Robert Kuska



2015-08-18 10:16:29 UTC

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.


Comment 31


Fedora Update System



2015-08-19 07:57:17 UTC

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).


Comment 32


Fedora Update System



2015-08-23 16:40:02 UTC

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.


Comment 33


markusN



2015-09-07 19:41:35 UTC

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?


Comment 34


Paulo Fidalgo



2015-10-11 11:12:39 UTC

Any chance to get the hplip-3.15.7-5 in FC22?

I cannot install the plugin... and so cannot use the printer


Comment 35


Jiri Popelka



2015-10-12 11:01:54 UTC

(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 ?


Comment 36


Paulo Fidalgo



2015-10-12 11:20:15 UTC

I still can't find what is going on, because I was able to install on another FC22 computer.

Понравилась статья? Поделить с друзьями:
  • Python get error code
  • Python generate error
  • Python function error code
  • Python file read memory error
  • Python fatal python error initfsencoding unable to load the file system codec