Your message dated Thu, 16 May 2019 05:53:20 +0200
with message-id <[email protected]>
and subject line python-imaging has been superseded by pillow
has caused the Debian Bug report #613680,
regarding python-imaging-sane: cannot access "scan" option
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
613680: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613680
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-imaging-sane
Version: 1.1.7-2

My scanner has an option named "scan". It is impossible to acquire value of this option (using the public API) , because sane.SaneDev has a method with the same name:

dev = sane.open('fujitsu:fi-6130dj:47352')
dev.scan
<bound method SaneDev.scan of <sane.SaneDev instance at 0xf5c8f5ac>>
dev['scan']

Name:      scan
Cur value: <bound method SaneDev.scan of <sane.SaneDev instance at 0xf5c8f5ac>>
Index:     83
Title:     Scan button
Desc:      Scan button
Type:      TYPE_BOOL
Unit:      UNIT_NONE
Constr:    None
active:    yes
settable:  no

Apparently the simplest way to access the value I wanted is to use something like:

dev.__dict__['dev'].get_option(dev['scan'].index)
0

...but this is ugly and relies on implementation details of the module.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-imaging-sane depends on:
ii  libc6    2.11.2-11                       Embedded GNU C Library: Shared lib
ii  libsane  1.0.22~git1.0.21-157-g126c70d-1 API library for scanners
ii  python   2.6.6-10                        interactive high-level object-orie
ii  python-i 1.1.7-2                         Python Imaging Library
ii  python2. 2.5.5-11                        An interactive high-level object-o
ii  python2. 2.6.6-8+b1                      An interactive high-level object-o

--
Jakub Wilk



--- End Message ---
--- Begin Message ---
Version: 1.1.7-4+rm

src:python-imaging was last released with Debian 7.0 (wheezy)
in May 2013 and was removed from the Debian archive afterwards.
Since support for wheezy and wheezy-LTS has now ended and the suites
have been archived, I'm closing all the remaining bugs reported against
this package.


Andreas

--- End Message ---

Reply via email to