← Back to team overview

desktop-packages team mailing list archive

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

 

Yes it seems to be a buffering problem
in file printerproperties.py
I changed the line
         with tempfile.NamedTemporaryFile(mode='wt') as tmpfile:
to
        with tempfile.NamedTemporaryFile(mode='wt',buffering=1) as tmpfile:
and now the command file sending works for me.

-- 
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