After UP7, can you add a printer?

Archived topics about LMDE 1
Forum rules
dclement
Level 4
Level 4
Posts: 236
Joined: Thu Apr 19, 2012 9:59 am

After UP7, can you add a printer?

Postby dclement » Sat Sep 28, 2013 9:12 am

Hello,

I have but one serious issue to mention after applying UP7. I'm observing this on 2 laptops, one running Mate, the other one XFCE.

When you go to system > printing (system-config-printer), you can't add a printer, or change the driver for an installed printer. That's because, whereas you can select a printer brand from the left pane, the driver choice in the right pane is empty! (That's really little choice...)

I suppose the cups interface can still be used, but it's more tedious. What happened to system-config-printer?

TIA - best regards, Daniel

qazwsxedc
Level 1
Level 1
Posts: 5
Joined: Thu Sep 26, 2013 11:14 am

Re: After UP7, can you add a printer?

Postby qazwsxedc » Sat Sep 28, 2013 9:23 am

I'm having a similar problem, described at http://forums.linuxmint.com/viewtopic.php?f=198&t=146051#p768783

system-config-printer works for me only on the first invocation after a fresh boot. On the second and every subsequent invocation after a fresh boot it stops me from adding printers, too, in a slightly different way, though. Try rebooting (sheesh, did I just write that in a Linux-related forum?) and then see whether system-config-printer behaves properly on the first invocation.

dclement
Level 4
Level 4
Posts: 236
Joined: Thu Apr 19, 2012 9:59 am

Re: After UP7, can you add a printer?

Postby dclement » Sat Sep 28, 2013 9:55 am

Yes, qazwsxedc, I had a look at your thread even before I updated to UP7, but I think we have two different issues here. My PDF printer still works correctly (as well as my other printers).

But I can't get system-config-printer to work beyond the printer selection. Even after a fresh reboot, the behavior is just as I described in my original post: driver list empty.

Worse yet, I'm unable to modify or add printers through the CUPS web interface.

py-thon
Level 4
Level 4
Posts: 317
Joined: Fri Sep 27, 2013 2:24 pm
Location: Paraguay

Re: After UP7, can you add a printer?

Postby py-thon » Sat Sep 28, 2013 11:19 am

My printer didn't work after UP7 (only Generic-CUPS-PDF-Printer) either. The printer's display only showed to receive something from the PC for a few seconds but didn't print anything afterwards. I deleted the settings in system-config-printer, then added the printer anew without any problem. Now it works even better than before, because a bug (not existing in Mint 10, but causing problems since changing to LMDE in 2012) which made the printer print at about 97% no matter what setting has disappeared.
So, the answer in to the question in the headline is yes.
Last edited by py-thon on Tue Oct 08, 2013 12:43 pm, edited 1 time in total.
Tower: Sparky 64 bit Mate+mintmenu - Netbook: Sparky 32 bit Mate+mintmenu

dclement
Level 4
Level 4
Posts: 236
Joined: Thu Apr 19, 2012 9:59 am

Re: After UP7, can you add a printer?

Postby dclement » Sat Sep 28, 2013 12:21 pm

Doesn't work for me :-( I deleted the PDF printer and I was unable to reinstall it with system-config-printer (again, 2 PCs with different versions of LMDE).

Fortunately, I regained access to the CUPS web interface (for whatever reason I was no longer in the lpadmin group). I can perform management tasks from here. In particular, I do see the choice of drivers.

This seems to prove that CUPS is not guilty, but the problem is with system-config-printer.

Monsta
Level 9
Level 9
Posts: 2928
Joined: Fri Aug 19, 2011 3:46 am

Re: After UP7, can you add a printer?

Postby Monsta » Wed Oct 09, 2013 2:13 am

I managed to reproduce this bug with Russian locale. Indeed, the right pane is empty, so you can't change the driver. At the same time, the following error message appears in the console:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 3587, in on_tvNPModels_cursor_changed
    self.fillDriverList(self.NPMake, pmodel)
  File "/usr/share/system-config-printer/newprinter.py", line 3539, in fillDriverList
    iter = model.append ((driver + _(" (recommended)"),))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 2: ordinal not in range(128)

It has been reported already (see this bug).

In addition, you can't add a new printer (again, tested with Russian locale) because the program just freezes.
These two bugs have been merged because they're related.

To work around both problems, you need to run system-config-printer with "C" locale:

Code: Select all

LC_ALL=C system-config-printer

dclement
Level 4
Level 4
Posts: 236
Joined: Thu Apr 19, 2012 9:59 am

Re: After UP7, can you add a printer?

Postby dclement » Wed Oct 09, 2013 5:42 am

Monsta wrote:[...]
To work around both problems, you need to run system-config-printer with "C" locale:

Code: Select all

LC_ALL=C system-config-printer
Confirmed, this works.

I'll figure out a way to always start system-config-printer with locale "C", until the bug gets solved for good. (I had sent a bug report, but since it was already known, it has probably been disregarded.)

Thanks, Daniel

Monsta
Level 9
Level 9
Posts: 2928
Joined: Fri Aug 19, 2011 3:46 am

Re: After UP7, can you add a printer?

Postby Monsta » Wed Nov 06, 2013 6:54 am

Good news: system-config-printer 1.4.3 (which seems to fix this bug and some other Unicode-related ones) entered Testing. You can grab it from there.
Note: because of the dependencies, you'll have to update three packages instead of one:

Code: Select all

python-cupshelpers
system-config-printer
system-config-printer-udev

dclement
Level 4
Level 4
Posts: 236
Joined: Thu Apr 19, 2012 9:59 am

Re: After UP7, can you add a printer?

Postby dclement » Wed Nov 06, 2013 9:50 am

Monsta wrote:Good news: system-config-printer 1.4.3 (which seems to fix this bug and some other Unicode-related ones) entered Testing.
I confirm that this works, at least with the French locale. Thanks, Monsta, for signalling this new version.

That's one bug that did not take too long to solve!


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 3 guests