Trouble with ReportLab

Asked by Hartmut

I installed everything for my Photosmart C7280 and its working fine with one exception: Reportlab was missing. When I installed ReportLab 2.0, the toolbox did not work any more and i got the following error message:

<code>
hartmut@Jupiter:~> hp-toolbox

HP Linux Imaging and Printing System (ver. 2.8.4)
HP Device Manager ver. 13.1

Copyright (c) 2001-8 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: Unable to load dbus - Automatic status updates in HPLIP Device Manager will be disabled.
Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 199, in <module>
    from ui.devmgr4 import DevMgr4
  File "/usr/share/hplip/ui/devmgr4.py", line 56, in <module>
    from scrollfax import ScrollFaxView
  File "/usr/share/hplip/ui/scrollfax.py", line 55, in <module>
    ver = reportlab.Version
AttributeError: 'module' object has no attribute 'Version'
</code>

dbus is only for USB-connection, so ignore that, I'm printing via network ...

 So, what has do be done? My Python has the version-number 2.5.1, Phython-qt is 3.17. Operating system is Opensuse 10.3 (updated).

Hartmut

Question information

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

I don't know whats going on with your ReportLab installation, but:

dbus is only for USB-connection, so ignore that, I'm printing via network
> ...

dbus has nothing directly to do with USB support. HPLIP uses dbus for status
support and fax support.

 Also, for what its worth Reportlab is not required for HPLIP in general, it
is used only for fax coverpage generation. It is optional even for fax
support.

On Thu, Apr 24, 2008 at 6:59 AM, Hartmut <
<email address hidden>> wrote:

> New question #30598 on HPLIP:
> https://answers.launchpad.net/hplip/+question/30598
>
> I installed everything for my Photosmart C7280 and its working fine with
> one exception: Reportlab was missing. When I installed ReportLab 2.0, the
> toolbox did not work any more and i got the following error message:
>
> <code>
> hartmut@Jupiter:~> hp-toolbox
>
> HP Linux Imaging and Printing System (ver. 2.8.4)
> HP Device Manager ver. 13.1
>
> Copyright (c) 2001-8 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: Unable to load dbus - Automatic status updates in HPLIP Device
> Manager will be disabled.
> Traceback (most recent call last):
> File "/usr/bin/hp-toolbox", line 199, in <module>
> from ui.devmgr4 import DevMgr4
> File "/usr/share/hplip/ui/devmgr4.py", line 56, in <module>
> from scrollfax import ScrollFaxView
> File "/usr/share/hplip/ui/scrollfax.py", line 55, in <module>
> ver = reportlab.Version
> AttributeError: 'module' object has no attribute 'Version'
> </code>
>
> dbus is only for USB-connection, so ignore that, I'm printing via network
> ...
>
> So, what has do be done? My Python has the version-number 2.5.1,
> Phython-qt is 3.17. Operating system is Opensuse 10.3 (updated).
>
> Hartmut
>
> --
> 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
Hartmut (hartmut-krummrei) said :
#2

Ok, if I understand correctly, I need dbus. So: how to? hp-check tells me nothing about "missing dbus". hp-toolbox told me that automatic updating will be disabled before I installed Reportlab. And what I know about that, is that dbus is installed for hardware corresponding. My hardware answers, if the system asks ...

ReportLab is nessesary for fax-covers and its optional. That was told from hp-toolbox. I want that, I installed it and its not working. The error-lines below "Unable to load dbus" came after installing Reportlab, so they have to do with Reportlab.

So now i have two problems:

How do get the dbus-thing working?
What can I do to get ReportLab working?

Sorry ...

Hartmut

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

Please run hp-check -t and post the output.

A

Revision history for this message
Hartmut (hartmut-krummrei) said :
#4

OK, here is it:

<code>
Jupiter:/home/hartmut # hp-check -t

HP Linux Imaging and Printing System (ver. 2.8.4)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 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 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).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux Jupiter 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC x86_64 x86_64 x86_64 GNU/Linux

Distribution:
suse 10.3

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.1 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.7 installed

Checking for CUPS...
Status: Scheduler läuft
Version: 1.2.12
error_log is set to level: info
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.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-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
xterm -e su -c "yast --install cupsddk"

Checking for dependency: cups-devel- Common Unix Printing System development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install cups-devel"

Checking for dependency: dbus - Message bus system...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install dbus-1-devel"

Checking for dependency: gcc - GNU Project C and C++ Compiler...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install gcc-c++"

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install openssl"

Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install libjpeg-devel"

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install net-snmp-devel"

Checking for dependency: libpthread - POSIX threads library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install glibc"

Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install libtool libgphoto2-devel"

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install libusb libusb-devel"

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:
xterm -e su -c "yast --install python-imaging"

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.
To install this dependency, execute this command:
su -c "modprobe ppdev"

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
xterm -e su -c "yast --install python-devel python-xml"

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.

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...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

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

Currently installed HPLIP version...
HPLIP 2.8.4 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.8.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/manufacturer-PPDs/hplip
ppdbase=/usr/share/cups/model/manufacturer-PPDs
doc=/usr/share/doc/packages/hplip
icon=/usr/share/applications
cupsbackend=/usr/lib64/cups/backend
cupsfilter=/usr/lib64/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=yes
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.4.2

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.
error: 'ppdev' kernel module not loaded.

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

No devices found.

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

warning: No queues found.

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

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

Checking output of 'scanimage -L'...
device `hpaio:/net/Photosmart_C7200_series?ip=192.168.1.9' is a Hewlett-Packard Photosmart_C7200_series all-in-one

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

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

error: 14 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
xterm -e su -c "yast --install cupsddk"
xterm -e su -c "yast --install cups-devel"
xterm -e su -c "yast --install dbus-1-devel"
xterm -e su -c "yast --install gcc-c++"
xterm -e su -c "yast --install openssl"
xterm -e su -c "yast --install libjpeg-devel"
xterm -e su -c "yast --install net-snmp-devel"
xterm -e su -c "yast --install glibc"
xterm -e su -c "yast --install libtool libgphoto2-devel"
xterm -e su -c "yast --install libusb libusb-devel"
xterm -e su -c "yast --install python-imaging"
su -c "modprobe ppdev"
xterm -e su -c "yast --install python-devel python-xml"

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

Done.
</code>

Hartmut

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

I just tested hplip 2.8.4 on Suse 10.3 and it installed and is working correctly.

I think there is a problem with your installation, please uninstall hplip

su -c "rm -rf /usr/share/hplip"

Use yast to uninstall any already installed hplip. Then reinstall hplip using the automatic installer from http://hplip.sf.net

Hope this helps.

Aaron

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

That is--the dbus portion isn't causing a problem. Sorry that wasn't clear.

A

Revision history for this message
Hartmut (hartmut-krummrei) said :
#7

Why uninstall and reinstall a correctly working program? The problem is Reportlab. Have you installed it? If yes, did hp-toolbox open?

Hartmut

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

When you run hp-toolbox you are no longer getting the error below?

"error: Unable to load dbus - Automatic status updates in HPLIP Device Manager will be disabled."

The problem with reportlab is that suse 10.3 does not have the reportlab package available. Suse may be able to provide information on where/how to get the reportlab package. However currently it is not in their repositories.

A

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

Also you are missing a LOT of required dependencies.

Run the following commands or re-install hplip to get your system working correctly.

xterm -e su -c "yast --install cupsddk"
xterm -e su -c "yast --install cups-devel"
xterm -e su -c "yast --install dbus-1-devel"
xterm -e su -c "yast --install gcc-c++"
xterm -e su -c "yast --install openssl"
xterm -e su -c "yast --install libjpeg-devel"
xterm -e su -c "yast --install net-snmp-devel"
xterm -e su -c "yast --install glibc"
xterm -e su -c "yast --install libtool libgphoto2-devel"
xterm -e su -c "yast --install libusb libusb-devel"
xterm -e su -c "yast --install python-imaging"
xterm -e su -c "yast --install python-devel python-xml"

Revision history for this message
Hartmut (hartmut-krummrei) said :
#10

Have a look at

download.opensuse.org/repositories/home:/jsmeix/openSUSE_10.3

for a 2.0-version of ReportLab.The dbus-error appeared before installing ReportLab. If I have to use the HPLIP-Version from sf.net I have to install a bunch of -devel-packages. I fear that the whole work of installing, downloading and compiling brings nothing. If anyone could tell me, that this work for sure ! solves the problem with dbus, I will do it.

Hartmut

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

I just checked this on Suse 10.3 the HPLIP release 2.8.4 from http://hplip.sf.net and it worked correctly using the automatic installer.

The problem is with your system installer..if you use the automatic installer it will walk you through the process and is easy and straightforward.

All the best,

A

Revision history for this message
Hartmut (hartmut-krummrei) said :
#12

And with ReportLab?

Hartmut

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

Hartmut,

I looked on:

http://http://download.opensuse.org/repositories/home:/jsmeix/openSUSE_10.3/i586/

and I am not seeing an rpm for reportlab....if it's not in the repositories you can try installing it from source but we don't provide support for reportlab...

A

Revision history for this message
Hartmut (hartmut-krummrei) said :
#14

Sorry, wrong adress: try

http://download.opensuse.org/repositories/home:/kfreitag/openSUSE_10.3/repodata/

This is not for supporting me, it's just an adress for you, if you want to try out ...

Hartmut

By the way: I just installed HPLIP on a third computer with opensuse 10.3 and there's no dbus-error, only the message about missing Reportlab. But on that computer xsane is not finding the scanner. I have to look for the difference of the installation.

Hartmut

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

yeah it looks like the rpm is there thanks for the link.

As for why your other computer isn't detecting the scanner run hp-check and post the output.

Thanks!

A

Revision history for this message
Hartmut (hartmut-krummrei) said :
#16

Hi Aaron,

I'm here again. The last thing from yesterday wasn't a call for support. I knew that I forgot something.It was the # before "hpaio" in /etc/sane/dll.conf. Scanning is ok. That leaves the problem with the dbus and Reportlab. But I will open a new thread for dbus. Thank's

Hartmut