hp-toolbox and others fail to find cups printers due to charset issues

Bug #308257 reported by Eivind Tagseth
4
Affects Status Importance Assigned to Milestone
HPLIP
Invalid
Undecided
Unassigned
hplip (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Distro: Gentoo
Printer: HP Photosmart D7160

My problem is that none of the hplip tools are able to detect my cups printers. I've traced to issue down to the cupsext module.

The call to cupsext.getPrinters() returns an empty list when run by e.g. hp-toolbox. If I run this function in a python shell manually, the call works as expected (~6 printers are returned).

I used strace for extra information, and noticed error messages in the cups http response about an unsupported character set (iso-8859-1).

Running e.g. hp-toolbox as
   $ LANG=C hp-toolbox
works.

My normal locale is no_NO.

Trying to provoke this error by calling cupsext.getPrinters() manually in a python shell has so far failed, no LANG settings have been able to provoke the error, it only happens when called by hplip tools like hp-toolbox and hp-check.

The attached hp-check.log is run using my normal locale (no_NO), when run with LANG=C, it is able to find printers. For some reason, running hp-check as root allways fails to find the printers, no matter how I set the LANG variable, while as a normal user, setting LANG=C works.

Revision history for this message
Eivind Tagseth (eivindt) wrote :
Changed in hplip:
assignee: nobody → kalosaurusrex
status: New → Triaged
Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Hello Eivind,
Thank you for submitting this bug and reporting a problem with hplip. You made this bug report some time ago and Ubuntu and hplip have been updated since then.

Could you confirm that this is no longer a problem and that we can close the ticket?
If it is still a problem, are you still interested in finding a solution to this bug?
If you are, could you let us know and, in the current version, could you run the following (only once):
apport-collect 308257
and upload the updated logs and and any other logs that are relevant for this particular issue.

Thank you again for helping make Ubuntu and hplip better.
G

Changed in hplip (Ubuntu):
status: New → Incomplete
Revision history for this message
Eivind Tagseth (eivindt) wrote :

Unfortunately, I no longer have this system or the hplip program (or the printer) any more.

Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Thanks for the update, Eivind. I'll close the ticket now.
Have a great day!
:)
G

Changed in hplip (Ubuntu):
status: Incomplete → Invalid
Changed in hplip:
status: Triaged → Invalid
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.