[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#402909: Additional information to hplip



Dear Henrique,

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

If you invoke hp-sendfax with 

hp-sendfax -gg  -pOfficeJet_6100_fax -f0000000000 -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:

#################
wolfgang@rocket:~$ hp-sendfax -gg  -pOfficeJet_6100_fax -rXXXXXX 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

Attachment: pgp5anGDWJI7d.pgp
Description: PGP signature


Reply to: