Bug#402909: Additional information to hplip

2007-01-03 Thread Wolfgang Schnitker
Dear Henrique,

as I promised, I did some investigation on hp-sendfax.

If you invoke hp-sendfax with 

hp-sendfax -gg  -pOfficeJet_6100_fax -f00 -n print.ps

it will work. -n is for non-gui-mode. -gg for debugging. But no log found. 

So I DL python-dbg and modified hp-sendfax to use py-dbg instead of py.

output is interesting:

#
[EMAIL PROTECTED]:~$ hp-sendfax -gg  -pOfficeJet_6100_fax -rXX print.ps
Traceback (most recent call last):
  File /usr/bin/hp-sendfax, line 36, in ?
import base.utils as utils
  File /usr/lib/hplip/base/utils.py, line 30, in ?
import xml.parsers.expat as expat
  File /usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py, line 4, 
in ?
from pyexpat import *
ImportError: /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: 
undefined symbol: Py_InitModule4
[13959 refs]

#
 I think, that not all modules are loaded successfully and none takes care 
about it.

Tried to find further python xml modules, none helps.

My thinking is:

Module base.utils can't be loaded, this module is for the investigation of 
commandline parameters (as u can see in the script hp-sendfax) and only for 
the gui version.

This is reproducable and in my case true, if you invoke hp-sendfax from 
commandline with parameters (number, file, ...) the Utility never shows this 
parameters in the window.

 I.e. give a file in PS to fax, this file must be listed in the items list for 
hp-sendfax, but it isn't!

So the bug should be in Python script /usr/lib/hplip/base/utils.py doing 
some xml compiling.


appropiate snippet from hp-sendfax:

#
import base.utils as utils   -HERE
import base.async_qt as async
from base import service, device

log.set_module('hp-sendfax')


USAGE = [(__doc__, , name, True),
 (Usage: hp-sendfax [PRINTER|DEVICE-URI] [OPTIONS] [MODE] 
[FILES], , summary, True),
 utils.USAGE_ARGS,  -HERE
 utils.USAGE_DEVICE,  -HERE
 utils.USAGE_PRINTER,  -HERE
 utils.USAGE_SPACE,  -HERE

#

I hope, this will be usefull for you!

Cheers,


Wolfgang



On Tuesday 02 January 2007 19:11, Henrique de Moraes Holschuh wrote:

-- 
Wolfgang Schnitker


pgphm1771lkTh.pgp
Description: PGP signature


Bug#402909: Additional information to hplip

2007-01-03 Thread Henrique de Moraes Holschuh
On Wed, 03 Jan 2007, Wolfgang Schnitker wrote:
  On Tue, 02 Jan 2007, Wolfgang Schnitker wrote:
   1.) it is necessary to add a dep to foomatic-db-hpijs in the hpijs
   package too. foomatic won't work in my case.
 
  NAK.  hpijs does not need, or care about foomatic-db-* or foomatic.  Or
  even foomatic-filters, for that matter.
 
  The hpijs PPDs need foomatic-filters to work, and that's it.
 
 I do not agree completely, I just took a look at the deps of these packages. 

Remember that hplip *does not need hpijs* to work, *some* of the printers
supported by hplip do.  Pure postscript printers are supported by HPLIP and
do not need HPIJS, and therefore do not need hpijs PPDs, and thus they don't
need foomatic-rip either.

 Web-Frontend to cups. An unexperienced user will not find the solution by 
 himself. 

An unexperienced user that skips recommended packages is on his own.

  What is the bug you want to report regarding issue (3)?
 
 Do you see a possibility to do this within a script or to tell the owner of 
 the PC that he has to do launch hp-setup by hand? Keep a Newbie in mind.

If HP upstream decides to enhance hp-toolbox to hint that hp-setup needs to
be run as root, that might help and should be enough.  Do you agree?

  Something is hideously broken with the PyQT in Debian, which hoses hplip
  fax support.  Nobody so far has any clue on how to fix it.  Until that's
  fixed, your faxing experiences with hplip will vary from can't do it to
  sometimes it works.  FYI, I am in the can't do it camp.
 
 My experience (I am on the can't do it camp too) to get this things work is:
 
 Do not use the GUI, it works if you do it from the commandline, as I told in 
 the first bugreport. Use of kprintfax with commandline to hp-sendfax. 

I will try that.

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#402909: Additional information to hplip

2007-01-02 Thread Wolfgang Schnitker
Hello!

In my opinion the system should work this way:

hplip is the backend to the printer. the driver ppd is stored in hpijs and the 
connection is through foomatic. 

1.) it is necessary to add a dep to foomatic-db-hpijs in the hpijs package 
too. foomatic won't work in my case.

2.) I had trouble with foomatic-filters package. I had to completely reinstall 
this package. Helps a little bit

3.) You have to do as normal user in X-term a sudo hp-setup to get the 
hp-fax queue because the queue is created within this step.

4.) printing to the fax should result in opening hp-sendfax dialog to add a 
recipient and fax-cover (This step is in my case NOT working). My opinion: 
foomatic-rip should forward the job to the queue and invoke hp-sendfax.

I'm getting a time-out, see log.

error: Timeout waiting for rendering. Canceling job #527...
error: Error, aborting.


Cheers and Happy New Year!

Wolfgang

-- 
Wolfgang Schnitker

wolfgang.schnitker at gmx.de


pgpOXJQB76QrE.pgp
Description: PGP signature


Bug#402909: Additional information to hplip

2007-01-02 Thread Henrique de Moraes Holschuh
On Tue, 02 Jan 2007, Wolfgang Schnitker wrote:
 hplip is the backend to the printer. the driver ppd is stored in hpijs and 
 the 
 connection is through foomatic. 

NAK.  CUPS needs PPDs, and so does hplip.  hpijs does not need or care about
PPDs, and hpijs-ppds is so named because it stores PPDs *specific to hpijs*,
and not for any other reason.  It is the hpijs-ppds PPDs that need hpijs,
not the inverse.

foomatic will be removed from the picture in the not-so-distant future, this
work is being done upstream.

 1.) it is necessary to add a dep to foomatic-db-hpijs in the hpijs package 
 too. foomatic won't work in my case.

NAK.  hpijs does not need, or care about foomatic-db-* or foomatic.  Or even
foomatic-filters, for that matter.

The hpijs PPDs need foomatic-filters to work, and that's it.

 2.) I had trouble with foomatic-filters package. I had to completely 
 reinstall 
 this package. Helps a little bit

Well, that's an issue to talk to the foomatic-filters package maintainer.

 3.) You have to do as normal user in X-term a sudo hp-setup to get the 
 hp-fax queue because the queue is created within this step.

Yes.  Or you could create it directly with CUPS, if you tell it to use the
hp-fax backend with the proper uri, and the HP-Fax PPD... but hp-setup is
the easiest way indeed.

What is the bug you want to report regarding issue (3)?

 4.) printing to the fax should result in opening hp-sendfax dialog to add a 
 recipient and fax-cover (This step is in my case NOT working). My opinion: 

Something is hideously broken with the PyQT in Debian, which hoses hplip fax
support.  Nobody so far has any clue on how to fix it.  Until that's fixed,
your faxing experiences with hplip will vary from can't do it to
sometimes it works.  FYI, I am in the can't do it camp.

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]