Bug 236161 - hplip: hp-timedate has missing files
Summary: hplip: hp-timedate has missing files
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-04-12 06:35 UTC by Bernard Johnson
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 1.7.2-7.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-04-13 12:47:30 UTC
Type: ---

Attachments (Terms of Use)

Description Bernard Johnson 2007-04-12 06:35:08 UTC
Description of problem:
hp-timedate has missing files.

ATM, this is an uneducated guess, but I'm going to say that the
/usr/share/hplip/fax directory and files should be packaged with the base files.
 At first look I don't see any gui parts to them.

hp-sendfax is supposed to be able to be used on the command line.  Not sure
about some of the other programs though.

It might make more sense to include this in the base package and manually filter
the requires to exclude *Qt*.  hp-sendfax for example has a fallback if it can't
 start in gui mode:

if mode == GUI_MODE:
    if not os.getenv('DISPLAY'):

    elif not utils.checkPyQtImport():

Taking a quick look around says that 


all have this fallback.

Version-Release number of selected component (if applicable):
Actual results:
$ hp-timedate
Traceback (most recent call last):
  File "/usr/bin/hp-timedate", line 38, in <module>
    from fax import fax
ImportError: No module named fax

Comment 1 Tim Waugh 2007-04-13 12:47:30 UTC
I don't think faxing can work without the hp-sendfax GUI.  I've moved the fax
bits into the gui package, except for the filter (main package) and the PPD (hpijs).

Comment 2 Bernard Johnson 2007-04-14 08:19:54 UTC
I'm testing this on the hplip-1.7.2-2.fc6 monolithic package, so let me know if
you think that makes any difference.

If I:
# rpm -e PyQt --nodeps

I can still fax by command line:
$ hp-sendfax -n -f 8885551212 -bnet testfile

HP Linux Imaging and Printing System (ver. 1.7.2)
PC Sendfax Utility ver. 5.1

Copyright (c) 2003-6 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.

Using printer HP_Color_LaserJet_2840_fax

Rendering file '/home/bjohnson/testfile' (job 35)...

Transfering fax data...
error: Device is busy or in an error state (code=102). Please wait for the
device to become idle or clear the error and try again.

Sending fax...
Dialing 8885551212...
Sending page 1 to 8885551212...
Cleaning up...
Completed successfully.

(Ignore the error code, that's actually a bug in hplip that considers low supply
status an error condition when faxing - I've actually changed the code there to
make it non-fatal)

Comment 3 Tim Waugh 2007-04-16 10:24:28 UTC
Okay, I'll add that back into the main package for 1.7.2-7.fc7.  Thanks!

Note You need to log in before you can comment on or make changes to this bug.