error when hp-align is run

Bug #155527 reported by Sean
0
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: hplip

When running hp-align (from hplip 2.7.7 in Gutsy) at the command line, the following error is reported:

  HP Linux Imaging and Printing System (ver. 2.7.7)
  Printer Cartridge Alignment Utility ver. 4.0

  Copyright (c) 2001-7 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: hp:/usb/Deskjet_F300_series?serial=CN63VBG1SS04KH
  Traceback (most recent call last):
    File "/usr/share/hplip/align.py.bak", line 259, in <module>
      maint.AlignType6(d, aioUI1, aioUI2, ui.load_paper_prompt)
  NameError: name 'ui' is not defined

Looking at source for /usr/share/hplip/align.py, the following import is used in line 34:

  from base import device, status, utils, maint, tui

There is no import for 'ui'. References to this module appear in lines 252-277.

If I add a second import after the original, like this..

  from base import device, status, utils, maint, tui
  from base import tui as ui

... hp-align works.

Revision history for this message
Sean (defulmere) wrote :

Note: you see "/usr/share/hplip/align.py.bak" in the error message above because I was running the unmodified backup of the original to generate the error.

Revision history for this message
Brian Pitts (bpitts) wrote :

I can confirm.

HP Linux Imaging and Printing System (ver. 2.7.7)
Printer Cartridge Alignment Utility ver. 4.0

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

warning: Inrecognized URI: cups-pdf:/
Using device: hp:/usb/psc_1310_series?serial=CN43I160KKO2
Traceback (most recent call last):
  File "/usr/bin/hp-align", line 259, in <module>
    maint.AlignType6(d, aioUI1, aioUI2, ui.load_paper_prompt)
NameError: name 'ui' is not defined

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in hplip:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in hplip:
status: Incomplete → 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.