2015-10-03 09:05:06 |
Paul Newall |
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? |
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.
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. |
|