HP Color LaserJet CM1015 ubuntu 12.10 scan error!!!

Bug #1086562 reported by febeks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

hello,

printing is okay, but scanning, ....its just killing me! on ubuntu 12.04 was scanning perfect but 12.10...doesnt scan at all. It recognizes my printer like a scanner which is good but when i press scan, it says: Failed to start scanner. Invalid argument. I do not have a problem with web camera, ... its some other problem, not discussed yet (at least i didnt find it) I have tried several scanning softwares but none of them worked... any ideas?! please fix it or help me ASAP, my blood pressure is freaking high!

thanks

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Thanks for reporting the issue in HPLIP. To help us understand and analyze the issue please follow following things.
=> Download and install the latest HPLIP release from
http://hplipopensource.com/hplip-web/install/install/index.html (automatic installer) or
http://hplipopensource.com/hplip-web/install/manual/index.html (manual installation, if automatic installer does not work)

=> run "hp-check --fix" command in the terminal if manual installation is done

=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin"
             or
      => sudo hp-plugin (This will download right plugin)
       => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)

=>Try scanning using "hp-toolbox" command.

Revision history for this message
Patrick Millette (abonnement) wrote :

Same problem here with OfficeJet 4620 was working fine on Ubuntu 12.04

Installed latest and greatest hplip-3.12.11 on Ubuntu 12.10 64 bits nad printing is fine but can't scan.

hp-check returns

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

tried everything above and stil cannot scan from hp-toolbox or other scanning software

Thanks

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi Patrick,

Is this issue using USB or network also?
Does scan working fine in root mode?

If it is USB and scan works using root, may be issue with permissions so change permissions as follows.

   $ lsusb |grep Hewlett
       (It will display device as Hewlett-Packard.)
        e.g. Bus 001 Device 002: ID 03f0:002a Hewlett-Packard
     --> now change permissions
    $ chmod a+w /dev/bus/usb/001/002

    $ xsane
    or
    $ hp-scan

If scan is not working from root also, please post following commands output here.
$ hp-scan -g
$ hp-check

Thanks & Regards,
Amarnath

Revision history for this message
Patrick Millette (abonnement) wrote :
Download full text (11.1 KiB)

Hi Amarnath

Here is hp-scan -g result:
----------------------------------
hp-scan[23053]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[23053]: debug: Mode=0
hp-scan[23053]: debug: hp:/net/Officejet_4620_series?zc=HPAC162D31703D: back_end:hp is_hp:True bus:net model:Officejet_4620_series serial: dev_file: host:HPAC162D31703D zc:HPAC162D31703D port:1
hp-scan[23053]: debug: Cache miss: officejet_4620_series
hp-scan[23053]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[23053]: debug: Searching for section [officejet_4620_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[23053]: debug: Found section [officejet_4620_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[23053]: debug: hpfax:/net/Officejet_4620_series?zc=HPAC162D31703D: back_end:hpfax is_hp:True bus:net model:Officejet_4620_series serial: dev_file: host:HPAC162D31703D zc:HPAC162D31703D port:1
hp-scan[23053]: debug: {'hpaio:/net/Officejet_4620_series?zc=HPAC162D31703D': ['Officejet_4620']}
Using device: hpaio:/net/Officejet_4620_series?zc=HPAC162D31703D

warning: No destinations specified. Adding 'file' destination by default.
error: Unable to locate device hpaio:/net/Officejet_4620_series?zc=HPAC162D31703D using SANE backend hpaio:. Please check HPLIP installation.

and here is hp-check result:
--------------------------------------
HP Linux Imaging and Printing System (ver. 3.12.11)
Dependency/Version Check Utility ver. 15

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

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks] ...

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi,

As per the logs, showing distro as linuxmint and mentioned as Ubuntu-12.10.

If it is Linux mint, can you please try following changes.
Seems like In Linux mint 13 64 bit symlink between /usr/lib and /usr/lib64 is missing or changed.

We will fix this issue in next HPILIP release meanwhile please make following changes from scan functionality.
1) copy libsane-hpaio files into /usr/lib/sane folder
   $ sudo cp /usr/lib64/sane/libsane-hpaio* /usrlib/sane

2) start scan functionality
   $ xsane

Thanks & Regards,
Amarnath

Revision history for this message
febeks (frantisek-bekes) wrote :

i did as u said in first comment, but when hp setup finds my printer, i click on net and it shows in terminal following message:

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/devmgr5.py", line 1232, in ActionsList_clicked
    dlg.exec_()
  File "/usr/share/hplip/ui4/devmgr5.py", line 140, in exec_
    ok, sudo_ok = pkit.run_plugin_command(self.plugin_type == PLUGIN_REQUIRED, self.parent.cur_device.mq['plugin-reason'])
  File "/usr/share/hplip/base/pkit.py", line 472, in run_plugin_command
    su_sudo = utils.su_sudo()
  File "/usr/share/hplip/base/utils.py", line 1782, in su_sudo
    elif utils.which('/usr/lib/kde4/libexec/kdesu'):
NameError: global name 'utils' is not defined

...

scan doesnt work ...

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi,

As we see, hplip-3.12.11 code doesn't have "elif utils.which('/usr/lib/kde4/libexec/kdesu'):" statement in base/utils.py.
Please let us know, which code you are compiling.

Please download the hplip-3.12.11.run from http://hplipopensource.com/hplip-web/install/install/index.html and install it.

Thanks & Regards,
Amarnath

Revision history for this message
Charles Peters II (cp) wrote :

I was trying to scan with xsane and ran into an error...
 Failed to set value of option tl-x: invalid argument.

I also tried installing hplip-3.12.11.run and same results.

cp@o32:/tmp$ hp-scan -g -otest.jpg --size=letter

HP Linux Imaging and Printing System (ver. 3.12.11)
Scan Utility ver. 2.2

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

hp-scan[9276]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[9276]: debug: Mode=0
WARNING: gnome-keyring:: couldn't connect to: /run/user/cp/keyring-4P25sf/pkcs11: No such file or directory
hp-scan[9276]: debug: Device URI dnssd://Brother%20HL-2170W%20series._printer._tcp.local/ is invalid/unknown
hp-scan[9276]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[9276]: debug: hp:/net/HP_Color_LaserJet_CM1017?ip=192.168.2.14: back_end:hp is_hp:True bus:net model:HP_Color_LaserJet_CM1017 serial: dev_file: host:192.168.2.14 zc: port:1
hp-scan[9276]: debug: Cache miss: hp_color_laserjet_cm1017
hp-scan[9276]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[9276]: debug: Searching for section [hp_color_laserjet_cm1017] in file /usr/share/hplip/data/models/models.dat
hp-scan[9276]: debug: Found section [hp_color_laserjet_cm1017] in file /usr/share/hplip/data/models/models.dat
hp-scan[9276]: debug: hp:/net/HP_Color_LaserJet_CM1017?ip=192.168.2.14: back_end:hp is_hp:True bus:net model:HP_Color_LaserJet_CM1017 serial: dev_file: host:192.168.2.14 zc: port:1
hp-scan[9276]: debug: {'hpaio:/net/HP_Color_LaserJet_CM1017?ip=192.168.2.14': ['HP_Color_LaserJet_CM1017', 'HP_Color_LaserJet_CM1017_2']}
Using device: hpaio:/net/HP_Color_LaserJet_CM1017?ip=192.168.2.14

Using device hpaio:/net/HP_Color_LaserJet_CM1017?ip=192.168.2.14
Opening connection to device...
warning: Invalid value for tl-x (tl-x < min value of 215). Using 215.
error: Unable to set option tl-x to value 215.899993896
warning: Invalid value for tl-y (tl-y < min value of 296). Using 296.
error: Unable to set option tl-y to value 296.925994873
warning: Invalid value for br-x (br-x < min value of 215). Using 215.
error: Unable to set option br-x to value 215.899993896
warning: Invalid value for br-y (br-y < min value of 25966). Using 25966.
error: Unable to set option br-y to value 25966.4113159
hp-scan[9276]: debug: Device supported resolutions [75, 100, 150, 200, 300, 600, 1200]
error: Invalid scan area (width or height is negative).

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.