Comment 14 for bug 1354731

Revision history for this message
In , Netfab (netfab) wrote :

Created attachment 400552
hp-check output

(In reply to Daniel Pielmeier from comment #7)
> Please check if the range function is the culprit. Change line 198 from
> /usr/share/hplip/base/status.py to
>
> for p in len(range(num_pens)):
>
> and check if this fixes the issue.
>

When doing this modification in hplip-3.14.10, an exception is catched, the output of hp-levels -g is changing from :

> hp-levels[7759]: debug: num_pens = 2
> hp-levels[7759]: debug: pen 0 {'index': 0, 'kind': 3L, 'level': 194, 'ack': True,
> 'hp-ink': False, 'dvc': 36480L, 'level-trigger': 0, 'virgin': True, 'health': 0,
> 'known': False, 'type': 0, 'id': 0}
> hp-levels[7759]: debug: pen 1 {'index': 1, 'kind': 0L, 'level': 66, 'ack': True,
> 'hp-ink': False, 'dvc': 5580L, 'level-trigger': 0, 'virgin': True, 'health': 0,
> 'known': False, 'type': 0, 'id': 17}
> error: Error attempting to read r-value (2).

To :

> hp-levels[7730]: debug: num_pens = 2
> warning: Status parsing error: 'int' object is not iterable
> error: Error attempting to read r-value (2).

I can also try hplip-3.15.2 to see if it makes any difference.