Jan Birk wrote:
> Jeg forsøger at lave en ny printer:
>
> # /usr/sbin/printconf-gui
....
>> File "/usr/share/printconf/util/cups_import.py", line 195, in
>> which_spooler
>> return which
>> UnboundLocalError: local variable 'which' referenced before assignment
Ved at kigge omkring linie 195 i
/usr/share/printconf/util/cups_import.py
bliver man lidt klogere.
Hvad skriver kommandoen:
# /usr/sbin/alternatives --display print
Hos mig giver den:
print - status is auto.
link currently points to /usr/bin/lpr.cups
/usr/bin/lpr.cups - priority 40
slave print-lp: /usr/bin/lp.cups
slave print-lpq: /usr/bin/lpq.cups
slave print-lprm: /usr/bin/lprm.cups
slave print-lpstat: /usr/bin/lpstat.cups
slave print-cancel: /usr/bin/cancel.cups
slave print-lpc: /usr/sbin/lpc.cups
slave print-cancelman: /usr/share/man/man1/cancel-cups.1.gz
slave print-lpman: /usr/share/man/man1/lp-cups.1.gz
slave print-lpcman: /usr/share/man/man8/lpc-cups.8.gz
slave print-lpqman: /usr/share/man/man1/lpq-cups.1.gz
slave print-lprman: /usr/share/man/man1/lpr-cups.1.gz
slave print-lprmman: /usr/share/man/man1/lprm-cups.1.gz
slave print-lpstatman: /usr/share/man/man1/lpstat-cups.1.gz
Current `best' version is /usr/bin/lpr.cups.
Mogens
--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@crc.dk Homepage:
http://www.crc.dk