Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 28/06/2010, à 12:15

duddy67

[Résolu] Problème connexion Imprimante HP

Bonjour,

Je n'arrive pas à faire fonctionner mon imprimante HP Deskjet 840C
sous Ubuntu 10.04.

J'ai installé hplip, branché la prise USB de l'imprimante, mais
quand je tape sudo hp-pagetest:

HP Linux Imaging and Printing System (ver. 3.10.2)
Testpage Print Utility ver. 6.0

Copyright (c) 2001-9 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: Qt/PyQt 4 initialization failed.
error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.

HP Linux Imaging and Printing System (ver. 3.10.2)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 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: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?
error: Device error (Device not found).

Pas mieux avec sudo hp-setup:

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

Copyright (c) 2001-9 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: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.

quelqu'un pourrait m'aider ?

Merci

Dernière modification par duddy67 (Le 04/07/2010, à 08:26)

Hors ligne

#2 Le 28/06/2010, à 12:36

michel_04

Re : [Résolu] Problème connexion Imprimante HP

Bonjour,

duddy67 a écrit :

J'ai installé hplip, branché la prise USB de l'imprimante, mais
quand je tape sudo hp-pagetest:

ewarning: Qt/PyQt 4 initialization failed.
error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.
~ ~ ~
warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.

Pas mieux avec sudo hp-setup:

warning: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.

Dans un terminal :

sudo apt-get install hplip-gui

A+

Hors ligne

#3 Le 28/06/2010, à 13:18

duddy67

Re : [Résolu] Problème connexion Imprimante HP

Merci pour ton aide. wink
Je pensais qu'avec sudo apt-get install hplip tout le nécessaire était installé.
Apparement non, bien qu'il ait pris 120 Mo et pas mal de temps à tout configurer (j'avais l'impression
qu'il m'installait un OS roll).
Maintenant j'ai bien l'utilitaire graphique mais quand je l'ouvre j'ai le message:

no installed hp devices found

Allons bon ! Le driver ne serait pas installé ??
Dans la doc il est dit que hplip et les drivers hp sont installés par défaut. Pas dans Lucid en tout cas !

Bref, comment faire pour installer le bon driver ?

Merci

Hors ligne

#4 Le 28/06/2010, à 13:45

michel_04

Re : [Résolu] Problème connexion Imprimante HP

Re,

duddy67 a écrit :

Maintenant j'ai bien l'utilitaire graphique mais quand je l'ouvre j'ai le message:

no installed hp devices found

Allons bon ! Le driver ne serait pas installé ??

Dans Système, Préférences, HPlip Toolbox ---> Device ---> Setup Device :  1277725494.png

A+

Hors ligne

#5 Le 28/06/2010, à 15:28

duddy67

Re : [Résolu] Problème connexion Imprimante HP

Oui, c'est bien ce que j'ai fait.
J'ai choisi Universal Serial Bus dans le panneau: Device Discovery
puis ->next et là il me dit device not found. hmm

J'ai également un panneau qui apparait au bout d'un moment disant:

No system tray detected on this system
unable to start

Une idée ?

Hors ligne

#6 Le 28/06/2010, à 18:14

Krisss

Re : [Résolu] Problème connexion Imprimante HP

Salut Duddy67,

d'après les infos HPLIP, il faut la brancher en port parallèle, le port usb pour cette imprimante n'est pas supporté par le pilote hplip, alors commence déjà avec ça ...

Ensuite installe également les paquets les paquets: hplip-dbg et hplip-doc

en faisant: sudo aptitude install <paquet>

On est sous Lucid ...

Puis lance dans ta console: hp-check -t

Ton pilote pour l'installation devrait être: deskjet_840c

Et affiche le résultat ici entre les balises "Codes" wink

Dernière modification par Krisss (Le 28/06/2010, à 18:14)


Multi Linux Jumping - Printer HP - Bye-bye Microsoft!

Aucun systèmes n'est parfait -> Bien lire la doc, si problèmes -> Le forum ...

Hors ligne

#7 Le 28/06/2010, à 18:54

duddy67

Re : [Résolu] Problème connexion Imprimante HP

Merci pour ta réponse. smile

d'après les infos HPLIP, il faut la brancher en port parallèle, le port usb pour cette imprimante n'est pas supporté par le pilote hplip, alors commence déjà avec ça ...

Bon ben ça commence mal tongue
J'ai un portable et il n'y a pas de port parallèle. sad

Est ce que hplip c'est fichu pour moi ?

Par contre j'ai testé avec cups et l'interface en ligne: http://localhost:631/printers/
et là ça marche.
Le seul hic c'est qu'il faut être en ligne.
Existe t-il une interface graphique pour cups ?

Je te mets quand même le résultat de hp-check -t

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

Copyright (c) 2001-9 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 dependencie
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 Salander 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux

Distribution:
ubuntu 10.04

Checking Python version...
OK, version 2.6.5 installed

Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!

Checking for CUPS...
Status: le programmateur s’exécute
Version: 1.4.3
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.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...
OK, found.

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.
To install this dependency, execute this command:
sudo aptitude install --assume-yes python-imaging

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo aptitude install --assume-yes python-qt4-dbus


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.
To install this dependency, execute this command:
sudo aptitude install --assume-yes python-reportlab

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
sudo aptitude install --assume-yes sane-utils

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.
To install this dependency, execute this command:
sudo aptitude install --assume-yes xsane


----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.10.5 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.10.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.10.5
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
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.10.4.16
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
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:
# hplip.state - HPLIP runtime persistent variables. 

[plugin]
installed=0
eula=0



Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 28/06/2010 16:04:17
version = 3.10.5

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                                Model                               
  ----------------------------------------  ------------------------------------
  hp:/usb/DeskJet_840C?serial=HU09M3W1K7QO  HP DeskJet 840C                     

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
HP_DeskJet_840C 
-----------------
Type: Printer
Device URI: hp:/usb/DeskJet_840C?serial=HU09M3W1K7QO
Communication status: Good


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
error: scanimage not found.

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


 
-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x604 at 005:002: 
    Device URI: hp:/usb/DeskJet_840C?serial=HU09M3W1K7QO
    Device node: /dev/bus/usb/005/002
    Mode: 0664

---------------
| USER GROUPS |
---------------

root


-----------
| SUMMARY |
-----------

error: 6 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
sudo aptitude install --assume-yes python-imaging
sudo aptitude install --assume-yes python-qt4-dbus
sudo aptitude install --assume-yes python-reportlab
sudo aptitude install --assume-yes sane-utils
sudo aptitude install --assume-yes xsane

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Hors ligne

#8 Le 28/06/2010, à 21:15

Krisss

Re : [Résolu] Problème connexion Imprimante HP

OK, je vois que tu as installé la paquet hplip depuis le site HPLIP, sans utiliser le paquet contenu dans ta distribution. Donc tu perds les mise à jour automatiques ...

Alors fais d'abord la chose suivante ...

Installe les dépendances manquantes comme indiquées en fin de test.

Redémarre ton ordi

Ensuite essaye en console : lsusb -v

Regarde si tu vois listée ton imprimante sur un des Bus

Puis relance en console: hp-testpage

Et dis-nous ce qui se passe ... roll

Il y a de fortes chances pour l'interface parallèle soit interprétée par le port usb, mais ce n'est pas le cas sur tous les portables. Pour cela il existe des adaptateurs usb-parallèle si jamais.

Concernant l'interface graphique de Cups, il y en a plusieurs ...


Multi Linux Jumping - Printer HP - Bye-bye Microsoft!

Aucun systèmes n'est parfait -> Bien lire la doc, si problèmes -> Le forum ...

Hors ligne

#9 Le 29/06/2010, à 08:33

duddy67

Re : [Résolu] Problème connexion Imprimante HP

OK, je vois que tu as installé la paquet hplip depuis le site HPLIP, sans utiliser le paquet contenu dans ta distribution. Donc tu perds les mise à jour automatiques ...

En fait au départ j'ai installé la version de la distrib (voir + haut) mais comme ça ne fonctionnait
pas je l'ai désinstallé pour mettre à la place la version du site, au cas où.
Mais apparement ça n'a rien changé. hmm

Cela dit, j'ai une vieille imprimante dont je ne me sert qu'occasionnellement et je
pense que cups est plus adapté et moins lourd pour ce genre d'utilisation, et en + ça marche cool.

Aussi, pourrais-tu me donner le nom de quelques interfaces graphiques pour cups ?

Hors ligne

#10 Le 29/06/2010, à 12:56

Krisss

Re : [Résolu] Problème connexion Imprimante HP

duddy67 a écrit :

Aussi, pourrais-tu me donner le nom de quelques interfaces graphiques pour cups ?

Alors voila, la première interface est celle que tu possède dans ton espace admin ...

Pour la deuxième, celle-là tu la connais ici apparemment: Interface Web de CUPS

Pour la troisième si tu as une imprimante HP, c'est HP Device Manager, que tu obtiens lors de l'installation du paquet hplip-gui qui t'installe automatiquement hplip-cups, Avec lequel tu peux installer d'autres imprimantes ... Il te suffit de double-cliquer sur l'icône HP

Pour les autres, fais une recherche dans Synaptics avec le mot: cups smile

Il en existe encore d'autres ...

Au fait qu'a donné le résultat du post précédent ?


Multi Linux Jumping - Printer HP - Bye-bye Microsoft!

Aucun systèmes n'est parfait -> Bien lire la doc, si problèmes -> Le forum ...

Hors ligne

#11 Le 29/06/2010, à 14:06

duddy67

Re : [Résolu] Problème connexion Imprimante HP

Je pense que je vais rester avec hplip-cups et l'interface en localhost. smile
Au début je pensais que ça se faisait sur internet, je n'avais pas fait
attention au "localhost" de http://localhost:631/admin/ 
Il faut dire que c'est plutôt déroutant comme méthode d'interface et pas franchement friendly user. hmm

hplip-gui m'aurait bien tenté, mais 178Mo d'occupation pour une vieille
imprimante c'est un peu lourd, d'autant que j'essaies d'être le + light possible
car je n'ai pas beaucoup de ressource (stockage, RAM, CPU) sur mon portable. roll

En tout cas j'aurais appris quelque chose en ce qui concerne les imprimantes sous Linux. big_smile

Hors ligne

#12 Le 29/06/2010, à 17:28

Krisss

Re : [Résolu] Problème connexion Imprimante HP

Tu as quoi comme ordi, combien de mémoire à dispo, ram, dd ?

Et est-ce que ton imprimante fonctionne maintenant roll ?


Multi Linux Jumping - Printer HP - Bye-bye Microsoft!

Aucun systèmes n'est parfait -> Bien lire la doc, si problèmes -> Le forum ...

Hors ligne

#13 Le 01/07/2010, à 08:05

duddy67

Re : [Résolu] Problème connexion Imprimante HP

Tu as quoi comme ordi, combien de mémoire à dispo, ram, dd ?

Un portable eMachine (Acer), 1Go RAM, 10 Go DD.

Et est-ce que ton imprimante fonctionne maintenant ?

Oui pas de pb. cool

Hors ligne

#14 Le 03/07/2010, à 13:10

Krisss

Re : [Résolu] Problème connexion Imprimante HP

Salut Duddy67,

alors, qu'as-tu fais au final big_smile ?

Pourrais-tu marquer le titre du premier post en [Resolu] si c'est le cas, merci pour ceux qui auraient le même problème wink


Multi Linux Jumping - Printer HP - Bye-bye Microsoft!

Aucun systèmes n'est parfait -> Bien lire la doc, si problèmes -> Le forum ...

Hors ligne

#15 Le 04/07/2010, à 08:26

duddy67

Re : [Résolu] Problème connexion Imprimante HP

alors, qu'as-tu fais au final ?

Je suis finalement resté sur hplip-cups et l'interface en localhost. smile
C'est vrai que c'est plutôt déroutant au début mais il est léger et contient
suffisament de réglages pour ma vieille imprimante.
Voilou. cool

Hors ligne