hp-setup fails with errors

Bug #880741 reported by SJI
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
goutam kodu

Bug Description

Installed HPlip 33.11.10 the output and errors:

ste@local:~/downloads$ ./hplip-3.11.10.run
Creating directory hplip-3.11.10
Verifying archive integrity... All good.
Uncompressing HPLIP 3.11.10 Self Extracting Archive....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.11.10)
HPLIP Installer ver. 5.1

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.

Installer log saved in: hplip-install_Mon-24-Oct-2011_10:09:43.log

/
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a

Initializing. Please wait...

INTRODUCTION
------------
This installer will install HPLIP version 3.11.10 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 11.10.

Is "Ubuntu 11.10" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

ENTER USER PASSWORD
-------------------
Please enter the user (ste)'s password:
Password accepted

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive. During the install process you will be added to the lp and lpadmin group, please quit the installer before the setup stage, log out, log back in, and run hp-setup to complete the install.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 6 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 9 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'network': libcrypto (libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency for option 'network': libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency for option 'gui_qt4': pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing REQUIRED dependency for option 'gui_qt4': pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing REQUIRED dependency for option 'fax': dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE - Scanning library development files)
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)
warning: Missing OPTIONAL dependency for option 'base': cups-ddk (CUPS DDK - CUPS driver development kit)

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes python-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-bsd'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-client'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libusb-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libtool'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcupsimage2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libjpeg62-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes openssl'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsnmp-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-qt4'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libdbus-1-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsane-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes xsane'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups'
Please wait, this may take several minutes...
warning: A previous install of HPLIP is installed and/or running.
sudo apt-get remove --assume-yes hplip hpijs hplip-cups hplip-data libhpmud0 foomatic-db-hpijs (Removing old HPLIP version)
warning: HPLIP removal failed. The previous install may have been installed using a tarball or this installer.
warning: Continuing to run installer - this installation should overwrite the previous one.

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------

PRE-BUILD COMMANDS
------------------
OK

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-udev-acl-rules --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make'
Please wait, this may take several minutes...
Command completed successfully.

Running 'sudo make install'
Please wait, this may take several minutes...
Command completed successfully.

Build complete.

POST-BUILD COMMANDS
-------------------
sudo /usr/sbin/usermod -a -Glp,lpadmin ste (Post-build step 1)

CLOSE HP_SYSTRAY
----------------
Sending close message to hp-systray (if it is currently running)...

RESTART OR RE-PLUG IS REQUIRED
------------------------------
If you are installing a USB connected printer, and the printer was plugged in
when you started this installer, you will need to either restart your PC or
unplug and re-plug in your printer (USB cable only). If you choose to restart,
run this command after restarting: hp-setup (Note: If you are using a parallel
connection, you will have to restart your PC. If you are using network/wireless,
you can ignore and continue).

Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) : p
Please unplug and re-plugin your printer now. Press <enter> to continue or 'q' to quit:

PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
error: hp-setup failed. Please run hp-setup manually.

ste@local:~/downloads$ hp-setup
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 45, in <module>
    from base import device, utils, tui, models, module
  File "/usr/share/hplip/base/device.py", line 39, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 45, in <module>
    import hpmudext
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory

Revision history for this message
SJI (sji) wrote :
Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi SJI,

Thank you for the terminal outputs.
The problem with Ubuntu 11.10 x86_64 bit is that they dont have a softlink between /usr/lib64 to /usr/lib. Where as in previous versions of Ubuntu (10.10 & 11.04) x86_64 bit there was a softlink between them.
HPLIP installer copies the libhpmud.* file in the /usr/lib64 directory and when "import hpmudext " is called from the status.py file it tries to look for the library in /usr/lib/ directory by default and hence it reports ,
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory

/usr/lib64 path is not set in LD_LIBRARY_PATH (env variable) by default hence is ends up looking for the library in /usr/lib/ (Which is something OS has to take care)

You can launch a query about this to Ubuntu.
What is i can provide is only a work around.

Open terminal and type in the below command:
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/"

Next run the command : "hp-setup" and check if it imports the library libhpmud.so.0

This is a temporary solution . The environment variable LD_LIBRARY_PATH is set until the terminal in not closed. To have this variable permanently set you need to edit the file .bashrc present in your home folder ($HOME).
Go to you home directory ( $cd ~)
edit the file .bashrc ( $vim .bashrc)
enter the below lines at the end of the file and save it and close it

LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/lib64/
export LD_LIBRARY_PATH

After that restart your system and check running "hp-setup"

Let us know on the same,

When it comes to installing of the plugin files for your printer it will ask you to have sudo user previlages. By default the env variable LD_LIBRARY_PATH is not set for sudo user.
Will provide you the steps to set the same for sudo user:

1. Enter the folder /etc/ld.so.conf.d/
    $ cd /etc/ld.so.conf.d/

2. create a "conf" file by name "lib64.conf".
    $vim lib64.conf

3. Add the line /usr/lib64/ in the file lib64.conf

4. Run command "sudo ldconfig" to load the libraries.

5. Next run commad "sudo hp-plugin -g" and check whether you are able to download and install the plugin file.

Sorry for inconvenience.

Thanks & Regards,
Goutam Kodu

Changed in hplip:
status: New → In Progress
assignee: nobody → goutamkk (goutam-hplip)
Revision history for this message
SJI (sji) wrote :

The "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/" allows hp-setup to run now.

Unfortunately it doesn't detect my printer. It is a LaserJet 6p connected to a USB<>Parallel converter, so I guess this could be causing an issue?

Terminal that launched hp-setup output:

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

lsusb output:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191S WLAN Adapter
Bus 002 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 005 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 004 Device 002: ID 0a5c:2121 Broadcom Corp. BCM2210 Bluetooth
Bus 004 Device 003: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port

lpstat -p -v output:
printer HP_LaserJet_6P is idle. enabled since Mon 24 Oct 2011 10:45:52 BST
device for HP_LaserJet_6P: usb://HP/LaserJet%206P

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.