From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 Description of problem: when the environment variable LANG is set to es_ES redhat-config-printer crashes with the following error: Traceback (most recent call last): File "/usr/sbin/redhat-config-printer", line 9, in ? import queueTree File "/usr/share/printconf/util/queueTree.py", line 945, in ? queueTree() File "/usr/share/printconf/util/queueTree.py", line 102, in __init__ 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 Looking in the code of /usr/share/printconf/util/cups_import.py I saw that in line 190: if l.startswith (" link currently points to"): there is a reference to the output of the command "alternative", wich in prior versions output allways in english, but now it outputs depending on the LANG variable. So, the python script can't determine wich spooler is the system using. Version-Release number of selected component (if applicable): redhat-config-printer-0.6.47.3.19-1 How reproducible: Always Steps to Reproduce: 1. Ensure that you are using chkconfig-1.3.11-0.3 2. export LANG=es_ES 3. execute redhat-config-printer Additional info:
*** This bug has been marked as a duplicate of 131563 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.