** Description changed:

  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?
+ Added 3rdOct2015
+ The problem seems to be due to default buffering of the temporary command 
file. I can fix the problem by changing the buffering to buffer 1 line.
+ 
+ in file printerproperties.py
+ I changed the line 1232
+          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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1500636

Title:
  commands passed to cups fail. File missing

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to