Closed xinyu3ru closed 9 years ago
1) You need to know that Pyinsane doesn't support Windows (I have no Windows license).
2) Even if it would, Sane on Windows only supports network scanners (--> they must be hosted by a Linux machine if I'm not mistaken).
3) There is actually a bug in Pyinsane:
try:
SANE_LIB = ctypes.cdll.LoadLibrary("libsane.so.1")
sane_available = True
except OSError:
sane_available = False
(...)
SANE_LIB.sane_init.argtypes = [ctypes.POINTER(ctypes.c_int), AUTH_CALLBACK_DEF]
SANE_LIB.sane_init.restype = ctypes.c_int
^ Pyinsane should actually load. It's just that the function is_sane_available() should return False. I'll fix that asap.
Fixed: ebb4933f3222872c669441155e7003a025405602
Thanks and feel sorry about made a trouble。
F:\pyinsane>python Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
hi, I don't know why 'name 'SANE_LIB' is not defined' did I miss something?