Sorry, but it seems I misled you. I found additional call to get_devices
in pysane library used to get device model and manufacturer before open.
So in terms of the standard all looks correctly.
Now I am unable to check the situation without this call. But I will
check it and write about the re
Calling sane_get_devices() before each sane_open() something helps
isolate the problem? I am trying to develop a program that works a dozen
devices at the same time. Asurvey of all the devices at each operation
seems to me something strange.
On 07/31/2012 06:23 PM, m. allan noah wrote:
> It is
Hello,
As I wrote, I'm trying to develop web interface for SANE. I am
developing it using Python.I do not want to lock device so that other
WSGI-proccess instances can access it. Atypical code flow is as follows:
sane_init()
sane_get_devices()
// user selected device, showing page with capabil
.gz
Type: application/x-gzip
Size: 7614 bytes
Desc: not available
URL:
<http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120731/b8a4419f/attachment.bin>
a and command line
arguments.
I guess I have to add saned test cases to my test suite...
Regards,
Stef
-- next part --
An HTML attachment was scrubbed...
URL:
<http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120731/5903843e/attachment.html>
I would try it, and see if the device_id is the same in both calls to
sane_open. In either case, I think this is a bug in the backend. Sane
standard says about sane_get_devices:
"The returned list is guaranteed to remain unchanged and valid until
(a) another call to this function is performed or (
It is possible that this is a bug in that backend. perhaps you should
call sane_get_devices again?
allan
On Tue, Jul 31, 2012 at 10:13 AM, Aleksandr Dezhin wrote:
> Hello,
>
> As I wrote, I'm trying to develop web interface for SANE. I am developing it
> using Python.I do not want to lock device