Can not add network printer in Trisquel 7.0

Proyecto:Trisquel
Versión:7.0
Componente:Programs
Categoría:informe de fallo
Prioridad:normal
Asignado:No asignado
Estado:active
Descripción

When trying to add a network printer through the printer dialog box, do not enable the button for "New Printer".

Moreover, when trying to add it via "sudo system-config-printer", selecting the printer installed on a network window system, when i give below, the following exception is generated:

---------------------------------------------------------
Traceback (most recent call last):
File "/usr/share/system-config-printer/newprinter.py", line 912, in on_btnNPForward_clicked
self.nextNPTab()
File "/usr/share/system-config-printer/newprinter.py", line 1068, in nextNPTab
stderr=file("/dev/null"))
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No existe el archivo o el directorio
--------------------------------------------------------

I analyzed the trace of the exception. The problem I think is in the newprinter.py file on line 1063. This is to install the samba-client package, but can not do:

------------------------------------
p = subprocess.Popen (["gpk-install-package-name",
"samba-client"],
close_fds=True,
stdin=file("/dev/null"),
stdout=file("/dev/null"),
stderr=file("/dev/null"))

------------------------------------

You have to install the samba-client package manually so that you can add the printer with "sudo system-config-printer".

Forum thread: http://trisquel.info/es/forum/no-puedo-agregar-impresora-de-red

AdjuntoTamaño
Impresoras.png11.4 KB
Vie, 11/28/2014 - 02:14

In my case I had to install cups-pk-helper too.

I found this solution at the following page:
http://forum.siduction.org/index.php?topic=4337.0