hplip-3.9.4-plugin installation fails

Asked by Steffen Pankratz

Installing hplip-3.9.4-plugin brings the following output which does not look right:

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
Traceback (most recent call last):
  File "./plugin_install.py", line 161, in <module>
    if not installPlugin():
  File "./plugin_install.py", line 46, in installPlugin
    return copyPluginFiles(os.getcwd())
NameError: global name 'copyPluginFiles' is not defined

Done.

Steps to reproduce:
1. run "hp-plugin -i"
2. answer the first question with "d"
3. answer the second question with "y"

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
dwelch91 (dwelch91) said :
#1

Steffen-

What distro are you using?

Can you try using hp-plugin w/o the -i (for GUI mode). Does that work?

Thanks.

On Sat, Apr 25, 2009 at 8:05 AM, Steffen Pankratz <
<email address hidden>> wrote:

> New question #68660 on HPLIP:
> https://answers.launchpad.net/hplip/+question/68660
>
> Installing hplip-3.9.4-plugin brings the following output which does not
> look right:
>
> Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
> Traceback (most recent call last):
> File "./plugin_install.py", line 161, in <module>
> if not installPlugin():
> File "./plugin_install.py", line 46, in installPlugin
> return copyPluginFiles(os.getcwd())
> NameError: global name 'copyPluginFiles' is not defined
>
> Done.
>
> Steps to reproduce:
> 1. run "hp-plugin -i"
> 2. answer the first question with "d"
> 3. answer the second question with "y"
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Steffen Pankratz (kratz00) said :
#2

My distro is Linux from Scratch and as i do not have pyqt installed GUI mode does not work.
What i can tell is that "hp-plugin -i" worked in the 3.9.2 release.

Revision history for this message
dwelch91 (dwelch91) said :
#3

we added policykit support in 3.9.4, that seems to be the issue here. do you
have policykit installed by chance?

On Sat, Apr 25, 2009 at 10:59 AM, Steffen Pankratz <
<email address hidden>> wrote:

> Question #68660 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/68660
>
> Status: Answered => Open
>
> Steffen Pankratz is still having a problem:
> My distro is Linux from Scratch and as i do not have pyqt installed GUI
> mode does not work.
> What i can tell is that "hp-plugin -i" worked in the 3.9.2 release.
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Steffen Pankratz (kratz00) said :
#4

I do not.

Revision history for this message
dwelch91 (dwelch91) said :
#5

well, what's supposed to happen is that it will "fallback" to using su/sudo
if policykit is not installed. that apparently didn't happen in this case.

any chance you could install policykit and try again?

On Sat, Apr 25, 2009 at 11:17 AM, Steffen Pankratz <
<email address hidden>> wrote:

> Question #68660 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/68660
>
> Status: Answered => Open
>
> Steffen Pankratz is still having a problem:
> I do not.
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Steffen Pankratz (kratz00) said :
#6

I ran hp-plugin as root user, so this is supposed to work? I do not have sudo installed as well.
I could install policykit but only if it's really required.

Revision history for this message
dwelch91 (dwelch91) said :
#7

You should be able to run it as root to avoid this issue. Please post your
results. Thanks.

On Sat, Apr 25, 2009 at 12:22 PM, Steffen Pankratz <
<email address hidden>> wrote:

> Question #68660 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/68660
>
> Status: Answered => Open
>
> Steffen Pankratz is still having a problem:
> I ran hp-plugin as root user, so this is supposed to work? I do not have
> sudo installed as well.
> I could install policykit but only if it's really required.
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Steffen Pankratz (kratz00) said :
#8

What you see in my first post, is what I get as root user.

Revision history for this message
Stan Dolson (stan-dolson) said :
#9

The traceback seems to indicate that there is some sort of an
installation issue with HPLIP.

Do you have the file /usr/share/hplip/base/pkit.py?

How did you install HPLIP?

Revision history for this message
Steffen Pankratz (kratz00) said :
#10

Yes I have this file:

 ls -l /usr/share/hplip/base/pkit.py
-rwxr-xr-x 1 root root 11990 2009-04-25 16:55 /usr/share/hplip/base/pkit.py

I installed hplip like this:

./configure --prefix=/usr --disable-pp-build --disable-fax-build --disable-dbus-build &&
make &&
make install

Revision history for this message
Stan Dolson (stan-dolson) said :
#11

The problem is that the plugin installer contained in the downloaded
package is not able to import pkit.py from /usr/share/hplip/base.

The plugin installer adds the path provided by the configuration variable
named "home" in /etc/hp/hplip.conf so that Python can import pkit.py.

It is possible that the value of "home" in /etc/hp/hplip.conf is incorrect
and thus the plugin installer cannot find pkit.py.

What is the value of your "home" variable?

Revision history for this message
dwelch91 (dwelch91) said :
#12

Please run hp-check -t and post the results (this will also show the info
that Stan is requesting)

On Mon, Apr 27, 2009 at 12:16 PM, Stan Dolson <
<email address hidden>> wrote:

> Question #68660 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/68660
>
> Status: Open => Answered
>
> Stan Dolson proposed the following answer:
> The problem is that the plugin installer contained in the downloaded
> package is not able to import pkit.py from /usr/share/hplip/base.
>
> The plugin installer adds the path provided by the configuration variable
> named "home" in /etc/hp/hplip.conf so that Python can import pkit.py.
>
> It is possible that the value of "home" in /etc/hp/hplip.conf is incorrect
> and thus the plugin installer cannot find pkit.py.
>
> What is the value of your "home" variable?
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Steffen Pankratz (kratz00) said :
#13

@Stan: The value is /usr/share/hplip

@dwelch91: Here we go:

hp-check[8269]: info: :
Initializing. Please wait...
/usr/bin/lpstat: Unable to connect to server

1.3.10

Linux hermes 2.6.29.1 #1 PREEMPT Fri Apr 3 08:15:48 CEST 2009 i686 i686 i386 GNU/Linux

hp-check[8269]: info: :
hp-check[8269]: info: :---------------
hp-check[8269]: info: :| SYSTEM INFO |
hp-check[8269]: info: :---------------
hp-check[8269]: info: :
hp-check[8269]: info: :Basic system information:
hp-check[8269]: info: :Linux hermes 2.6.29.1 #1 PREEMPT Fri Apr 3 08:15:48 CEST 2009 i686 i686 i386 GNU/Linux

hp-check[8269]: info: :
hp-check[8269]: info: :Distribution:
hp-check[8269]: info: :unknown 0.0
hp-check[8269]: info: :
HPOJ running?
hp-check[8269]: info: :No, HPOJ is not running (OK).
hp-check[8269]: info: :
hp-check[8269]: info: :Checking Python version...
hp-check[8269]: info: :OK, version 2.6.0 installed
hp-check[8269]: info: :
hp-check[8269]: info: :Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for CUPS...
error: Status: (Not available. CUPS may not be installed or not running.)
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dbus/python-dbus...
hp-check[8269]: info: :dbus daemon is running.
warning: python-dbus not installed.
hp-check[8269]: info: :
hp-check[8269]: info: :
hp-check[8269]: info: :------------------------------------
hp-check[8269]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[8269]: info: :------------------------------------
hp-check[8269]: info: :
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).
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: CUPS - Common Unix Printing System...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: CUPS devel- Common Unix Printing System development files...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: CUPS image - CUPS image development files...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: DBus - Message bus system...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: libtool - Library building support services...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: libusb - USB library...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: PolicyKit - Administrative policy framework...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[8269]: info: :
hp-check[8269]: info: :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.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: Python ctypes - A foreign function library for Python...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: Python DBus - Python bindings for DBus...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: Python devel - Python development files...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: Python XML libraries...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :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.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: SANE - Scanning library...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :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.
hp-check[8269]: info: :
hp-check[8269]: info: :
hp-check[8269]: info: :----------------------
hp-check[8269]: info: :| HPLIP INSTALLATION |
hp-check[8269]: info: :----------------------
hp-check[8269]: info: :
hp-check[8269]: info: :
hp-check[8269]: info: :Currently installed HPLIP version...
hp-check[8269]: info: :HPLIP 3.9.4 currently installed in '/usr/share/hplip'.
hp-check[8269]: info: :
hp-check[8269]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[8269]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.4
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=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4.102
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no

hp-check[8269]: info: :
hp-check[8269]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[8269]: info: :# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

hp-check[8269]: info: :
hp-check[8269]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[8269]: info: :[last_used]
device_uri = hp:/net/HP_Color_LaserJet_CM1017?ip=192.168.0.3

[installation]
version = 2.8.10.33
date_time = 12/02/08 17:59:15

hp-check[8269]: info: :
hp-check[8269]: info: :--------------------------
hp-check[8269]: info: :| DISCOVERED USB DEVICES |
hp-check[8269]: info: :--------------------------
hp-check[8269]: info: :
hp-check[8269]: info: :No devices found.
hp-check[8269]: info: :
hp-check[8269]: info: :---------------------------------
hp-check[8269]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[8269]: info: :---------------------------------
hp-check[8269]: info: :
hp-check[8269]: info: :
warning: No queues found.
hp-check[8269]: info: :
hp-check[8269]: info: :----------------------
hp-check[8269]: info: :| SANE CONFIGURATION |
hp-check[8269]: info: :----------------------
hp-check[8269]: info: :
hp-check[8269]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[8269]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking output of 'scanimage -L'...
hp-check[8269]: info: :

No scanners were identified. If you were expecting something different,

check that the scanner is plugged in, turned on and detected by the

sane-find-scanner tool (if appropriate). Please read the documentation

which came with this software (README, FAQ, manpages).

hp-check[8269]: info: :
hp-check[8269]: info: :---------------------
hp-check[8269]: info: :| PYTHON EXTENSIONS |
hp-check[8269]: info: :---------------------
hp-check[8269]: info: :
hp-check[8269]: info: :Checking 'cupsext' CUPS extension...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking 'pcardext' Photocard extension...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking 'hpmudext' I/O extension...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :Checking 'scanext' SANE scanning extension...
hp-check[8269]: info: :OK, found.
hp-check[8269]: info: :
hp-check[8269]: info: :
hp-check[8269]: info: :
hp-check[8269]: info: :---------------
hp-check[8269]: info: :| USER GROUPS |
hp-check[8269]: info: :---------------
hp-check[8269]: info: :
hp-check[8269]: info: :root

hp-check[8269]: info: :
hp-check[8269]: info: :-----------
hp-check[8269]: info: :| SUMMARY |
hp-check[8269]: info: :-----------
hp-check[8269]: info: :
error: 10 errors and/or warnings.
hp-check[8269]: info: :
hp-check[8269]: info: :Please refer to the installation instructions at:
hp-check[8269]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[8269]: info: :
hp-check[8269]: info: :Done.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#14

We have a fix for a plugin install problem that will be released in a day or so.

Sorry for the inconvenience.

Aaron

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#15

Steffan,

Also something to consider is that we have found a problem with the plugin and policy kit in certain conditions. However we do not test on Linux From Scratch or provide any instructions on how to install HPLIP. However we do have some instructions provided by a user here:

http://hplipopensource.com/hplip-web/install/manual/distros/lfs.html

Which may or may not help you.

If you have any updates/suggestions please feel free to provide them.

Aaron

Revision history for this message
Steffen Pankratz (kratz00) said :
#16

I can't install 3.9.4b either :(
And yes pkit.py exists and 'home' is set correctly in hplip.conf
----------------------
| INSTALLING PLUG-IN |
----------------------

Verifying archive integrity... All good.
Uncompressing HPLIP 3.9.4b Plugin Self Extracting Archive.......................
.........
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.9.4b)
Plugin Installer ver. 3.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.

Plug-in version: 3.9.4b
Installed HPLIP version: 3.9.4b
Number of files to install: 27

error: Unable to load pkit...is HPLIP installed?

Done.

Here comes the 'hp-check -t' output:

hp-check[32694]: info: :
Initializing. Please wait...
/usr/bin/lpstat: Unable to connect to server

1.3.10

Linux hermes 2.6.29.2 #1 PREEMPT Tue Apr 28 07:12:57 CEST 2009 i686 i686 i386 GNU/Linux

hp-check[32694]: info: :
hp-check[32694]: info: :---------------
hp-check[32694]: info: :| SYSTEM INFO |
hp-check[32694]: info: :---------------
hp-check[32694]: info: :
hp-check[32694]: info: :Basic system information:
hp-check[32694]: info: :Linux hermes 2.6.29.2 #1 PREEMPT Tue Apr 28 07:12:57 CEST 2009 i686 i686 i386 GNU/Linux

hp-check[32694]: info: :
hp-check[32694]: info: :Distribution:
hp-check[32694]: info: :unknown 0.0
hp-check[32694]: info: :
HPOJ running?
hp-check[32694]: info: :No, HPOJ is not running (OK).
hp-check[32694]: info: :
hp-check[32694]: info: :Checking Python version...
hp-check[32694]: info: :OK, version 2.6.0 installed
hp-check[32694]: info: :
hp-check[32694]: info: :Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for CUPS...
error: Status: (Not available. CUPS may not be installed or not running.)
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dbus/python-dbus...
hp-check[32694]: info: :dbus daemon is running.
warning: python-dbus not installed.
hp-check[32694]: info: :
hp-check[32694]: info: :
hp-check[32694]: info: :------------------------------------
hp-check[32694]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[32694]: info: :------------------------------------
hp-check[32694]: info: :
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).
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: CUPS - Common Unix Printing System...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: CUPS devel- Common Unix Printing System development files...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: CUPS image - CUPS image development files...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: DBus - Message bus system...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: libtool - Library building support services...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: libusb - USB library...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: PolicyKit - Administrative policy framework...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[32694]: info: :
hp-check[32694]: info: :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.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: Python ctypes - A foreign function library for Python...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: Python DBus - Python bindings for DBus...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: Python devel - Python development files...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: Python XML libraries...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :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.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: SANE - Scanning library...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :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.
hp-check[32694]: info: :
hp-check[32694]: info: :
hp-check[32694]: info: :----------------------
hp-check[32694]: info: :| HPLIP INSTALLATION |
hp-check[32694]: info: :----------------------
hp-check[32694]: info: :
hp-check[32694]: info: :
hp-check[32694]: info: :Currently installed HPLIP version...
hp-check[32694]: info: :HPLIP 3.9.4b currently installed in '/usr/share/hplip'.
hp-check[32694]: info: :
hp-check[32694]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[32694]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4b

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.4b
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=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4b.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no

hp-check[32694]: info: :
hp-check[32694]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[32694]: info: :# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

hp-check[32694]: info: :
hp-check[32694]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[32694]: info: :[last_used]
device_uri = hp:/net/HP_Color_LaserJet_CM1017?ip=192.168.0.3

[installation]
version = 2.8.10.33
date_time = 12/02/08 17:59:15

hp-check[32694]: info: :
hp-check[32694]: info: :--------------------------
hp-check[32694]: info: :| DISCOVERED USB DEVICES |
hp-check[32694]: info: :--------------------------
hp-check[32694]: info: :
hp-check[32694]: info: :No devices found.
hp-check[32694]: info: :
hp-check[32694]: info: :---------------------------------
hp-check[32694]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[32694]: info: :---------------------------------
hp-check[32694]: info: :
hp-check[32694]: info: :
warning: No queues found.
hp-check[32694]: info: :
hp-check[32694]: info: :----------------------
hp-check[32694]: info: :| SANE CONFIGURATION |
hp-check[32694]: info: :----------------------
hp-check[32694]: info: :
hp-check[32694]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[32694]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking output of 'scanimage -L'...
hp-check[32694]: info: :

No scanners were identified. If you were expecting something different,

check that the scanner is plugged in, turned on and detected by the

sane-find-scanner tool (if appropriate). Please read the documentation

which came with this software (README, FAQ, manpages).

hp-check[32694]: info: :
hp-check[32694]: info: :---------------------
hp-check[32694]: info: :| PYTHON EXTENSIONS |
hp-check[32694]: info: :---------------------
hp-check[32694]: info: :
hp-check[32694]: info: :Checking 'cupsext' CUPS extension...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking 'pcardext' Photocard extension...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking 'hpmudext' I/O extension...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :Checking 'scanext' SANE scanning extension...
hp-check[32694]: info: :OK, found.
hp-check[32694]: info: :
hp-check[32694]: info: :
hp-check[32694]: info: :
hp-check[32694]: info: :---------------
hp-check[32694]: info: :| USER GROUPS |
hp-check[32694]: info: :---------------
hp-check[32694]: info: :
hp-check[32694]: info: :root

hp-check[32694]: info: :
hp-check[32694]: info: :-----------
hp-check[32694]: info: :| SUMMARY |
hp-check[32694]: info: :-----------
hp-check[32694]: info: :
error: 10 errors and/or warnings.
hp-check[32694]: info: :
hp-check[32694]: info: :Please refer to the installation instructions at:
hp-check[32694]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[32694]: info: :
hp-check[32694]: info: :Done.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#17

Please try installing HPLIP 3.9.4b as we've made some corrections to the plugin process.

Thanks.

Aaron

Revision history for this message
Steffen Pankratz (kratz00) said :
#18

My previous post is about HPLIP 3.9.4b.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#19

Steffen,

We do not test or provide technical assistance for Linux from Scratch. LFS is a more advanced Linux distro and is customizable in many different ways that we can't account for.

Your best bet would be to check on the LFS forums--although if you do find a resolution and don't mind posting it for other users we would appreciate it.

Sorry for any inconvenience.

Aaron

Revision history for this message
Steffen Pankratz (kratz00) said :
#20

I found the problem

Original message is:

"error: Unable to load pkit...is HPLIP installed?"

This is not entirely true because HPLIP is installed and pkit is in the right place but pkit.py can't import the Python DBUS bindings.

Traceback (most recent call last):
  File "plugin_install.py", line 127, in <module>
    from base.pkit import *
  File "/usr/share/hplip/base/pkit.py", line 40, in <module>
    import dbus
ImportError: No module named dbus

So I installed the dbus Python bindings and then i got:

Traceback (most recent call last):
  File "plugin_install.py", line 127, in <module>
    from base.pkit import *
  File "/usr/share/hplip/base/pkit.py", line 42, in <module>
    import gobject
ImportError: No module named gobject

Looks like I need pygobject too :(
After installing pygobject I could install the plugin.

None of those two dependencies are mentioned anywhere on your page or am I wrong?
Maybe you could check for them in the install script and present a useful error message to the user, so he knows what to do.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#21

Please try this again with HPLIP 3.9.4b.

Thanks.

Aaron

Revision history for this message
Steffen Pankratz (kratz00) said :
#22

Again, my previous post is about HPLIP 3.9.4b.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#23

Steffen,

Ah sorry I missed that.

Either way we do not provide technical assistance with LFS. The customizable options for setting up LFS makes it nearly impossible to provide support for. I don't have any other solutions for you other than to check in the LFS forums if another user has a solution.

If you don't mind please provide an answer if you happen across one.

Sorry for the inconvenience.

Aaron

Revision history for this message
Steffen Pankratz (kratz00) said :
#24

Aaron I don't want to be mean but do you actually read my posts?

I wrote that I had to install dbus Python bindings and pygobject before I was abled to install the plugin successfully.
I also proposed to improve your documentation because none of those two dependencies are mentioned anywhere on your page, I think and maybe you could check for them in the install script and present a useful error message to the user, so he knows what to do.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#25

Steffen,

Sorry for any confusion. I've updated the LFS instructions (for the next release) and made sure to add the python and pygobject dependencies. When the new instructions are released (at the next HPLIP release) if you don't mind please look over them and any feedback is appreciated. If you send me an email (ke7ezt(at)gmail(dot)com) I can send you the instructions and you can have a look before hand.

Although I'll have to send them to you tomorrow.

I'm hoping the LFS instructions will be, at the very least, a little more useful for LFS users. Although what I have put together is considered some basic hints to install HPLIP. We believe HPLIP should work on most, if not all, Linux distros however we are unable to test on every distro and version combination because of the huge number of various combinations.

Thanks for your support of HPLIP--we appreciate it.

Aaron

Revision history for this message
Sherpya (sherpya-gmail) said :
#26

I solved installing python-gobject, but another problem I had is hang on gpg recv keys from hardcoded pgp.mit.edu server,
it's debian related ?

Can you help with this problem?

Provide an answer of your own, or ask Steffen Pankratz for more information if necessary.

To post a message you must log in.