[Desktop-packages] [Bug 1062617] Re: No network scanner autodetection by backend kodakaio

2016-10-23 Thread Paul Newall
I did a trial with a live DVD. Ubuntu 16.04
A network connected kodakaio printer can be auto detected. (I think that's with 
avahi)
scanimage -L lists the printer.

So this bug is solved.

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

Title:
  No network scanner autodetection by backend kodakaio

Status in sane-backends package in Ubuntu:
  Triaged

Bug description:
  sane-backends 1.0,.23 in ubuntu 12.10 has a new backend kodakaio for kodak 
aio printers
  The backend can autodetect network connected scanners using functions in cups.
  The auto detect code is only compiled if cups.h is found at compile time.
  It seems likely that cups.h was not found at compile time when the package 
was built?

  If I compile and install kodakaio myself, the autodetect works with ubuntu 
12.10
  Can anyone confirm this diagnosis?
  Is it possible to compile sane-backends with cups installed when building 
this package?
  Or is it necessary for me to always compile the autodetect code and check for 
the presence of cups at run time?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1062617/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1062617] Re: No network scanner autodetection by backend kodakaio

2016-10-22 Thread Paul Newall
What I meant was that it was not worth working  on autodetection using cups, 
when the method had changed to avahi.
I do not know if the avahi autodetection works for everyone, though I have not 
seen many complaints about that. But I guess I should be able to test it by 
seeing if the live DVD can autodetect a kodakaio printer.

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

Title:
  No network scanner autodetection by backend kodakaio

Status in sane-backends package in Ubuntu:
  Triaged

Bug description:
  sane-backends 1.0,.23 in ubuntu 12.10 has a new backend kodakaio for kodak 
aio printers
  The backend can autodetect network connected scanners using functions in cups.
  The auto detect code is only compiled if cups.h is found at compile time.
  It seems likely that cups.h was not found at compile time when the package 
was built?

  If I compile and install kodakaio myself, the autodetect works with ubuntu 
12.10
  Can anyone confirm this diagnosis?
  Is it possible to compile sane-backends with cups installed when building 
this package?
  Or is it necessary for me to always compile the autodetect code and check for 
the presence of cups at run time?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1062617/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


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

2015-10-03 Thread Paul Newall
** 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 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.

  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.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


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

2015-10-03 Thread Paul Newall
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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


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

2015-10-02 Thread Paul Newall
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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


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

2015-10-01 Thread Paul Newall
More investigation:
Using ubuntu live DVDs : commands in system-config-printer of ubuntu 13.10 work 
OK. In ubuntu 14.10 they do not work.

I uninstalled system-config-printer 1.5.6 from my xubuntu 15.04, then installed 
version 1.3.8  The commands work OK.
So some change between system-config printer 1.3.8 and 1.4.3 seems to have 
stopped the commands from working.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


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

2015-09-29 Thread Paul Newall
Till, The printer is a kodak aio hero 9.1
and the driver is my c2espC driver, with command filter command2esp.
This all used to work, for both print self test and clean heads.
But recently I noticed that it no longer worked.

However, if I make a text command file called "selftest" containing
 #CUPS-COMMAND
 PrintSelfTestPage

and then send that page to the printer via cups using
lpr selftest
The printer does generate its selftest page.
So it seems like cups and my command filter still work.
That makes me think this could be a problem with system-config-printer.

Do these command buttons in system-config-printer currently work for
other printers that have command filters?

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1500636] [NEW] commands passed to cups fail. File missing

2015-09-28 Thread Paul Newall
Public bug reported:

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?

** Affects: system-config-printer (Ubuntu)
 Importance: Undecided
 Status: New

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

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


Re: [Desktop-packages] [Bug 1062617] Re: No network scanner autodetection by backend kodakaio

2015-03-03 Thread Paul Newall
On 03/03/15 06:19, Rolf Leggewie wrote:
> Thanks, Paul.  Do you still own the scanner in question?
>
Yes, I still have kodak aio printer scanners.
I'm not sure if working on this bug is still worth the effort.
Since sane backends 1.0.24 I think we are using avahi instead of cups to 
do the network autodiscovery.
There is quite likely a similar problem, except with avahi instead of cups.

Paul

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

Title:
  No network scanner autodetection by backend kodakaio

Status in sane-backends package in Ubuntu:
  Triaged

Bug description:
  sane-backends 1.0,.23 in ubuntu 12.10 has a new backend kodakaio for kodak 
aio printers
  The backend can autodetect network connected scanners using functions in cups.
  The auto detect code is only compiled if cups.h is found at compile time.
  It seems likely that cups.h was not found at compile time when the package 
was built?

  If I compile and install kodakaio myself, the autodetect works with ubuntu 
12.10
  Can anyone confirm this diagnosis?
  Is it possible to compile sane-backends with cups installed when building 
this package?
  Or is it necessary for me to always compile the autodetect code and check for 
the presence of cups at run time?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1062617/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1062617] Re: No network scanner autodetection by backend kodakaio

2014-12-17 Thread Paul Newall
Just for information. Later versions of sane-backends will auto detect the 
kodak AiOs using avahi instead of cups.
But there could be similar problems due to the compiled code depending on the 
presence/absence of avahi headers.

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

Title:
  No network scanner autodetection by backend kodakaio

Status in sane-backends package in Ubuntu:
  Triaged

Bug description:
  sane-backends 1.0,.23 in ubuntu 12.10 has a new backend kodakaio for kodak 
aio printers
  The backend can autodetect network connected scanners using functions in cups.
  The auto detect code is only compiled if cups.h is found at compile time.
  It seems likely that cups.h was not found at compile time when the package 
was built?

  If I compile and install kodakaio myself, the autodetect works with ubuntu 
12.10
  Can anyone confirm this diagnosis?
  Is it possible to compile sane-backends with cups installed when building 
this package?
  Or is it necessary for me to always compile the autodetect code and check for 
the presence of cups at run time?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1062617/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp