Pages : 1
#1 Le 07/05/2020, à 08:25
- sbrunner
Problème instalation hplip plugin
Hello, sur Ubuntu 20.04 je n'arrive pas à installer les plugins propriétaires nécessaire pour mon scanner...
$ hp-plugin -i
HP Linux Imaging and Printing System (ver. 3.20.3)
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.20.3)
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.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.20.3 |
-----------------------------------------
Option Description
---------- --------------------------------------------------
d Download plug-in from HP (recommended)
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% Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 363, in <module>
status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
core = core_install.CoreInstall()
File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
self.passwordObj = password.Password(ui_mode)
File "/usr/share/hplip/base/password.py", line 88, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
return distro.linux_distribution(full_distribution_name=False)[0]
File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
self.version(),
File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
self.lsb_release_attr('release'),
File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 144, in apport_excepthook
with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 363, in <module>
status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
core = core_install.CoreInstall()
File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
self.passwordObj = password.Password(ui_mode)
File "/usr/share/hplip/base/password.py", line 88, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
return distro.linux_distribution(full_distribution_name=False)[0]
File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
self.version(),
File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
self.lsb_release_attr('release'),
File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Au passage:
$ python3 -c 'print(__import__("distro").linux_distribution(full_distribution_name=False))'
('ubuntu', '20.04', 'focal')
Hors ligne
#2 Le 07/05/2020, à 09:26
- papylain
Re : Problème instalation hplip plugin
Bonjour, je possède une imprimante HP multifonction, tu ne devrais pas avoir de problème pour installer HPLIP, suit cette page https://doc.ubuntu-fr.org/hplip, mais tu peux toujours configurer dans "configuration système" ajouter une imprimante. Il est indispensable d'installer "hp-scan".
Tu vas chercher le fichier sur ce site https://developers.hp.com/hp-linux-imaging-and-printing, où tu trouveras toutes les explications, et tu fais en console
cd~ ton répertoire
sh hplip-xxx. run
si tu as déjà installer tu supprime ce que tu as fait repart à zéro.
Hors ligne
#3 Le 08/05/2020, à 08:19
- sbrunner
Re : Problème instalation hplip plugin
Cela semble mal partit ...
...
\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
|Gtk-Message: 09:13:46.855: Failed to load module "canberra-gtk-module"
error: ubuntu-20.04 version is not supported, so all dependencies may not be installed. However trying to install using ubuntu-19.10 version packages.
Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*):
Puis:
DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Le paquet ainsi que d'autre n'existe plus...
Et finalement
RE-CHECKING DEPENDENCIES
------------------------
|Gtk-Message: 09:18:20.519: Failed to load module "canberra-gtk-module"
error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
Hors ligne
#4 Le 08/05/2020, à 08:33
- grigouille
Re : Problème instalation hplip plugin
Tu as fait une mise à niveau ou une installation fraîche ?
Debian (xfce) 12
HP LaserJet M1132 MFP
Hors ligne
#5 Le 08/05/2020, à 09:22
- papylain
Re : Problème instalation hplip plugin
Je pense que pour la version 20.04, tout n'est pas encore développé, perso, j'attends en général au minimum la version .1 d'une nouvelle LTS pour mettre à niveau. A l'évidence, la version de HPLIP ne supporte pas 20.04.
Hors ligne
#6 Le 10/05/2020, à 08:35
- grigouille
Re : Problème instalation hplip plugin
Essayer ceci :
https://forum.ubuntu-fr.org/viewtopic.p … #p22282112
Debian (xfce) 12
HP LaserJet M1132 MFP
Hors ligne
#7 Le 13/05/2020, à 10:32
- sbrunner
Re : Problème instalation hplip plugin
Toujours le même problème (a noté que la partie impression fonctionne, mais pas le scanner), bref je vais attendre une nouvelle version de hplip :-)
Hors ligne
#8 Le 13/05/2020, à 10:33
- sbrunner
Re : Problème instalation hplip plugin
J'ai fait une mise à jour...
Hors ligne
#9 Le 13/05/2020, à 11:27
- grigouille
Re : Problème instalation hplip plugin
On ne voit pas les commandes que tu lances dans le #3. Il faut donc que l'on devine ce que tu fais. Ce n'est pas très pratique.
On dirait que tu as tenté d'installer hplip via le fichier .run. Quel est l'intérêt de faire cela ? Il y a hplip dans les dépôts.
Si tu veux avoir un système qui fonctionne, je te suggère la 18.04.
Debian (xfce) 12
HP LaserJet M1132 MFP
Hors ligne
#10 Le 22/07/2020, à 10:45
- sbrunner
Re : Problème instalation hplip plugin
Finalement j'ai réussi à installer le plugin manuellement après avoir installé le paquet python-is-python3.
Voir aussi: https://bugs.launchpad.net/hplip/+bug/1884442
CU
Stéphane
Hors ligne
Pages : 1