Bug 85363

Summary: Traceback when neither CUPS nor LPRng installed
Product: [Retired] Red Hat Linux Reporter: Miloslav Trmac <mitr>
Component: redhat-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 9CC: olivier.baudron, trondeg
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 0.6.72-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-29 16:03:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Miloslav Trmac 2003-02-28 16:16:55 UTC
Description of problem:

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1.Install redhat-config-printer without installing CUPS or LPRng
Actual results:
Traceback at /usr/share/printconf/util/cups_import.py line 195

Comment 1 Trond Eivind Glomsrød 2003-04-15 10:38:56 UTC
Here is a traceback from the released version, redhat-config-printer-0.6.47-1.
All you have to do is to not select printing while you do select configuration
tools during a custom install.

[root@dpc-21 mail]# Initializing alchemist edit environment ...
Initializing linux printing database ...
Traceback (most recent call last):
  File "/usr/sbin/redhat-config-printer", line 12, in ?
  File "/usr/share/printconf/util/printconf_tui.py", line 2343, in
  File "/usr/share/printconf/util/printconf_tui.py", line 1975, in tui_main_run
    if cups_import.import_needed ():
  File "/usr/share/printconf/util/cups_import.py", line 200, in import_needed
    which = which_spooler ()
  File "/usr/share/printconf/util/cups_import.py", line 195, in which_spooler
    return which
UnboundLocalError: local variable 'which' referenced before assignment

Comment 2 Bill Nottingham 2003-08-08 03:18:22 UTC
*** Bug 101909 has been marked as a duplicate of this bug. ***

Comment 3 Tim Waugh 2003-08-08 08:04:20 UTC
redhat-config-printer should require cups.