hp-scan aborts with python error

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

Bug Description

sane-backends :
$ scanimage -V
scanimage (sane-backends) 1.0.22; backend version 1.0.22

hplip :
$ hp-info
HP Linux Imaging and Printing System (ver. 3.11.7)

when trying too launch hp-scan :
$ hp-scan

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

Copyright (c) 2001-9 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 device: hpaio:/usb/HP_Color_LaserJet_CM1015?serial=00CNCY6BHGMC

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_Color_LaserJet_CM1015?serial=00CNCY6BHGMC
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 296.925995mm)
  Width: 215.899994mm
  Height: 296.925995mm
Destination(s): file
Output file:
Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 711, in <module>
    source_option = device.getOptionObj("source").constraint
AttributeError: 'NoneType' object has no attribute 'constraint'

I can't understand this error please help...

scanimage doesn't work too :

$ scanimage -v > test
scanimage: scanning image of size 637x876 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 255/0
scanimage: sane_read: Operation was cancelled

but
$ scanimage -vd hpaio:/usb/HP_Color_LaserJet_CM1015?serial=00CNCY6BHGMC > test
scanimage: scanning image of size 637x876 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 3/255
scanimage: read 1674036 bytes in total

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Hello Jay,

   Can you please post the output of "hp-check -t" here?

Revision history for this message
Jay (jerome-avond-free) wrote :

Of course

btw it appears that sometimes it work while you just change the usb hole.

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Make sure when you connect the printer via USB, run in commandline "lsusb" and it should display the printer connected. If it doesn't, then some problem is there with USB. As you mentioned, while changing the USB hole, it works.

Let us know your input on this.

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.