← Back to team overview

desktop-packages team mailing list archive

Re: [Bug 1500636] Re: commands passed to cups fail. File missing

 

Till,
system-config-printer version 1.3.8 works
version 1.5.6 does not work.

My impression is that the command file generated in printerproperties.py 
using
         with tempfile.NamedTemporaryFile(mode='wt') as tmpfile:
             tmpfile.write ("#CUPS-COMMAND\n%s\n" % command)

has a size of zero bytes when the job is submitted to cups
maybe due to buffering?

in the older working version 1.3.8 the command file is generated using
         (tmpfd, tmpfname) = tempfile.mkstemp ()
         os.write (tmpfd, "#CUPS-COMMAND\n%s\n" % command)
         os.close (tmpfd)

Paul

On 29/09/15 01:27, Till Kamppeter wrote:
> Paul, which printer are you using? Does it actually support the
> functionality you are requesting? The "Print Self Test Page" is intended
> for printers which have a built in self test page (usually to discover
> clogged nozzles) and the driver is supposed to send a special code
> sequence to the printer to make the printer print this test page (not
> send a test page from the computer to the printer).  "Clean Heads" is
> supposed to tell the printer to run its internal cleaning cycle.
>
> Unfortunately, the buttons sometimes appear in the Properties dialog of
> system-config-printer if the printer does not have the mentioned
> functionality, for example with the virtual "PDF" printer which gets
> created when installing the cups-pdf package (there are really no print
> heads to clean).
>
> Or are you developing printer maintenance support for your Kodak driver?
>
> ** Changed in: system-config-printer (Ubuntu)
>         Status: New => Incomplete
>

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1500636

Title:
  commands passed to cups fail. File missing

Status in system-config-printer package in Ubuntu:
  Incomplete

Bug description:
  xubuntu 15.04  64 bit
  system-config-printer 1.5.6

  when I click the button "Print self test page", I expect the printer to produce a self test page
  instead I get error "client-error-bad-request" and no self test page.
  the cups error log has the entry
  Print-Job client-error-bad-request: No file in print request.

  Note that I can get the printer to generate the self test page by
  printing a command file from terminal.

  So it seems that system-config-printer is not providing the command
  file, or not providing the command filename to cups?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1500636/+subscriptions


References